How You Interact with MongoDB

To actually use MongoDB, you need to connect to it, either:

  • Locally (on your machine)

  • Or remotely (using MongoDB Atlas)

🔹 Local Tools:

  • mongod – Starts the MongoDB server

  • mongosh – Opens a command-line shell to interact with MongoDB

  • MongoDB Compass – A graphical interface for viewing and querying data

🔹 Cloud Access (MongoDB Atlas):

  • Create a project → launch a cluster → get a connection string

  • Use Compass or mongosh with this connection string to work with your Atlas cluster

Updated on