LAUNCHMongoDB 8.3 is built for the sub-100ms retrieval & zero downtime AI demands. Read blog >
AI DATAStop fighting your data layer. Get the memory & retrieval agents need to scale. Read blog >

Getting started with MongoDB Shell

Download MongoDB Shell to start configuring your database and working with your data programmatically.

Download Now
Illustration of a pair of hands working on a laptop

Get started in three easy steps

number_1

Find your connection string

The connection string varies depending on the type of deployment you're connecting (Atlas or self-hosted deployment).

Find your connection string for Atlas
number_2

Connect to a MongoDB deployment

Use the connection string to connect to your MongoDB deployment.

Connect to MongoDB
number_3

Interact with your data

Use your chosen connection type to view your data, import documents, and run queries.

Perform CRUD operations

Explore more resources

general_action_read

Check out our docs

Get the most out of MongoDB Shell with our in-depth documentation.

View documentation
general_content_tutorial

Intro to MongoDB

This beginner-friendly path covers MongoDB basics like CRUD, schema design, and the document model—all in a guided online format.

Start the course
general_content_play

Get fast reads with Shell

Learn how to use the find() and findOne() read methods with the MongoDB Shell (mongosh).

Watch video

Interact with your database programmatically

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.
Download Shell
GET STARTED NOW
  • Perform CRUD operations
  • Execute Aggregation Pipelines
  • Manage Databases and Collections
  • Administer Servers
  • Manage access and security