Skip to content

Shell Connection

We need a tool to talk to the cluster.

To get started, we will use mongosh (MongoDB Shell), a JS-based terminal interface.

Why not the GUI (Compass)?

Compass is great, but mongosh is the bare-metal way to learn the basics.

The easiest path for Mac users.

Terminal window
brew install mongosh

The modern path for Windows users.

Terminal window
winget install MongoDB.Mongosh

If package managers fail us, download the ZIP file from the official MongoDB Shell Download page.

Open your terminal and check the version to ensure it’s installed.

Terminal window
mongosh --version

If we see a version number (e.g., 2.7.0), our tools are ready.


Choosing MongoDB Shell (mongosh) as the connection method

Fig 1: Choosing MongoDB Shell (mongosh) as the connection method.

Wire the circuit: connecting our local terminal to the cloud cluster.