MongoDB CLI

The MongoDB Command Line Interface (mongocli) allows you to create and manage MongoDB Cloud deployments with MongoDB Atlas. You can also use the MongoDB CLI to manage your on-premises MongoDB environments with MongoDB Cloud Manager and MongoDB Ops Manager. With the MongoDB CLI, you can quickly interact with MongoDB services from the command line for easier testing and scripting.


You can install the MongoDB CLI via homebrew, binary download or clone the repo. Help us improve the MongoDB Command Line Interface by posting your ideas and suggestions for improvements.



To report bugs, please use our mongodbcli github issues.


  1. Support TLS configuration

    Add options to the config file for deploy clusters with TLS enabled.

    2 votes
    Sign in Sign in with your MongoDB Account
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Ops Manager  ·  Flag idea as inappropriate…  ·  Admin →
  2. Support ClusterAuthMode X509

    Customer is trying to deploy a RS with X509 internal auth. The missing RS parameter clusterAuthMode: X509 can be set via GUI but not via CLI.

    Customer would appreciate full support for this mode using the CLI.

    1 vote
    Sign in Sign in with your MongoDB Account
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Ops Manager  ·  Flag idea as inappropriate…  ·  Admin →
  3. MongoCLI Wizard Command

    Currently a user needs to manually insert at least all the required flags to use a mongocli command. We can implement the flag --wizard which guides the user through flags with interactive prompts.

    The wizard flag will have the following functionalities:


    • Asking to the user the required flags with interactive prompts

    • Showing a list of optional flags and asking to insert their values if selected

    • In case of describe commands, showing the list of resources available (mongocli atlas cluster describe, list the available clusters)

    • Letting users select a specific value from a list of accepted values

    • If no required flags…
    1 vote
    Sign in Sign in with your MongoDB Account
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Ops Manager  ·  Flag idea as inappropriate…  ·  Admin →
  4. Add command for upgrade a cluster

    Currently there is no easy way to upgrade a cluster but we need to modify the file describing the cluster and push the full description.
    Would be nice to have a command like:

    mongocli om upgrade --version "4.2.10" --fcv "4.2" MyReplicaset

    1 vote
    Sign in Sign in with your MongoDB Account
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Ops Manager  ·  Flag idea as inappropriate…  ·  Admin →
  5. Allow to perform rolling compact via restapi

    Allow to perform rolling compact via CM/OM restAPI (processes.lastCompact parameter)

    1 vote
    Sign in Sign in with your MongoDB Account
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Ops Manager  ·  Flag idea as inappropriate…  ·  Admin →
  6. Allow to create custom roles

    Allow to create custom roles for Atlas/CM/OM

    1 vote
    Sign in Sign in with your MongoDB Account
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Ops Manager  ·  Flag idea as inappropriate…  ·  Admin →
  7. Store the type of cloud in profile to shorten the CLI command

    MongoCLI current requires the user to type on the command-line if it's an Ops Manager, Cloud Manager, or Atlas. We could store this information in the profile (the file containing the URL and API keys) so the users have less to type.

    PS: This applies to all 3 categories - MongoDBCLI with Ops Manager, MongoDBCLI with Cloud Manager, and MongoDBCLI with Atlas - on feedback.mongodb.com and the UI forces me to select only one of them

    1 vote
    Sign in Sign in with your MongoDB Account
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Ops Manager  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base