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 Atlas, Cloud Manager, or Ops Manager, and to automate management tasks for your deployments.

1

In the Atlas 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, configure and connect to an Atlas cluster in one command.

To learn more, see Get Started with MongoDB Atlas

MongoDB CLI quickstart command
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 icon

Explore more advanced MongoDB CLI use cases

Read Reference Docs

MongoCLI icon

Review common error messages and issues

Read Troubleshooting Docs