LAUNCHMongoDB 8.3 is built for the sub-100ms retrieval & zero downtime AI demands. Read blog >
AI DATAStop fighting your data layer. Get the memory & retrieval agents need to scale. Read blog >

MongoDB Shell features

Explore the key features of MongoDB Shell.

View Documentation

Interacting with your data is easier than ever

MongoDB Shell (mongosh) is equipped with developer-friendly features like syntax highlighting, intelligent autocomplete, and clear error messages, designed to enhance your data interaction experience.

atlas_keyword_highlighting

Syntax Highlighting

Input and output in the Shell are formatted and color-coded to be easy to read.

atlas_performance_advisor

Error Messages

Clear error messages help you understand what went wrong in your code and where.

atlas_autocomplete

Intelligent Autocomplete

The Shell prompts you with suggested language when you can’t remember a command or an operator.

general_content_tutorial

Contextual Help

Get contextual help for Shell classes and commands with direct links to online documentation.

general_action_develop

Scripting

Built on top of the Node.js REPL, the MongoDB Shell gives you a powerful scripting environment.

Learn more
mdb_shell

Extensible with Snippets

Save commonly used scripts as snippets to reuse later and share.

Learn more

Interact with your database programmatically

The MongoDB Shell (mongosh) is a JavaScript and Node.js REPL environment for interacting with MongoDB deployments in Atlas, locally, or on another remote host.
Download Shell
GET STARTED NOW
  • Perform CRUD operations
  • Execute Aggregation Pipelines
  • Manage Databases and Collections
  • Administer Servers
  • Manage access and security