Video failed to load

After MinIO's Web Console Disappeared, It's Time for the CLI: An Introduction to mc

814 words
4 minutes
After MinIO's Web Console Disappeared, It's Time for the CLI: An Introduction to mc
After MinIO's Web Console Disappeared, It's Time for the CLI: An Introduction to mc

Translation Notice

This article was originally written in Chinese and translated into English with the assistance of AI. The translation has been reviewed and edited for clarity, accuracy, and readability. Please refer to the original source where necessary, especially for technical terms, commands, configuration details, and proper nouns.

In MinIO’s community releases after 20250524, the open-source object-storage giant radically removed the core Web management console—deleting 110,000 lines of code. The community has widely criticized MINIO for abandoning the open-source ecosystem after benefiting from it. I happened to be using MinIO for a private project, so when the new version arrived without a Web UI, I learned some basic commands with the help of AI and documentation. They are enough to keep permissions and daily usage manageable, so I decided to turn the experience into an article.

Community News
Community News

A Developer’s Rant#

Developer comments
Developer comments
Developer comments
Developer comments

What Is mc?#

Don’t get the wrong idea: this mc is not Minecraft, the game where you mine. It is short for ​MinIO Client​, an extremely powerful official command-line tool and the primary way to interact with a MinIO server. It is easy to install in several ways.

Installation#

  1. Download the binary directly (recommended; simple and direct)
Terminal window
# Download mc for Linux amd64
wget https://dl.min.io/client/mc/release/linux-amd64/mc
# Grant execute permission
chmod +x mc
# Move it to a directory on PATH (such as /usr/local/bin/) for global use
sudo mv mc /usr/local/bin/
  1. Install with Docker
Terminal window
# Pull the Docker image for mc
docker pull minio/mc
# Run a temporary container to execute a command (for example, list the myminio test bucket)
docker run minio/mc ls myminio

Command Guide#

To see every mc command, scroll to the bottom and visit the documentation at minio.org.cn. This section lists only some common and important commands.

Run mc --help to see all commands. The core categories include:

Terminal window
alias Manage server aliases (connection information)
admin Manage the MinIO server (users, policies, configuration, etc.)
... ... (see the official documentation or the common-command details below)
ls List buckets and objects
mb Create a bucket
cp Copy an object
mv Move or rename an object
rm Delete an object
cat Display object contents
head Display the beginning of an object
pipe Stream standard input to an object
put Upload a local file to a bucket
mirror Sync a local directory with a remote bucket, or vice versa
du Report disk usage
diff Compare two buckets
find Search for objects
... ... (other important commands include policy, user, config, event, and ilm)

Common Commands#

Aliases#

  1. Manage connections (alias)
Terminal window
mc alias set ALIAS HOST ACCESSKEY SECRETKEY
# Example: connect to local MinIO
mc alias set myminio http://localhost:9000 minioadmin minioadmin
  1. List all aliases in the local mc configuration
Terminal window
mc alias list
# Example: list all aliases
mc alist list
  1. Delete an existing alias from the local mc configuration
Terminal window
mc alias remove ALIAS
# Example: delete the myminio alias
mc alias rm myminio

Administration#

  1. View server information
Terminal window
mc admin info ALIAS
# Example: view the status of the myminio server
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
# Example: disable user test on myminio
mc admin user disable myminio test
# Enable a user
mc admin user enable ALIAS USERNAME
# Example: enable user test on myminio
mc admin user enable myminio test
# View user information
mc admin user info ALIAS USERNAME
# Example: view information for user test on myminio
mc admin user info myminio test
# List all users
mc admin user ls ALIAS
# Example: list all users on myminio
mc admin user ls myminio
# Delete a user
mc admin user rm ALIAS USERNAME
# Example: delete user test from myminio
mc admin user rm myminio test
  1. PBAC policy management
Terminal window
# Create a policy
mc admin policy create ALIAS POLICYNAME POLICYPATH
# Example: create the listmybuckets policy on myminio using /tmp/listmybuckets.json as its policy document
mc admin policy create myminio listmybuckets /tmp/listmybuckets.json
# Attach one or more IAM policies to a MinIO object
mc admin policy attach ALIAS POLICY [POLICY...] [--user USER | --group GROUP]
# Example: attach the listmybuckets policy to user test on myminio
mc admin policy attach myminio listmybuckets test
# List all policies
mc admin policy ls ALIAS
# Example: list all policies on myminio
mc admin policy ls myminio
# Display a policy document
mc admin policy info ALIAS POLICYNAME [--policy-file, -f <path>]
# Example: display the writeonly policy on myminio
mc admin policy info myminio writeonly
# List entities associated with policies, users, or groups on the target MinIO deployment
mc admin policy entities ALIAS [--user value] [--group value] [--policy value]
# Example: list entities associated with policies on myminio
mc admin policy entities myminio/
# Delete a policy
mc admin policy rm ALIAS POLICYNAME
# Example: delete the writeonly policy from myminio
mc admin policy rm myminio writeonly

🔗 Related links

[1] MinIO Object Storage Linux documentation

Support & Share

If this article helped you, please share or support!

Sponsor
After MinIO's Web Console Disappeared, It's Time for the CLI: An Introduction to mc
https://blog.bytesycn.cn/posts/926617d8-ea6f-4d0f-aee0-bc7be18d1b7a/
Author
Ryan Zhang
Published at
2025-10-08
Related PostsSmart
1
PicImpact Uploads Failing with Cloudflare R2? Here’s How to Troubleshoot It
TutorialPicImpact itself deployed without problems; the issue was Cloudflare R2. The documentation looked perfect and the configuration was correct, yet image uploads kept failing without a useful error. After checking permissions and CORS, I found that the official configuration alone is not enough when combining R2 with PicImpact.
2
TOTP Two-Factor Authentication for Windows Remote Logins
TutorialAdd TOTP-based two-factor authentication to Windows Remote Desktop (RDP) with multiOTP to improve remote-login security. Supports mainstream authenticators such as Google Authenticator and Tencent Authenticator.
3
Installing an FTP Service on XC Operating Systems
TutorialA practical guide to deploying an FTP server in an XC environment, covering the complete process of installing, configuring, and hardening vsftpd.
4
🐾 OpenClaw Installation Guide and Personal Thoughts — 2026.03
TutorialA detailed guide to OpenClaw 2026.03, covering one-click Linux deployment, Feishu bot long connections, and local-model integration. It explores the security philosophy of private AI, emphasizing least privilege and data boundaries so idle hardware can become a powerful private assistant without sacrificing privacy.
5
OpenSSH Security Upgrade Guide: Online and Offline Methods
TutorialOpenSSH is a core component for remote server access and administration. Its open-source nature sometimes exposes security vulnerabilities, but also drives continuous improvement. Upgrading is the most effective response, yet many Linux servers run in isolated environments and cannot update directly over the network. This guide explains how to securely upgrade OpenSSH by compiling and installing it offline.
Random PostsRandom

Comments

Profile Image of the Author
Ryan Zhang
Keep building, keep thinking, keep creating.
Announcement
Welcome to my blog!
Categories
Tags
Latest Moments
Site Statistics
Posts
30
Categories
7
Tags
42
Total Words
117,260
Running Days
0 days
Last Activity
0 days ago
Table of Contents