For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Install or Update the Atlas CLI

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.

Choose one of the following methods to quickly install the Atlas CLI:

brew install mongodb-atlas-cli

Download 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 \
--dearmor
echo "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.list
sudo apt-get update
sudo apt-get install -y mongodb-atlas
sudo tee /etc/yum.repos.d/mongodb-enterprise-8.0.repo <<EOF
[mongodb-enterprise-8.0]
name=MongoDB Enterprise Repository
baseurl=https://repo.mongodb.com/yum/redhat/\$releasever/mongodb-enterprise/8.0/\$basearch/
gpgcheck=1
enabled=1
gpgkey=https://pgp.mongodb.com/server-8.0.asc
EOF
sudo yum install -y mongodb-atlas

Select your installation method to view detailed steps to install or update the Atlas CLI.

Connect from the Atlas CLI to start using the Atlas CLI commands.