Master MinIO Client (mc): Install, Configure, and Manage Buckets Quickly
This guide walks you through installing MinIO Client (mc) via Docker, Homebrew, Linux/Windows binaries, or source, and then demonstrates core commands for adding hosts, listing servers, creating and inspecting buckets, uploading and deleting objects, and removing buckets.
Installation of MinIO Client (mc)
Docker version
docker pull minio/mc
docker run minio/mc ls playHomebrew (macOS)
brew install minio/stable/mc
mc --helpLinux binary (GNU/Linux, 64‑bit Intel)
curl -O http://dl.minio.org.cn/client/mc/release/linux-amd64/mc
chmod +x mc
./mc --helpWindows binary (64‑bit Intel)
curl -O http://dl.minio.org.cn/client/mc/release/windows-amd64/mc.exe
mc.exe --helpBuild from source (requires Go)
go get -d github.com/minio/mc
cd $GOPATH/src/github.com/minio/mc
makeNote: The mc update command does not support update notifications for source builds; download the official binary instead.
Basic usage of MinIO Client (mc)
Add a cloud storage service
mc config host add minio http://127.0.0.1:9000 minioadmin minioadminReplace the endpoint, access key, and secret key with your own values.
List configured hosts mc config host list Result is shown in the screenshot below.
Create a bucket mc mb minio-server/lvzhenjiang The command creates a bucket named lvzhenjiang on the minio-server alias.
List buckets mc ls minio-server Upload a file to a bucket mc cp /etc/hosts minio-server/lvzhenjiang Upload a directory recursively mc cp /etc minio-server/lvzhenjiang --recursive Delete a file from a bucket mc rm minio-server/lvzhenjiang/hosts Delete a directory recursively
mc rm minio-server/lvzhenjiang/etc --recursive --forceRemove an empty bucket mc rb minio-server/lvzhenjiang Force‑remove a bucket with contents
mc rb minio-server/lvzhenjiang --forceCommon mc commands
ls– list files and folders mb – create a bucket cat – display object content pipe – redirect STDIN/STDOUT to an object share – generate a shareable URL cp – copy files/objects mirror – mirror a bucket or folder find – search for objects diff – compare differences between buckets rm – remove files or objects events – manage object notifications watch – monitor object events policy – manage access policies config – manage mc configuration update – check for software updates version – display version information
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Raymond Ops
Linux ops automation, cloud-native, Kubernetes, SRE, DevOps, Python, Golang and related tech discussions.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
