mongosh
« Back to VersTracker
Description:
MongoDB Shell to connect, configure, query, and work with your MongoDB database
Type: Formula  |  Latest Version: 2.5.10@0  |  Tracked Since: Dec 1, 2025
Links: Homepage  |  GitHub  |  Docs  |  @MongoDB  |  formulae.brew.sh
Stars: 377  |  Forks: 82  |  Language: TypeScript  |  Category: Databases
Tags: mongodb database shell cli developer-tools nosql
Install: brew install mongosh
About:
mongosh is the official MongoDB Shell that provides a modern command-line interface for interacting with MongoDB databases. It replaces the legacy mongo shell with a fully featured JavaScript environment, offering enhanced autocomplete, richer error messages, and improved scripting capabilities for database administration and development.
Key Features:
  • Modern JavaScript engine with full ES6+ support
  • Rich autocomplete and inline documentation
  • Enhanced error messages and debugging capabilities
  • Support for MongoDB-specific aggregation pipelines and operations
  • Built-in TypeScript support for type-aware scripting
Use Cases:
  • Interactive database administration and query testing
  • Automated database maintenance and backup scripts
  • Development and debugging of MongoDB queries and aggregations
  • CI/CD pipeline automation for database schema management
Alternatives:
  • mongo – Legacy MongoDB shell with basic JavaScript support, lacks modern features
  • mongocli – Atlas-focused CLI for cloud management, not a database query shell
Version History
Detected Version Rev Change Commit
Dec 24, 2025 9:55pm 2.5.10 0 VERSION_BUMP c2d694dc
Dec 1, 2025 9:15pm 0 VERSION_BUMP 0fab2e7d
Dec 1, 2025 12:51pm 0 VERSION_BUMP a5af199b
Sep 12, 2025 3:23pm 0 VERSION_BUMP 91440e3b
Dec 17, 2024 11:36pm 0 VERSION_BUMP b0e15868
Dec 12, 2024 5:35pm 0 VERSION_BUMP 02d838d7
Oct 30, 2024 6:43am 0 VERSION_BUMP 9e9a25c8
Oct 8, 2024 3:03pm 0 VERSION_BUMP ad43eb2e