Docs Menu

Docs HomeMongoDB Shell

Install mongosh

On this page

  • Prerequisites
  • Procedure
  • Next Steps

To use the MongoDB Shell, you must have a MongoDB deployment to connect to.

  • For a free cloud-hosted deployment, you can use MongoDB Atlas.

  • To learn how to run a local MongoDB deployment, see Install MongoDB.

You can use the MongoDB Shell to connect to MongoDB version 4.2 or greater.

Select the appropriate tab for your operating system:

Once you successfully install mongosh, learn how to connect to your MongoDB deployment.

←  MongoDB Shell (mongosh)Connect to a Deployment →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.