minio commands

10 commands, each with a one-line explanation. Click a command to copy it, or its title for details.

Commands 10 shown

  • mc alias set myminio https://minio.example.com ACCESSKEY SECRETKEY

    Register a MinIO server in the mc client

  • mc ls myminio

    Show all buckets on the server

  • mc mb myminio/my-bucket

    Create a new S3-compatible bucket

  • mc cp ./file.tar.gz myminio/my-bucket/backups/

    Upload a local file to MinIO

  • mc mirror --watch ./data myminio/my-bucket/data

    Continuously sync a local directory to a bucket

  • mc admin info myminio

    Show server capacity, uptime, drives, and status

    monitoring

  • mc du --depth 1 myminio

    Show storage size per bucket

    monitoring

  • mc ilm import myminio/my-bucket < lifecycle.json

    Apply object expiry/transition lifecycle rules to a bucket

    config

  • mc rm myminio/my-bucket/path/to/file.txt

    Delete a specific object from a bucket

  • mc rb --force myminio/my-bucket

    Delete a bucket and all its objects