Documentation
¶
Overview ¶
Command gh-ask-docs is a GitHub CLI extension that asks the LLM at docs.github.com questions about GitHub using the provided docs.github.com AI Search API.
Build / install:
gh extension install ebonsignori/gh-ask-docs
Usage:
gh ask-docs [flags] <query>
Flags:
--version docs version (free-pro-team, enterprise-cloud,
or enterprise-server@<3.13-3.17>)
--sources display reference links
--no-render stream raw Markdown (default renders with Glamour)
--no-stream don't stream answer, only 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
Notes:
- Setting `--wrap=0` prevents Glamour from splitting long URLs by passing it an extremely large wrap width.
- When wrapping is disabled the terminal may visually wrap long lines. The spinner logic counts **visual** lines so frames clear cleanly.
- All spinner frames and debugging data are written to STDERR so STDOUT can be safely piped.
Click to show internal directories.
Click to hide internal directories.
