deepwiki

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

deepwiki

deepwiki

Query any public GitHub repo's docs from the terminal via DeepWiki. Assumes Node.js is installed.
通过DeepWiki从终端查询任意公开GitHub仓库的文档。假设已安装Node.js。

Commands

命令

CommandUsageDescription
toc
npx @seflless/deepwiki toc <owner/repo>
Table of contents
wiki
npx @seflless/deepwiki wiki <owner/repo>
Full wiki content
ask
npx @seflless/deepwiki ask <owner/repo> "<question>"
AI-powered Q&A
ask
npx @seflless/deepwiki ask <repo1> <repo2> "<question>"
Multi-repo Q&A (max 10)
命令用法说明
toc
npx @seflless/deepwiki toc <owner/repo>
目录
wiki
npx @seflless/deepwiki wiki <owner/repo>
完整Wiki内容
ask
npx @seflless/deepwiki ask <owner/repo> "<question>"
AI驱动的问答
ask
npx @seflless/deepwiki ask <repo1> <repo2> "<question>"
多仓库问答(最多10个)

Flags

参数

FlagPurpose
--json
Raw JSON output (good for piping)
-q, --quiet
No spinners/progress
--no-color
Disable colors
参数用途
--json
原始JSON输出(适合管道操作)
-q, --quiet
无加载动画/进度提示
--no-color
禁用颜色

Examples

示例

bash
undefined
bash
undefined

Understand a library's structure

了解一个库的结构

npx @seflless/deepwiki toc facebook/react
npx @seflless/deepwiki toc facebook/react

Get full docs for reference

获取完整文档用于参考

npx @seflless/deepwiki wiki oven-sh/bun --json > bun-docs.json
npx @seflless/deepwiki wiki oven-sh/bun --json > bun-docs.json

Ask a specific question

提出具体问题

npx @seflless/deepwiki ask anthropics/claude-code "How does the tool permission system work?"
npx @seflless/deepwiki ask anthropics/claude-code "How does the tool permission system work?"

Cross-project question

跨项目问题

npx @seflless/deepwiki ask facebook/react vercel/next.js "How do server components work across these projects?"
undefined
npx @seflless/deepwiki ask facebook/react vercel/next.js "How do server components work across these projects?"
undefined

Tips

提示

  • Use
    --json
    when you need structured data to parse
  • Use
    toc
    first to understand what docs exist, then
    ask
    for specifics
  • Multi-repo
    ask
    is great for understanding how libraries interact
  • 当你需要结构化数据用于解析时,使用
    --json
    参数
  • 先使用
    toc
    了解现有文档内容,再用
    ask
    查询具体细节
  • 多仓库
    ask
    非常适合了解不同库之间的交互方式