🍺 BREW Explorer

← all formulae

mongosh

brew install mongosh v2.8.3 Apache-2.0

Interactive command-line shell for connecting to and querying MongoDB databases.

Why you might care

Drop-in replacement for the legacy mongo shell with a modern CLI experience, REPL, and scripting support. Written in Node.js, it offers tab completion, syntax highlighting, and better error messages. Essential if you're working with MongoDB from the command line.

Categories

Alternatives

mongo Atlas CLI
7.4k
30-day installs · #441
36.0k
90-day · #341
178.1k
365-day · #308

Runtime dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "mongo",
    "Atlas CLI"
  ],
  "build_dependencies": [],
  "categories": [
    "database-client"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "node"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "MongoDB Shell to connect, configure, query, and work with your MongoDB database",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:52+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "mongosh",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://www.mongodb.com/try/download/shell",
  "homepage_og_description": "The MongoDB Shell is a modern command-line experience, full with features to make it easier to work with your database. Free download. Try now!",
  "homepage_og_image": "http://s3.amazonaws.com/info-mongodb-com/_com_assets/cms/kuzt9r42or1fxvlq2-Meta_Generic.png",
  "homepage_title": "MongoDB Shell Download | MongoDB",
  "installs_30d": 7401,
  "installs_365d": 178059,
  "installs_90d": 35985,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": "2026-06-20T23:44:53+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "mongosh",
  "oldnames": [],
  "one_liner": "Interactive command-line shell for connecting to and querying MongoDB databases.",
  "optional_dependencies": [],
  "rank_30d": 441,
  "rank_365d": 308,
  "rank_90d": 341,
  "raw_hash": "8bfb5c8084d36d3d",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/m/mongosh.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "2.8.3",
  "versioned_formulae": [],
  "why_use_this": "Drop-in replacement for the legacy mongo shell with a modern CLI experience, REPL, and scripting support. Written in Node.js, it offers tab completion, syntax highlighting, and better error messages. Essential if you\u0027re working with MongoDB from the command line."
}