Agent skill
mongodb
Manage MongoDB databases via the mongosh tool.
Install this agent skill to your Project
npx add-skill https://github.com/olasunkanmi-SE/codebuddy/tree/main/skills/mongodb
Metadata
Additional technical details for this skill
- auth
-
{ "type": "none" } - icon
- database
- config
-
[ { "name": "MONGODB_URI", "type": "string", "label": "Connection URI", "required": false, "placeholder": "mongodb://localhost:27017" } ] - version
- 1.0.0
- category
- databases
- displayName
- MongoDB
- dependencies
-
{ "cli": "mongosh", "install": { "linux": { "apt": "mongodb-mongosh", "script": "wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add - && sudo apt install mongodb-mongosh" }, "darwin": { "brew": "mongosh" }, "windows": { "choco": "mongodb-shell", "scoop": "mongosh", "winget": "MongoDB.Shell" } }, "checkCommand": "mongosh --version" }
SKILL.md
mongosh
Use mongosh to interact with MongoDB databases.
Common Commands
Connection
- Connect:
mongosh "mongodb://user:password@host:port/dbname"
Operations
- Show databases:
show dbs - Use database:
use <dbname> - Show collections:
show collections - Find documents:
db.collection.find().limit(5) - Insert document:
db.collection.insertOne({ key: "value" }) - Quit:
exit
Notes
- Requires
mongoshto be installed in the environment.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Send emails using mailsend-go CLI
aws
Manage AWS resources via the aws CLI.
telegram
Send Telegram messages, files, and interact with Telegram bots via the telegram-send CLI tool.
redis
Manage Redis databases via the redis-cli tool.
datadog
Query metrics, manage monitors, post events, and interact with Datadog via the dogshell CLI.
linear
Manage Linear issues via the linear-cli (unofficial or custom wrapper).
Didn't find tool you were looking for?