# 使用 Homebrew, Nix, scoop, winget, dnf, MacPorts, apt 安装 mongodb-atlas-cli

查看 mongodb-atlas-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mongodb-atlas-cli
```

## 代理安全回答

mongodb-atlas-cli controls MongoDB Atlas projects, clusters, and database services.

- **凭据访问:** Reads Atlas API keys, project config, and environment credentials.
- **远程变更:** Can create, delete, and reconfigure clusters, users, and network access.
- **发布/制品风险:** Can export or change data-service configuration.
- **推荐控制:** Gate cluster, user, network, and credential commands.
- **代理使用指南:** Allow project reads; require approval for writes, deletes, exports, and access-list changes.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mongodb-atlas-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install atlas
```

  证据: MacPorts ports tree: math/atlas/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mongodb-atlas-cli
```

  证据: nixpkgs package indexes: pkgs/by-name/mo/mongodb-atlas-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- dnf (92%):

```sh
sudo dnf install atlas
```

  证据: Fedora Rawhide package metadata: atlas from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Ubuntu apt (92%):

```sh
sudo apt install libatlas-base-dev
```

  证据: Ubuntu 24.04 LTS package indexes: libatlas-base-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

### Windows

- Scoop (92%):

```sh
scoop install main/mongodb-atlas-cli
```

  证据: Scoop official bucket manifest trees: bucket/mongodb-atlas-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id MongoDB.MongoDBAtlasCLI -e
```

  证据: Windows Package Manager source index: MongoDB.MongoDBAtlasCLI from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:mongodb-atlas-cli
- **软件包管理器:** Homebrew
- **版本:** 1.57.0
- **来源摘要:** Atlas CLI enables you to manage your MongoDB Atlas
- **主页:** <https://www.mongodb.com/docs/atlas/cli/stable/>
- **仓库:** <https://github.com/mongodb/mongodb-atlas-cli>
- **最后更新:** 2026-07-21T03:53:57Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- atlas (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.57.0
## 项目历史与用法

MongoDB Atlas CLI is MongoDB's dedicated command-line client for Atlas. MongoDB documents it as a CLI built specifically for MongoDB Atlas, covering database deployments, Atlas Search, and common setup flows from the terminal.

### 项目历史

The tool emerged as the Atlas-specific successor to Atlas subcommands that had lived under mongocli. MongoDB's own mongocli release notes direct users away from mongocli atlas commands and toward the Atlas CLI, while the Atlas CLI changelog shows rapid expansion after its 2022-era releases: mongosh integration in Linux meta-packages, richer cluster and backup commands, Kubernetes configuration export, local deployment support, plugin work, and generated Atlas Administration API commands.

### 使用方式

Its practical workflow is operator- and developer-centered. atlas setup can authenticate, create a free database, load sample data, add the user's IP address, create a database user, and connect through mongosh. Package-manager coverage across Homebrew, MacPorts, Nix, Scoop, winget, and Linux packages reflects its role as MongoDB's cross-platform automation entry point for Atlas.

### 来源

- <https://formulae.brew.sh/formula/mongodb-atlas-cli>
- <https://github.com/mongodb/mongodb-atlas-cli>
- <https://www.mongodb.com/docs/atlas/cli/current/>
- <https://www.mongodb.com/docs/atlas/cli/current/atlas-cli-changelog/>
- <https://www.mongodb.com/docs/mongocli/current/release-notes/>
- <https://www.mongodb.com/try/download/shell>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- macOS: ~/Library/Application Support/atlascli/config.toml
- Unix: ~/.config/atlascli/config.toml, $XDG_CONFIG_HOME/atlascli/config.toml

## Credential files

- macOS: ~/Library/Application Support/atlascli/config.toml
- Unix: ~/.config/atlascli/config.toml, $XDG_CONFIG_HOME/atlascli/config.toml
## 其他软件包管理器记录

- Nix - mongodb-atlas-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mongodb-atlas-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/mongodb-atlas-cli: normalized package name match | Scoop official bucket manifest trees: bucket/mongodb-atlas-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - MongoDB.MongoDBAtlasCLI: normalized package name match | Windows Package Manager source index: MongoDB.MongoDBAtlasCLI from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - atlas: installed executable or alias match | MacPorts ports tree: math/atlas/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - atlas: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/at/atlas/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libatlas-base-dev - 3.10.3-13ubuntu1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libatlas-base-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Automatically Tuned Linear Algebra Software, generic static | http://math-atlas.sourceforge.net/
- Ubuntu apt - libatlas-doc - 3.10.3-13ubuntu1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libatlas-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Automatically Tuned Linear Algebra Software, documentation | http://math-atlas.sourceforge.net/
- Ubuntu apt - libatlas-test - 3.10.3-13ubuntu1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libatlas-test from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Automatically Tuned Linear Algebra Software, test programs | http://math-atlas.sourceforge.net/
- Ubuntu apt - libatlas3-base - 3.10.3-13ubuntu1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libatlas3-base from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Automatically Tuned Linear Algebra Software, generic shared | http://math-atlas.sourceforge.net/
- dnf - atlas - 3.10.3-33.fc45: installed executable or alias match | Fedora Rawhide package metadata: atlas from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Automatically Tuned Linear Algebra Software | http://math-atlas.sourceforge.net/
- dnf - atlas-corei2 - 3.10.3-33.fc45: installed executable or alias match | Fedora Rawhide package metadata: atlas-corei2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | ATLAS libraries for Corei2 (Ivy/Sandy bridge) CPUs | http://math-atlas.sourceforge.net/
- dnf - atlas-corei2-devel - 3.10.3-33.fc45: installed executable or alias match | Fedora Rawhide package metadata: atlas-corei2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development libraries for ATLAS for Corei2 (Ivy/Sandy bridge) CPUs | http://math-atlas.sourceforge.net/
- dnf - atlas-corei2-static - 3.10.3-33.fc45: installed executable or alias match | Fedora Rawhide package metadata: atlas-corei2-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | ATLAS libraries for Corei2 (Ivy/Sandy bridge) CPUs | http://math-atlas.sourceforge.net/
- dnf - atlas-devel - 3.10.3-33.fc45: installed executable or alias match | Fedora Rawhide package metadata: atlas-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development libraries for ATLAS | http://math-atlas.sourceforge.net/
- dnf - atlas-static - 3.10.3-33.fc45: installed executable or alias match | Fedora Rawhide package metadata: atlas-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Static libraries for ATLAS | http://math-atlas.sourceforge.net/
- winget - JakobHellermann.Atlas: installed executable or alias match | Windows Package Manager source index: JakobHellermann.Atlas from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/mongodb-atlas-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mongodb-atlas-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
