MongoDB 8 · Connecting and navigating
Connect to Atlas
Connect with a connection string and a user, prompting for the password.
mongosh "mongodb+srv://cluster0.example.mongodb.net/mydb" --username appUser
Official MongoDB 8 documentation
More connecting and navigating commands
- Check the shell version
- Connect to a local server
- List databases
- Switch database
- List collections
- Check the server version
All connecting and navigating commands · MongoDB 8 cheatsheet