A CLI Extension for the GitHub CLI that lets you ask an LLM questions about GitHub using the official GitHub documentation.
Questions are answered by the AI search API provided by docs.github.com.
Install this extension using the GitHub CLI:
gh extension install ebonsignori/gh-ask-docs
You'll need the GitHub CLI installed first:
- macOS:
brew install gh
- Windows:
winget install GitHub.cli
- Linux: See installation instructions
gh ask-docs [flags] <query>
Ask a basic question:
gh ask-docs "How do I create a pull request?"
Get sources with your answer:
gh ask-docs --sources "What are GitHub Actions?"
Query for Enterprise Server documentation:
gh ask-docs --version [email protected] "How to configure SAML?"
Stream raw markdown without rendering:
gh ask-docs --no-render "Git workflow best practices"
Query without streaming the response:
gh ask-docs --no-stream "How do I add GitHub Copilot to my IDE?"
Flag | Description |
---|---|
--version |
Docs version (free-pro-team , enterprise-cloud , or enterprise-server@<3.13-3.17> ) |
--sources |
Display reference links after the answer |
--no-render |
Stream raw Markdown without Glamour rendering |
--no-stream |
Don't stream answer, print only when complete (stdout-friendly) |
--wrap |
Word-wrap width when rendering (0 = no wrap) |
--theme |
Color theme: auto (default), light , dark |
--debug |
Show raw NDJSON from the API for troubleshooting |
Please see development docs.
MIT