# 安装 mongosh

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

## 安装

```sh
sudo av install brew:mongosh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mongosh
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mongosh
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/mongosh
```

  证据: Scoop official bucket manifest trees: bucket/mongosh.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mongosh
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mongosh>
- **版本:** 2.8.3
- **来源摘要:** MongoDB Shell to connect, configure, query, and work with your MongoDB database
- **主页:** <https://github.com/mongodb-js/mongosh>
- **仓库:** <https://github.com/mongodb-js/mongosh>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/@mongosh/cli-repl/-/cli-repl-2.8.3.tgz>
- **更新:** 2026-05-03T05:19:29Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- mongosh (cli)
- mongosh (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 2.8.3
- 管理器更新时间: 2026-05-03
- 本地数据: ok
- 上游仓库: https://github.com/mongodb-js/mongosh
- info: No cached GitHub release or tag data was available.

## 安全说明

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger 风险:** yellow / medium
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## 相关链接

- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [mongodb-atlas-cli](https://www.automicvault.com/pkg/brew/mongodb-atlas-cli/) - Popular package that depends on this formula.
- [mongosh](https://www.automicvault.com/pkg/npm/mongosh/) - Same normalized package name in another local ecosystem.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
