MC Docker CLI

Add this to .bashrc or .zshrc

1alias mc="sudo docker run --rm --name mc -it -v /home/$(whoami)/.mc/config.json:/root/.mc/config.json  minio/mc $@"

NAME:

mc - MinIO Client for object storage and filesystems.

USAGE:

mc [FLAGS] COMMAND [COMMAND FLAGS | -h] [ARGUMENTS...]

COMMANDS

aliasmanage server credentials in configuration file
lslist buckets and objects
mbmake a bucket
rbremove a bucket
cpcopy objects
mvmove objects
rmremove object(s)
mirrorsynchronize object(s) to a remote site
catdisplay object contents
headdisplay first 'n' lines of an object
pipestream STDIN to an object
findsearch for objects
sqlrun sql queries on objects
statshow object metadata
treelist buckets and objects in a tree format
dusummarize disk usage recursively
retentionset retention for object(s)
legalholdmanage legal hold for object(s)
supportsupport related commands
licenselicense related commands
sharegenerate URL for temporary access to an object
versionmanage bucket versioning
ilmmanage bucket lifecycle
encryptmanage bucket encryption config
eventmanage object notifications
watchlisten for object notification events
undoundo PUT/DELETE operations
anonymousmanage anonymous access to buckets and objects
tagmanage tags for bucket and object(s)
difflist differences in object name, size, and date between two buckets
replicateconfigure server side bucket replication
adminmanage MinIO servers
updateupdate mc to latest release
readychecks if the cluster is ready or not
pingperform liveness check
odmeasure single stream upload and download
batchmanage batch jobs

GLOBAL FLAGS:

--autocompletioninstall auto-completion for your shell
--config-dir value, -C valuepath to configuration folder (default: "/root/.mc")
--quiet, -qdisable progress bar display
--no-colordisable color theme
--jsonenable JSON lines formatted output
--debugenable debug output
--insecuredisable SSL certificate verification
--help, -hshow help
--version, -vprint the version

TIP:

Use 'mc --autocompletion' to enable shell autocompletion