# mongosh を Homebrew, Nix, scoop でインストール

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.9.2
- **ソース概要:** MongoDB Shell to connect, configure, query, and work with your MongoDB database
- **ホームページ:** <https://www.mongodb.com/try/download/shell>
- **上流ドキュメント:** <https://www.mongodb.com/try/download/shell>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://registry.npmjs.org/@mongosh/cli-repl/-/cli-repl-2.9.2.tgz>
- **最終更新:** 2026-07-20T13:51:29-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- mongosh (cli)
- mongosh (エイリアス)

## 依存関係

- node

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.9.2
- マネージャ更新日: 2026-07-20
- ローカルデータ: OK
- 上流リポジトリ: https://www.mongodb.com/try/download/shell
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://formulae.brew.sh/formula/mongosh>
- <https://github.com/mongodb-js/mongosh>
- <https://www.mongodb.com/company/blog/product-release-announcement/introducing-the-new-shell>
- <https://www.mongodb.com/docs/mongodb-shell/>
- <https://www.mongodb.com/docs/mongodb-shell/changelog/>
- <https://www.mongodb.com/try/download/shell>


## セキュリティノート

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

- **Geiger リスク:** yellow / 中
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## ソースデータベース詳細

- **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:** stable

## 他のパッケージマネージャ記録

- Nix - mongosh: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mongosh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - extras/mongosh: normalized package name match | Scoop official bucket manifest trees: bucket/mongosh.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://pkg.so/ja/brew/node/) - Runtime dependency declared by Homebrew.
- [mongodb-atlas-cli](https://pkg.so/ja/brew/mongodb-atlas-cli/) - Popular package that depends on this formula.
- [litecli](https://pkg.so/ja/brew/litecli/) - Shares pkgdb curated category or tags: cli, database, database-client, developer-tools.
- [neonctl](https://pkg.so/ja/brew/neonctl/) - Shares pkgdb curated category or tags: cli, database, developer-tools.
- [dbhash](https://pkg.so/ja/brew/dbhash/) - Shares pkgdb curated category or tags: cli, database, developer-tools.
- [pgcli](https://pkg.so/ja/brew/pgcli/) - Shares pkgdb curated category or tags: cli, database, database-client, developer-tools.
- [mongocli](https://pkg.so/ja/brew/mongocli/) - Shares pkgdb curated category or tags: cli, developer-tools, mongodb.
- [dblab](https://pkg.so/ja/brew/dblab/) - Shares pkgdb curated category or tags: cli, database, database-client, developer-tools.
- [nuxi](https://pkg.so/ja/brew/nuxi/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript.
- [mongosh](https://pkg.so/ja/npm/mongosh/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, database, mongodb, mongosh, repl.
- [mongosh](https://pkg.so/ja/npm/mongosh/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
