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. Add option for generating curl command

    Currently when we are getting a 500 error back it is difficult to debug what is going wrong and we need to replicate the rest api call via curl.
    Would be nice to have an option in order to generate the curl command that replicates the mongocli call in order to easily test the command.

    This is valid for Atlas/OM/CM

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Atlas  ·  Flag idea as inappropriate…  ·  Admin →
  2. The "mongocli atlas clusters list" command ought to return hosts in an array

    The 'mongocli atlas metrics databases list' command expects a hostname argument. Currently, one has to parse out the hosts from the URI returned from the cluster list command. It would be easier if the cluster list command returned the hosts in a command along with the replica set status, so that one could easier script the descent from the cluster into cluster details and info.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Atlas  ·  Flag idea as inappropriate…  ·  Admin →
  3. Username is case sensitive

    with username "Shamim" authentication failed where as "shamim" works

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  mongodbcli with Atlas  ·  Flag idea as inappropriate…  ·  Admin →
  4. Add user by email address

    I'd like to be able to specify a user's e-mail address when adding them to a group from the mongocli. mongocli iam teams create allows one to pass in e-mail addresses. But mongocli iam teams users add requires the UUID of the user.
    For reference: https://github.com/mongodb/mongocli/issues/606

    https://github.com/mongodb/mongocli/issues/606

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

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

Feedback and Knowledge Base