Kingpin review
A free, typed Go CLI framework with nested commands and generated shell completions.
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
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.
Kingpin pros and cons
- 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
Kingpin fact sheet, pricing and score →
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