Docs Menu

Docs HomeMongoDB Command Line Interface

Quick Start

On this page

  • Prerequisites
  • Procedure
  • Summary

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 project

  • Create 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.

This tutorial requires the following:

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

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:

Note

The following sections are organized by MongoDB service. Select the tab for your MongoDB service to proceed.

←  Customize the MongoDB CLI Output Using a Go TemplateReference →
Share Feedback