mongodb
Installation
SKILL.md
mongosh
Use mongosh to interact with MongoDB databases.
Common Commands
Connection
- Connect:
mongosh "mongodb://localhost:27017" - Connect with auth:
mongosh "mongodb://user:pass@host:27017/db"
Inspection
- List databases:
show dbs - Use database:
use <dbname> - List collections:
show collections