Tech Blog

Infrastructure, Technology

How to Use mc CLI for Bucket Management and Credential Setup

By Malkeet Singh2 min read
← Back to blog

MinIO client 

The MinIO Client, commonly known as mc, is a command-line tool used to interact with MinIO, a high-performance object storage system. The mc client allows users to manage buckets and objects on the MinIO storage service.

  1. Install the MinIO client (mc) on the Linux server by following below commands:
    Download the MinIO client (mc): curl -o mc https://dl.min.io/client/mc/release/linux-amd64/mc.RELEASE.2025-08-13T08-35-41Z
    Make the binary executable: chmod +x mc
    Move the mc binary to the system path: sudo mv mc /usr/local/bin/
    Verify the installation: mc --version

    Install the MinIO client (mc) on the Windows server by following these steps
    Open PowerShell in the directory where you want to download the MinIO Client (mc).
    Download the MinIO client (mc): Invoke-WebRequest https://dl.min.io/client/mc/release/windows-amd64/archive/mc.RELEASE.2025-08-13T08-35-41Z -OutFile mc.exe
    Verify the installation: .\mc.exe --help
  2. Run the following commands to configure MinIO.
    Connect to MinIO: mc alias set storage-prod http://<private ip>:9000 <minio_root_user> <minio_root_password>

    Note: Replace <private ip> with the IP address of the server where MinIO is hosted. Use <minio_root_user> and <minio_root_password> for the MinIO root user credentials that were set during the initial configuration.
    On Windows machines, ensure you run the above command from the directory where the mc client is located.

    Create access and secret keys: mc admin accesskey create storage-prod/ --access-key <random_chars> --secret-key <random_chars>

    Note: The access key must be between 8 and 20 characters, and the secret key should be between 8 and 40 characters. Both keys should be composed of random characters to maintain strong security

    Set MinIO region: mc admin config set storage-prod region name=<region_name>
    Restart MinIO: mc admin service restart storage-prod

    Note: The <region name>, such as us-west-2 or anything-1, is purely a configuration value. It doesn’t determine the actual physical location where data is stored. Click here to view the list of supported MinIO regions.

    Create buckets: mc mb storage-prod/<bucket_name>

    Note: Create three separate buckets with appropriate names to store Jobs, App Icons, and Reports. Ex:  mc mb storage-prod/suremdm-jobs.

Keep reading

You may be interested in

Browse all articles →
Using SCEP Certificates with Okta and SureMDM for Zero Trust Security
August 5, 20257 min read

Using SCEP Certificates with Okta and SureMDM for Zero Trust Security

For businesses embracing zero-trust principles, secure certificate-based authentication isn’t just nice to have—it’s a necessity. With Okta as your Identity Provider (IdP) and SureMDM as your unified endpoint management solution, you can now seamlessly distribute and manage device certificates using Simple Certificate Enrollment Protocol (SCEP). This blog will guide you through: Why Use SCEP with […]

By Sunny KumarRead More →
How to Setup Passwordless SSH Login for ADE
March 18, 20253 min read

How to Setup Passwordless SSH Login for ADE

To set up a passwordless SSH login in Linux all you need to do is to generate a public authentication key and append it to the remote hosts ~/.ssh/authorized_keys file. The following steps will describe the process for configuring passwordless SSH login: 1. Check for existing SSH key pair Before generating a new SSH key […]

By Mohan Kumar KMRead More →
Personalized Mobile Experiences: Enhancing User Satisfaction with AI-Enabled Device Management
April 18, 20244 min read

Personalized Mobile Experiences: Enhancing User Satisfaction with AI-Enabled Device Management

The modern mobile landscape is a sea of devices and applications vying for our attention. In this competitive environment, user satisfaction reigns supreme. Here’s where Artificial Intelligence (AI) steps in, offering a powerful tool to personalize mobile experiences and elevate user delight. By leveraging AI-enabled device management, we can create a future where mobile devices […]

By Aaron ManuelRead More →