deepwiki
Query any public GitHub repo's docs from the terminal via DeepWiki. Assumes Node.js is installed.
Commands
| Command | Usage | Description |
|---|
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) |
Flags
| Flag | Purpose |
|---|
--json | Raw JSON output (good for piping) |
-q, --quiet | No spinners/progress |
--no-color | Disable colors |
Examples
bash
1# Understand a library's structure
2npx @seflless/deepwiki toc facebook/react
3
4# Get full docs for reference
5npx @seflless/deepwiki wiki oven-sh/bun --json > bun-docs.json
6
7# Ask a specific question
8npx @seflless/deepwiki ask anthropics/claude-code "How does the tool permission system work?"
9
10# Cross-project question
11npx @seflless/deepwiki ask facebook/react vercel/next.js "How do server components work across these projects?"
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