Guides
- User Guide5,624 words, about 24 min to read. Markdown
- Admin Guide4,474 words, about 19 min to read. Markdown
Cobra is a library for building modern command-line interface (CLI) applications in Go. It powers the command structure behind tools such as kubectl, hugo, the GitHub CLI (gh), and the go toolchain's cousins.
Generated June 2026 from spf13/cobra at ad460ea
AI-generated documentation. The library is checked by sampling (three repositories so far); this guide was not individually reviewed. Verify against the project before relying on it.
Built from the public repository github.com/spf13/cobra at commit ad460ea. Upstream may have moved on since.
Unofficial; not affiliated with or reviewed by the project. How the guides were made, and how they were checked: guide library.