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.

A video demo focused on MongoDB Shell.

MongoDB Shell Demo

Presented by Massimiliano Marcon, Senior Product Manager, Developer Tools, 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.
An example of using MongoDB Shell to connect Atlas to MongoDB.

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.

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.

Read the blog post
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.

See the documentation
general_content_collaborate

Community

Join discussions and ask questions about MongoDB Shell.

Check out the community
mdb_shell

Snippets

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

Take a look and build your own

Get the most out of Atlas

Power more data-driven experiences and insights with the rest of our developer data platform.
mdb_compass

Compass

Explore and interact with your data using Compass, the GUI for MongoDB. Query, modify, delete, and more — all from one interface.

Learn more
atlas_cli

Atlas CLI

Create, manage, and automate a MongoDB Atlas database deployment directly from your terminal.

Learn more
atlas_charts

Charts

Bring your data to life instantly. Create, share, and embed visualizations for real-time insights and business intelligence.

Learn more

Ready to get started?

Ready to get started with MongoDB Shell? Download MongoDB Shell. Start configuring your database and working with your data.
Illustration of a stack representing a database.