EVENTYou’re invited to MongoDB.local NYC on May 2. Use code Web50 for 50% off your ticket! Learn more >

Tools

MongoDB Shell. Best-in-class Database Shell Experience.

The quickest way to connect to MongoDB and Atlas to work with your data and manage your data platform.
Download Now
Contact sales
An example of using MongoDB Shell to connect Atlas to MongoDB.
Interface with MongoDB
The new MongoDB Shell lets you connect to MongoDB to work with your data and configure your database. With its enhanced usability features (intelligent autocomplete and syntax highlighting, easy to understand error messages and contextual help), it’s the quickest way to work with MongoDB and Atlas.
Key Features
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.

mdb_shell

Extensible with Snippets

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

A video demo focused on MongoDB Shell.
MongoDB Shell Demo
Presented by Massimiliano Marcon, Senior Product Manager, Developer Tools, MongoDB
Resources
mdb_shell

Getting Started

An introduction to MongoDB Shell; a modern user experience which allows for testing queries and operations directly with your database.

general_content_tutorial

Install & Connect

The MongoDB Shell, mongosh, is a fully functional JavaScript and Node.js 14.x REPL environment for interacting with MongoDB deployments.

general_content_collaborate

Community

Join discussions and ask questions about MongoDB Shell.

mdb_shell

Snippets

Explore mongosh-snippets, an experimental plugin feature for mongosh.

Ready to get started?

Ready to get started with MongoDB Shell? Download MongoDB Shell. Start configuring your database and working with your data.
Download NowDocumentation
example