Cloud Computing 6 min read
Master MinIO Client (mc): Install, Configure, and Manage Buckets Quickly
This guide walks you through installing the MinIO Client (mc) via Docker, Homebrew, or direct binary download, then demonstrates core commands for adding cloud hosts, listing servers, creating and managing buckets, uploading files, and cleaning up resources.
MaGe Linux Operations
MaGe Linux Operations
1. Getting MinIO Client (mc)
1.1 Docker version
docker pull minio/mc
docker run minio/mc ls play1.2 Homebrew (macOS)
brew install minio/stable/mc
mc --help1.3 Download binary (GNU/Linux)
chmod +x mc
./mc --help1.4 Download binary (Microsoft Windows)
mc.exe --help1.5 Install from source
Source installation is for developers. Use:
go get -d github.com/minio/mc
cd ${GOPATH}/src/github.com/minio/mc
make2. Basic usage of MinIO Client (mc)
2.1 Add a cloud storage service
mc config host add minio http://127.0.0.1:9000 minioadmin minioadmin
# minio is the alias, URL is the endpoint, followed by access key and secret key2.2 List configured hosts
mc config host listResult is shown below:
2.3 Create a bucket
mc mb minio-server/lvzhenjiang
# creates bucket named lvzhenjiang on alias minio-server2.4 List buckets
mc ls minio-server2.5 Upload files to a bucket
mc cp /etc/hosts minio-server/lvzhenjiang
# upload a single file
mc cp /etc minio-server/lvzhenjiang --recursive
# upload a directory2.6 Delete files from a bucket
mc rm minio-server/lvzhenjiang/hosts
# delete a file
mc rm minio-server/lvzhenjiang/etc --recursive --force
# delete a directory2.7 Remove a bucket
mc rb minio-server/lvzhenjiang
# remove empty bucket
mc rb minio-server/lvzhenjiang --force
# force removal of non‑empty bucketCommon mc commands:
ls list files and folders
mb make bucket or folder
cat display file/object contents
pipe redirect STDIN to an object or file
share generate a shareable URL
cp copy files and objects
mirror mirror bucket and folder
find find files based on parameters
diff compare differences between buckets or folders
rm remove files and objects
events manage object notifications
watch watch for object events
policy manage access policies
config manage mc configuration
update check for software updates
version show version informationOriginal Source
Signed-in readers can open the original source through BestHub's protected redirect.
Republication Notice
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.
Reader feedback
How this landed with the community
Rate this article
Was this worth your time?
Discussion
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
