Install the Atlas CLI to quickly provision and manage Atlas database deployments from the terminal.
To check whether your operating system is compatible with the Atlas CLI, see Check Compatibility.
To verify packages before installation, see Verify the Integrity of Atlas CLI Packages.
Quick Start
Choose one of the following methods to quickly install the Atlas CLI:
brew install mongodb-atlas-cliDownload the binary for your operating system:
Operating System | Download |
|---|---|
Windows | |
MacOS | |
Ubuntu/Debian | |
RHEL/CentOS/SLES/AMZ | |
Linux |
curl -fsSL https://pgp.mongodb.com/server-8.0.asc | \ sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \ --dearmorecho "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] \ https://repo.mongodb.com/apt/ubuntu jammy/mongodb-enterprise/8.0 \ multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise-8.0.listsudo apt-get updatesudo apt-get install -y mongodb-atlassudo tee /etc/yum.repos.d/mongodb-enterprise-8.0.repo <<EOF[mongodb-enterprise-8.0]name=MongoDB Enterprise Repositorybaseurl=https://repo.mongodb.com/yum/redhat/\$releasever/mongodb-enterprise/8.0/\$basearch/gpgcheck=1enabled=1gpgkey=https://pgp.mongodb.com/server-8.0.ascEOFsudo yum install -y mongodb-atlasInstallation Methods
Select your installation method to view detailed steps to install or update the Atlas CLI.
Take the Next Steps
Connect from the Atlas CLI to start using the Atlas CLI commands.