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
What You Can Do
Access MongoDB From Your Shell
Learn More
Other Powerful Features
Use an external or built-in editor to work with multiline functions. Go beyond the line-oriented mongosh
default console.
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.
Find out which methods mongosh
supports. Get example syntax and parameter details for supported methods.