对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

安装或更新 Atlas CLI

安装 Atlas CLI 以从终端快速预配和管理 Atlas 数据库部署。

要检查您的操作系统是否与 Atlas CLI 兼容,请参阅检查兼容性。

要在安装之前验证包,请参阅验证 Atlas CLI 包的完整性。

选择以下方法之一可快速安装 Atlas CLI:

brew install mongodb-atlas-cli

下载适用于您的操作系统的二进制文件:

操作系统
立即下载

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

选择安装方法以查看安装或更新 Atlas CLI 的详细步骤。

从 Atlas CLI 连接以开始使用 Atlas CLI 命令。