Skip to main content

mongodb

Manage MongoDB databases via the mongosh CLI. Use when querying, inspecting, or managing MongoDB collections.

Quellinformationen

Repository
fworks-tech/agenthood
Letzte Quellaktivität
16. September 2026 um 21:10
Erkannte Sprache von SKILL.md
Englisch
Sterne
3
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
mongodb
description
Manage MongoDB databases via the mongosh CLI. Use when querying, inspecting, or managing MongoDB collections.
license
MIT
metadata
{"category":"databases","dependencies":{"cli":"mongosh","checkCommand":"mongosh --version","install":{"darwin":"[Truncated]","linux":"[Truncated]","windows":"[Truncated]"}}}
# 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` ### Queries - Find documents: `db.collection.find({ field: "value" }).limit(10)` - Count documents: `db.collection.countDocuments({})` - Insert: `db.collection.insertOne({ name: "test" })` - Update: `db.collection.updateOne({ _id: id }, { $set: { field: "value" } })` ## Notes - Use `mongosh` (new shell) not the deprecated `mongo` shell - Connection string format: `mongodb://[user:pass@]host[:port]/[db]`
Auf GitHub ansehen