Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

Kingpin

Free#25 of 60 in Command-Line Interface Frameworks

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.

6.8/10Editor score
Kingpin6.8 Visit Kingpin

At a glance

  • Editor score
    6.8 / 10
  • Pricing
    Free plan
  • Best for
    Go users wanting fluent typed command definitions
  • Free plan
    Yes
  • Paid from
    Free
  • Shell completion
    Yes
  • Facts checked
    17 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

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

Kingpin fact sheet

Free planYes
Paid fromFree
Shell completionYes
Nested subcommandsYes
Code generationNot verified
Config file supportYes
Environment variablesYes
Typed APIYes
DeploymentSelf-hosted
SupportDocs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
PricingFree plan
Websitegithub.com
Facts checked17 Nov 2026

Alternatives to Kingpin

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

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — Kingpin 6.8/10

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