Docs Menu

What is mongocli?

The MongoDB CLI is a modern command line interface that enables you to manage your MongoDB services from the terminal.

Install MongoDB CLI

View installation instructions

Homepage hero image
What You Can Do

Use simple, one-line commands to interact with MongoDB Cloud Manager or Ops Manager, and to automate management tasks for your deployments.

To interact with MongoDB Atlas, use the Atlas CLI.

1

In the Cloud Manager UI, create an API key to programmatically access your organization or project.

To learn more, see Configure Atlas API Access.

2

If you don't have an existing project, create one to group clusters that share users, settings, or environments.

To learn more, see Create a Project

3

Store your API keys, organization and project IDs, and other settings in a profile to easily access your MongoDB deployments.

To learn more, see Configure the MongoDB CLI

MongoDB CLI config command
1

Create and configure a Cloud Manager cluster.

To learn more, see Get Started with MongoDB Cloud Manager

Related Products & Resources

Explore advanced features of the MongoDB CLI and the MongoDB services you can interact with.

MongoDB Atlas icon

Interact with your cloud deployments through a GUI

Read Atlas docs

MongoCLI Reference icon

Explore more advanced MongoDB CLI use cases

Read Reference Docs

MongoCLI Troubleshooting icon

Review common error messages and issues

Read Troubleshooting Docs