596 words
3 minutes
When MinIO Web Console Vanishes, CLI is King:A Beginner's Guide to mc

MinIO, the open-source object storage giant, has drastically removed the core code of its Web Management Console in community releases following version 20250524. With approximately 110,000 lines of code stripped away, the community is in an uproar, accusing MinIO of “burning bridges”—reaping the benefits of open source only to pull the plug on its most accessible features. As I’ve been developing a private project utilizing MinIO recently, I’ve had to rely on AI and documentation to master the basic commands. Since the Web UI is gone, understanding mc is now essential for permission control and general management. Consider this a guide born out of necessity.

Community News

Developer Backlash#

Developer comments Developer comments

What is mc?#

Don’t be mistaken—this mc isn’t about mining blocks in Minecraft. It stands for MinIO Client. This is the official, incredibly powerful command-line tool and the primary way to interact with a MinIO server. You can install it easily through several methods.

安装#

  1. Direct Binary Download (Recommended)
Terminal window
# Download mc for Linux amd64
wget https://dl.min.io/client/mc/release/linux-amd64/mc
# Grant execution permissions
chmod +x mc
# Move to a system PATH directory (e.g., /usr/local/bin/) for global access
sudo mv mc /usr/local/bin/
  1. Docker Installation
Terminal window
# Pull the mc Docker image
docker pull minio/mc
# Run a temporary container to execute a command (e.g., listing a bucket)
docker run minio/mc ls myminio

Command Guide#

For a full list of all mc commands, refer to the official documentation. This section covers the most common and critical operations.

Running mc --help displays all available commands. Here are the core categories:

Terminal window
alias Manage server aliases (configures connection info)
admin Manage MinIO servers (users, policies, config, etc.)
... ...
ls List buckets and objects
mb Make bucket
cp Copy objects
mv Move/Rename objects
rm Remove objects
cat Display object content
head Display first part of an object
pipe Stream from STDIN to an object
put Upload local files to a bucket
mirror Synchronize local directories to remote buckets (Powerful sync tool)
du Summarize disk usage
diff Compare differences between two buckets
find Search for objects
... ... (Other important commands: policy, user, config, event, ilm, etc.)

Essential Commands Detail#

Alias Management#

  1. Setting a Connection (alias):
Terminal window
mc alias set ALIAS HOST ACCESSKEY SECRETKEY
# Example: Connecting to a local MinIO instance
mc alias set myminio http://localhost:9000 minioadmin minioadmin
  1. List all configured aliases:
Terminal window
mc alias list
  1. Remove an existing alias:
Terminal window
mc alias remove ALIAS

Administration (admin)#

  1. Check Server Information:
Terminal window
mc admin info ALIAS
# Example: Check status for myminio
mc admin info myminio
  1. User Management:
Terminal window
# Add a user
mc admin user add ALIAS ACCESSKEY SECRETKEY
# Example: Add user AK:test SK:123456 to myminio
mc admin user add myminio test 123456
# Disable a user
mc admin user disable ALIAS USERNAME
# Enable a user
mc admin user enable ALIAS USERNAME
# View user info
mc admin user info ALIAS USERNAME
# List all users
mc admin user ls ALIAS
# Remove a user
mc admin user rm ALIAS USERNAME
  1. PBAC (Policy-Based Access Control) Management:
Terminal window
# Create a policy
mc admin policy create ALIAS POLICYNAME POLICYPATH
# Example: Create "listmybuckets" policy using a local JSON file
mc admin policy create myminio listmybuckets /tmp/listmybuckets.json
# Attach an IAM policy to a MinIO user or group
mc admin policy attach ALIAS POLICY [POLICY...] [--user USER | --group GROUP]
# Example: Bind the "listmybuckets" policy to user "test" on myminio
mc admin policy attach myminio listmybuckets test
# List all policies
mc admin policy ls ALIAS
# View policy details
mc admin policy info ALIAS POLICYNAME
# List entities (users/groups) associated with a policy
mc admin policy entities ALIAS [--user value] [--group value] [--policy value]
# Delete a policy
mc admin policy rm ALIAS POLICYNAME

🔗 Related Links

[1] MinIO Object Storage Documentation(Chinese)

When MinIO Web Console Vanishes, CLI is King:A Beginner's Guide to mc
https://fuwari.vercel.app/posts/926617d8-ea6f-4d0f-aee0-bc7be18d1b7a/
Author
Ryan Zhang
Published at
2025-10-08
License
CC BY-NC-SA 4.0
This content has been translated with the assistance of AI tools, including ChatGPT, Gemini, and Qwen. While efforts have been made to ensure accuracy and clarity, minor discrepancies may exist. Please refer to the original text for authoritative interpretation if needed.