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
MaGe Linux Operations
Master MinIO Client (mc): Install, Configure, and Manage Buckets Quickly

1. Getting MinIO Client (mc)

1.1 Docker version

docker pull minio/mc
docker run minio/mc ls play

1.2 Homebrew (macOS)

brew install minio/stable/mc
mc --help

1.3 Download binary (GNU/Linux)

chmod +x mc
./mc --help

1.4 Download binary (Microsoft Windows)

mc.exe --help

1.5 Install from source

Source installation is for developers. Use:

go get -d github.com/minio/mc
cd ${GOPATH}/src/github.com/minio/mc
make

2. 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 key

2.2 List configured hosts

mc config host list

Result is shown below:

MinIO client host list
MinIO client host list

2.3 Create a bucket

mc mb minio-server/lvzhenjiang
# creates bucket named lvzhenjiang on alias minio-server

2.4 List buckets

mc ls minio-server

2.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 directory

2.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 directory

2.7 Remove a bucket

mc rb minio-server/lvzhenjiang
# remove empty bucket
mc rb minio-server/lvzhenjiang --force
# force removal of non‑empty bucket

Common 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 information
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
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 contactadmin@besthub.devand we will review it promptly.

DockerMiniocloud storageobject storagemc client
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.