mongosh
officialcautiondatabasebrew
MongoDB · MongoDB, database inspection, and queries from the terminal.
$ brew install mongoshOne-liner to try
$ mongosh --versionAgent pack
Copy into an agent
A markdown-ready setup brief with install, verify, safe starting commands, and guardrails for AI agents.
Readiness
Usable with guardrails · 50/100
Verify
mongosh --version
Agent URL
/cli/mongosh/agent.md
Quick reference
Install
brew install mongoshVerify
mongosh --versionFirst command
mongosh --versionAbout
The official CLI from MongoDB. MongoDB, database inspection, and queries from the terminal.
Example workflow
1. mongosh --version