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
alias | manage server credentials in configuration file |
ls | list buckets and objects |
mb | make a bucket |
rb | remove a bucket |
cp | copy objects |
mv | move objects |
rm | remove object(s) |
mirror | synchronize object(s) to a remote site |
cat | display object contents |
head | display first 'n' lines of an object |
pipe | stream STDIN to an object |
find | search for objects |
sql | run sql queries on objects |
stat | show object metadata |
tree | list buckets and objects in a tree format |
du | summarize disk usage recursively |
retention | set retention for object(s) |
legalhold | manage legal hold for object(s) |
support | support related commands |
license | license related commands |
share | generate URL for temporary access to an object |
version | manage bucket versioning |
ilm | manage bucket lifecycle |
encrypt | manage bucket encryption config |
event | manage object notifications |
watch | listen for object notification events |
undo | undo PUT/DELETE operations |
anonymous | manage anonymous access to buckets and objects |
tag | manage tags for bucket and object(s) |
diff | list differences in object name, size, and date between two buckets |
replicate | configure server side bucket replication |
admin | manage MinIO servers |
update | update mc to latest release |
ready | checks if the cluster is ready or not |
ping | perform liveness check |
od | measure single stream upload and download |
batch | manage batch jobs |
GLOBAL FLAGS:
--autocompletion | install auto-completion for your shell |
--config-dir value, -C value | path to configuration folder (default: "/root/.mc") |
--quiet, -q | disable progress bar display |
--no-color | disable color theme |
--json | enable JSON lines formatted output |
--debug | enable debug output |
--insecure | disable SSL certificate verification |
--help, -h | show help |
--version, -v | print the version |
TIP:
Use 'mc --autocompletion' to enable shell autocompletion