Skip to content

hamsurang/deepwiki-cli

Repository files navigation

deepwiki-cli

Query GitHub repository wikis via DeepWiki — without MCP overhead.

Install

Homebrew (macOS/Linux)

brew tap hamsurang/deepwiki-cli
brew install deepwiki-cli

Cargo

cargo install deepwiki-cli

Local Development

Build and run the CLI locally from source:

git clone https://github.com/hamsurang/deepwiki-cli.git
cd deepwiki-cli

Verify your Rust toolchain:

rustc --version
cargo --version

The Rust channel is pinned via rust-toolchain.toml.

Convenient cargo aliases are defined in .cargo/config.toml:

cargo ck
cargo fmt-check
cargo lint

Build the project:

cargo build
cargo build --release

Run locally with Cargo:

cargo run -- ask facebook/react "How does useEffect work?"
cargo run -- structure facebook/react
cargo run -- read facebook/react

Run tests:

cargo test

Local lint/format checks:

cargo fmt-check
cargo lint
cargo test

Apply formatting locally:

cargo fmt --all

Install typo and naming lint tools (once):

cargo install typos-cli
npm install --global @ls-lint/ls-lint

Run typo and naming checks:

typos
ls-lint -config .ls-lint.json

Troubleshooting:

  • This CLI calls DeepWiki over network (https://mcp.deepwiki.com/mcp), so internet access is required.
  • If cargo is not found, ensure $HOME/.cargo/bin is in your PATH.

Usage

deepwiki-cli ask facebook/react "How does useEffect work?"
deepwiki-cli structure facebook/react
deepwiki-cli read facebook/react

Token Savings

Use with hamkit's deepwiki plugin instead of MCP connection:

Method Overhead
MCP server connection initialize + tool listing per session
deepwiki CLI (this tool) result text only

The CLI calls DeepWiki's HTTP API directly via Bash tool — only the result text enters Claude's context.

About

cli tools for deepwiki

Resources

Stars

Watchers

Forks

Contributors