mongo --shell

will open the shell interface.

https://docs.mongodb.com/manual/reference/program/mongo/

Answer from shakhawat on Stack Overflow
🌐
MongoDB
mongodb.com β€Ί try β€Ί download β€Ί shell
MongoDB Shell Download | MongoDB
The MongoDB Shell is a modern command-line experience, full with features to make it easier to work with your database. Free download. Try now!
🌐
MongoDB
mongodb.com β€Ί docs β€Ί mongodb-shell
Welcome to MongoDB Shell (mongosh) - mongosh - MongoDB Docs
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.
Discussions

How to start mongodb shell? - Stack Overflow
I am using MAC and I have successfully logged in to the server and started the server using the following command ./mongod then it says Thu Jul 14 01:50:41 db version v1.6.5, pdfile version 4.5 ... More on stackoverflow.com
🌐 stackoverflow.com
Use [DB] for Mongodb with shell - Stack Overflow
I am researching now the simple "use" command for the mongo command. Please help me. I just want save the my query in a file, but before that i need to connect to a certain database. For ... More on stackoverflow.com
🌐 stackoverflow.com
Mongodb shell is not uninstalled
Hi everyone, I am a mongodb novice. I was tasked to migrate existing mongodb database to a remote server. The issue starts with me changing the dB path (mongodump and mongorestore work fine with the default dB path at /var/lib/mo go) at the new server. I tried to change to another directory ... More on mongodb.com
🌐 mongodb.com
1
0
October 20, 2022
MongoDB Cheat Sheet - Essential MongoDB Shell Commands
17.0k members in the mongodb community. News, articles, and interesting stuff in general about MongoDB (unofficial). More on reddit.com
🌐 r/mongodb
9
🌐
MongoDB
mongodb.com β€Ί products β€Ί tools β€Ί shell
MongoDB Shell: Manage and interact with your database | MongoDB
MongoDB Shell (mongosh) is an interactive tool used for direct data manipulation, advanced querying, database administration, and access control. It can perform all essential data operations: creating/viewing, adding, updating, and deleting data.
🌐
DigitalOcean
digitalocean.com β€Ί community β€Ί tutorials β€Ί how-to-use-the-mongodb-shell
How To Use the MongoDB Shell | DigitalOcean
July 29, 2021 - The MongoDB shell is an interactive console you can use to connect to the database server and execute commands on it, allowing you to perform administrative tasks and read, write, or manipulate data directly. The MongoDB shell enables you to connect to the database from a command line prompt ...
🌐
GitHub
github.com β€Ί mongodb-js β€Ί mongosh
GitHub - mongodb-js/mongosh: The MongoDB Shell
Files must end in .js and will exit after unless --shell is specified. Examples: Start mongosh using 'ships' database on specified connection string: $ mongosh mongodb://192.168.0.5:9999/ships For more information on usage: https://mongodb.com/docs/mongodb-shell.
Starred by 377 users
Forked by 82 users
Languages Β  TypeScript 91.1% | JavaScript 3.6% | Kotlin 3.6% | Shell 1.3%
Find elsewhere
🌐
YouTube
youtube.com β€Ί net ninja
Complete MongoDB Tutorial #5 - Using the MongoDB Shell - YouTube
πŸ±β€πŸ’» View this course & other premium courses without ads on the Net Ninja Pro site:https://net-ninja-pro.teachable.com/p/net-ninja-pro/πŸ±β€πŸ’» Access the cou...
Published Β  March 23, 2022
Views Β  197K
🌐
MongoDB
mongodb.com β€Ί docs home β€Ί tools β€Ί mongodb shell
Install mongosh - mongosh - MongoDB Docs
Prerequisites, compatibility issues, and installation instructions for mongosh, the MongoDB Shell.
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί mongodb β€Ί mongodb-shell
MongoDB Shell - GeeksforGeeks
July 23, 2025 - In conclusion, MongoDB Shell is a powerful and versatile tool that provides developers and database administrators with an intuitive command-line interface to interact with MongoDB databases.
🌐
MongoDB
mongodb.com β€Ί docs home β€Ί tools β€Ί sql interface β€Ί connect
Connect from the MongoDB Shell - Atlas - MongoDB Docs
This page describes how to connect to a federated database instance through the MongoDB Shell (mongosh).
🌐
BMC Software
bmc.com β€Ί blogs β€Ί mongo-shell-basic-commands
MongoDB Shell Basic Commands – BMC Software | Blogs
MongoDB Shell is an interactive JavaScript-based command-line interface used to interact with MongoDB databases. Learn basic mongosh commands.
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί mongodb β€Ί how-to-use-the-mongodb-shell
How To Use the MongoDB Shell - GeeksforGeeks
September 24, 2025 - The MongoDB Shell (mongosh) is an interactive command-line tool for working with MongoDB.
🌐
YouTube
youtube.com β€Ί watch
How to download and install Mongodb shell Mongosh on Windows tutorial - YouTube
How to download and install mongodb database shell mongosh is shown in this video#mongodbtutorial
Published Β  July 19, 2023
🌐
Bytebase
bytebase.com β€Ί reference β€Ί mongodb β€Ί how-to β€Ί how-to-install-mongodb-shell-on-mac-ubuntu-centos-windows
How to install Mongo Shell (mongosh) on Mac, Ubuntu, CentOS, Windows
MongoDB Shell mongosh is the modern command-line interface for interacting with MongoDB databases. This guide walks you through installing mongosh on Mac, Ubunt...
🌐
MongoDB
mongodb.com β€Ί docs home
MongoDB CRUD Operations - Database Manual - MongoDB Docs
Manage documents in collections by running create, read, update, and delete operations.
🌐
MongoDB
mongodb.com β€Ί docs home β€Ί tools β€Ί compass
Embedded MongoDB Shell - Compass - MongoDB Docs
Starting in version 1.22, MongoDB Compass contains an embedded shell, mongosh. mongosh is a JavaScript environment for interacting with MongoDB deployments.
🌐
MongoDB
mongodb.com β€Ί docs home β€Ί tools β€Ί mongodb shell
Run Commands - mongosh - MongoDB Docs
Use run commands in the MongoDB Shell to create or switch databases, terminate a query, or clear the console.
🌐
MongoDB
mongodb.com β€Ί working with data β€Ί developer tools
Mongodb shell is not uninstalled - Developer Tools - MongoDB Community Hub
October 20, 2022 - Hi everyone, I am a mongodb novice. I was tasked to migrate existing mongodb database to a remote server. The issue starts with me changing the dB path (mongodump and mongorestore work fine with the default dB path at /var/lib/mo go) at the new server. I tried to change to another directory ...
🌐
MongoDB
learn.mongodb.com β€Ί courses β€Ί the-mongodb-shell
The MongoDB Shell
Discover our MongoDB Database Management courses and begin improving your CV with MongoDB certificates. Start training with MongoDB University for free today.