What is the Atlas CLI?
The Atlas CLI is a command line interface built specifically for MongoDB Atlas . Interact with your Atlas database deployments and Atlas Search from the terminal with short, intuitive commands, so you can accomplish complex database management tasks in seconds.
Then, run atlas setup
Manage Atlas from the Command Line
Get started quickly with two commands:
Run brew install mongodb-atlas-cli
See our documentation for more ways to install the Atlas CLI.
Run atlas setup
atlas setup
does all of the following with one command:
Signs up for an Atlas account.
Authenticates with the new Atlas account.
Creates one free database.
Loads sample data into your Atlas database.
Adds your IP address to your project's IP access list.
Creates a MongoDB user for your Atlas database deployment.
Connects to your new database deployment using the MongoDB Shell,
mongosh
.
To learn more, see the atlas setup command.
Run atlas deployments setup
To learn more, see Manage Local and Cloud Deployments from the Atlas CLI.
Run atlas deployments search indexes create
To learn more, see Use Atlas Search with an Atlas Deployment.
Go Further with the Atlas CLI
Learn the Atlas CLI commands and optimize your workflow with advanced tutorials and more.
Discover new Atlas CLI commands
Explore Atlas CLI workflows with guided tutorials
Learn what's new in the Atlas CLI