Skip to main content

mongodb

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

소스 정보

저장소
fworks-tech/agenthood
최근 소스 활동
2026년 9월 16일 21:10
감지된 SKILL.md 언어
영어
스타
3
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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]`
GitHub에서 보기