Command-line tool
MongoDB Shell
winget/MongoDB.Shell
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
The legacy MongoDB shell. See `mongosh` for the new shell. Note: All connection options can be replaced with one string: `mongodb://user@host:port/db_name?authSource=authdb_name`. mongodb db mongo shell mongodb-shell
At a glance
- Type
- Command-line tool
- Install on
- Windows
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id MongoDB.Shell -e
Connect to a local database on the default port (`mongodb://localhost:27017`)
mongo
Connect to a database
mongo --host host --port port db_name
Authenticate using the specified username on the specified database (you will be prompted for a password)
mongo --host host --port port --username username --authenticationDatabase authdb_name db_name
Browse
Related command-line tools
- mongosh
MongoDB Shell to connect, configure, query, and work with your MongoDB database mongosh mongodb mongo shell - MongoDB CLI
MongoDB CLI (Windows package; no description in the winget index) mongodb db mongo shell - mongo-orchestration
REST API to manage MongoDB configurations on a single host - mongo-c-driver
C driver for MongoDB - mongodb
A document database with the scalability and flexibility. - PowerShell Preview
Shell and scripting language designed especially for system administration. This command refers to PowerShell version… - powershell
Command-line shell and scripting language cross-platform open-source powershell shell dotnet command-line pwsh - mongodb-atlas-cli
Atlas CLI enables you to manage your MongoDB Atlas database mongodb cloud cli atlas cloud-management
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents