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

All connecting and navigating commands · MongoDB 8 cheatsheet

Was this page helpful?