Docs Home → MongoDB Command Line Interface
Quick Start
On this page
MongoDB CLI provides a command-line interface for managing your MongoDB Atlas, MongoDB Cloud Manager, and MongoDB Ops Manager projects and clusters. This tutorial demonstrates how to:
Download, install, and configure MongoDB CLI
Create clusters in your Atlas, Cloud Manager, or
Ops Manager
projectCreate a whitelist and MongoDB user for your Atlas cluster
Retrieve details about the new cluster
The reference pages for the commands mentioned in this tutorial are available in the Reference section.
Prerequisites
This tutorial requires the following:
An Atlas, Cloud Manager, or Ops Manager organization and project
Download and Install MongoDB CLI
See Install the MongoDB CLI for information on downloading and installing MongoDB CLI. After installing MongoDB CLI, run the following command to verify installation:
mongocli help
Generate Programmatic Access Keys
MongoDB CLI uses Programmatic Access Keys to access the Atlas, Cloud Manager,
or Ops Manager
projects. Your Programmatic API Key must have the project owner
role and it must be whitelisted for your IP address or CIDR range.
To learn more about generating the Programmatic API Key, see:
Procedure
Note
The following sections are organized by MongoDB service. Select the tab for your MongoDB service to proceed.