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 setting userToDNMapping in LDAP config

    There are flags to save other LDAP configuration settings but none for this portion. I would imagine it to be three flags with two being mutually exclusive (per docs at https://docs.mongodb.com/manual/reference/configuration-options/#security.ldap.userToDNMapping):
    [ --mappingMatch <regex> { --mappingLdapQuery <query> | --mappingSubstitution <DN> } ]

    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  ·  mognodbcli with Atlas  ·  Flag idea as inappropriate…  ·  Admin →
  2. 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  ·  mognodbcli with Atlas  ·  Flag idea as inappropriate…  ·  Admin →
  3. 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  ·  mognodbcli with Atlas  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base