Docs Menu

Welcome to MongoDB Shell (mongosh)

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. Use the MongoDB Shell to test queries and interact with the data in your MongoDB database.

Download mongosh
Abstract illustration showing a terminal interacting with different systems
What You Can Do
Learn More
CLI Icon

Use an external or built-in editor to work with multiline functions. Go beyond the line-oriented mongosh default console.

Unlock the Power of Editor Mode

MongoDB Shell Icon

Access session logs for any session within the last 30 days. Find the command syntax you can't quite remember, or look for common commands you can script.

Access Session Logs

Terminal Icon in a circle

Find out which methods mongosh supports. Get example syntax and parameter details for supported methods.

View Available Methods