Skip to main content

mongodb

Manage MongoDB databases via the mongosh tool.

来源信息

仓库
olasunkanmi-SE/codebuddy
最近来源活动
2026年3月8日 03:01
检测到的 SKILL.md 语言
英语
星标
141
分支
44

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
mongodb
description
Manage MongoDB databases via the mongosh tool.
metadata
{"displayName":"MongoDB","icon":"database","category":"databases","version":"1.0.0","dependencies":{"cli":"mongosh","checkCommand":"mongosh --version","install":{"darwin":"[Truncated]","linux":"[Truncated]","windows":"[Truncated]"}},"config":[{"name":"MONGODB_URI","label":"Connection URI","type":"string","required":false,"placeholder":"mongodb://localhost:27017"}],"auth":{"type":"none"}}
# 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 `mongosh` to be installed in the environment.
在 GitHub 查看