Kingpin
Kingpin: A free, typed Go CLI framework with nested commands and generated shell completions. Ranked #25 of 60 in Command-Line Interface Frameworks by our editors (6.8/10); pricing: Free plan; best for go users wanting fluent typed command definitions.
At a glance
- Editor score6.8 / 10
- PricingFree plan
- Best forGo users wanting fluent typed command definitions
- Free planYes
- Paid fromFree
- Shell completionYes
- Facts checked17 Nov 2026
Where it wins
- Type-safe flags, positional arguments, and required values
- Nested subcommands with customizable Go-template help output
- Generates man pages and Bash, Zsh, and Fish completions
Where it doesn't
- Focused on Go rather than cross-language CLI development
- Documentation is the listed support channel
- Version 1 is deprecated; version 2 is the stable line
Our verdict on Kingpin
Kingpin is an open-source Go library for building command-line applications. It targets developers who want fluent definitions for applications, flags, commands, and positional arguments, with type-safe parsing throughout. Required flags and positional arguments help express command contracts directly, while callbacks support application-specific behavior. Arbitrarily nested subcommands make it suitable for utilities that organize several operations under one executable. Deployment is self-hosted, so the library fits projects that package and run their own Go binaries.
The published model is straightforward: Kingpin is open source and available on a free plan. Its feature set centers on CLI construction rather than a hosted service or external control plane. Configuration-file support and environment-variable binding are listed capabilities, alongside argument expansion through @file syntax. Customizable help output uses Go templates, giving teams control over generated command guidance without leaving the fluent API. Automatic man-page generation and completion scripts for Bash, Zsh, and Fish extend a command's fit across common Unix shell workflows.
Kingpin's strongest distinction is the combination of typed definitions, nested command structure, and generated documentation and completion artifacts in one Go-focused package. The repository describes version 2 as the current stable line, while version 1 is deprecated and retained for compatibility. It is marked “CONTRIBUTIONS ONLY,” with maintenance and new fixes dependent on community pull requests, and documentation is the listed support channel. Choose Kingpin when your team builds Go command-line tools and values typed declarations with shell and man-page generation. Consider an alternative when you need a framework centered on another language, a hosted deployment model, or vendor-managed support.
Your product? Our editors can test Kingpin in depth and publish a review, labelled as paid · from $149/mo →
Kingpin pricing
Kingpin fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Shell completion | Yes |
| Nested subcommands | Yes |
| Code generation | Not verified |
| Config file support | Yes |
| Environment variables | Yes |
| Typed API | Yes |
| Deployment | Self-hosted |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 17 Nov 2026 |
Alternatives to Kingpin
- ClapA free Rust crate with typed parsing, nested commands, validation, and completions.9.4
- ClickA free, open-source toolkit for typed, nested Python command-line applications.9.3
- TyperFree, open-source typed CLI framework with nesting, completions, and configuration support.9.2
See all Kingpin alternatives →
Used Kingpin? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Kingpin for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
Kingpin is listed in our Command-Line Interface Frameworks directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/kingpin/"><img src="https://www.itechguides.com/best/badge/kingpin.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update