macOS
brew install mongoshlocal Homebrew formula metadata
安装
brew install mongoshlocal Homebrew formula metadata
nix profile install nixpkgs#mongoshnixpkgs package indexes · pkgs/by-name/mo/mongosh/package.nix · 来源: api.github.com
scoop install extras/mongoshScoop official bucket manifest trees · bucket/mongosh.json · 来源: api.github.com
概览
MongoDB Shell to connect, configure, query, and work with your MongoDB database
历史
mongosh is the MongoDB Shell, MongoDB's modern JavaScript and Node.js REPL for interacting with MongoDB deployments in Atlas, local installations, or remote hosts. MongoDB introduced the first preview on 2020-06-08 after deciding that extending the legacy mongo shell was not the right path for a growing MongoDB platform.
The redesign focused on a shell that could be extensible, embeddable in other products, and easier to use in terminals. The public changelog records mongosh v1.0 on 2021-07-09, after a preview series that added features such as transactions support, AWS IAM authentication, script loading, --eval, .mongoshrc.js customization, MongoDB 5.0 support, Stable API-aware autocomplete, and snippets. The GitHub repository is a monorepo for shell components across REPL, browser, Compass, and related environments.
Users run mongosh to test queries, inspect and change data, configure settings, and script database operations with shell helpers on top of the MongoDB driver. MongoDB distributes it as an Apache-2.0 standalone product separate from the MongoDB Server, and package managers such as Homebrew, Nix, and Scoop make it available independently from server releases.
安全态势
broad file, network, media, or database tool signal. generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mongosh | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.mongodb.com/try/download/shell
安装元数据
| 软件包键 | brew:mongosh |
|---|---|
| 版本 | 2.9.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mongosh |
| 主页 | https://www.mongodb.com/try/download/shell |
| 仓库 | https://github.com/mongodb-js/mongosh |
| 上游文档 | https://www.mongodb.com/docs/mongodb-shell |
| 许可证 | Apache-2.0 |
| 源码归档 | https://registry.npmjs.org/@mongosh/cli-repl/-/cli-repl-2.9.2.tgz |
| 最后更新 | 2026-07-20T13:51:29-04:00 |
| Pulse | updated |
| 依赖 | node |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mongosh |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mongosh
nix profile install nixpkgs#mongoshextras/mongosh
scoop install extras/mongosh来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.