Automic VaultAutomic Vault

brew

Install mongosh with Homebrew, Nix, scoop

MongoDB Shell to connect, configure, query, and work with your MongoDB database. Version 2.9.2 via Homebrew; verified 2026-07-02.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install mongosh

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#mongosh

nixpkgs package indexes · pkgs/by-name/mo/mongosh/package.nix · source: api.github.com

Windows

Scoopverified · 92%
scoop install extras/mongosh

Scoop official bucket manifest trees · bucket/mongosh.json · source: api.github.com

overview

Package summary

MongoDB Shell to connect, configure, query, and work with your MongoDB database

Commands and aliases

  • mongosh

history

Project history and usage

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.

Project history

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.

How it is used

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.

security posture

Risk level: yellow

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

Risk classifier

yellow risk · medium confidence · runtime

Why

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

Signals

  • text:database
  • text:shell

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
mongoshcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.9.2
manager updated2026-07-02
local dataok
upstreamnot checked
latest detectednot detected

https://www.mongodb.com/try/download/shell

install metadata

Package metadata

Package keybrew:mongosh
Version2.9.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/mongosh
Homepagehttps://www.mongodb.com/try/download/shell
Repositoryhttps://github.com/mongodb-js/mongosh
Upstream docshttps://www.mongodb.com/docs/mongodb-shell
LicenseApache-2.0
Source archivehttps://registry.npmjs.org/@mongosh/cli-repl/-/cli-repl-2.9.2.tgz
Last updated2026-07-02T16:39:47Z
Pulseupdated
Dependenciesnode
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemongosh
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

mongosh

nix profile install nixpkgs#mongosh
  • normalized package name match
  • Matched by: Mongosh
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/mo/mongosh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Scoop95%

extras/mongosh

scoop install extras/mongosh
  • normalized package name match
  • Matched by: Mongosh
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/mongosh.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment