github.com/alecthomas/kong

kong

Package kong aims to support arbitrarily complex command-line structures with as little developer effort as possible.

77

Decision Signals

Health score 77/100, confidence 80/100.

Strong
Maintenance 83
Adoption 66
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/alecthomas/kong

Package Data

updated Jun 11, 2026
Latest versionv1.15.0
Imported by3.1K packages
Stars0
Forks0
Last activity2 months ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

365 symbols
SymbolKindSynopsis
AfterApply Type type AfterApply interface{ ... }
AfterApply.AfterApply Method AfterApply func(args ...any) error
AfterRun Type type AfterRun interface{ ... }
AfterRun.AfterRun Method AfterRun func(args ...any) error
Application Type type Application struct{ ... }
Application.HelpFlag Field HelpFlag *Flag
Argument Type type Argument = Node
BeforeApply Type type BeforeApply interface{ ... }
BeforeApply.BeforeApply Method BeforeApply func(args ...any) error
BeforeReset Type type BeforeReset interface{ ... }
BeforeReset.BeforeReset Method BeforeReset func(args ...any) error
BeforeResolve Type type BeforeResolve interface{ ... }

Similar Packages

Go CLI Frameworks

#1 urfave/cli

Package cli provides a minimal framework for creating and organizing command line Go applications.

Go CLI Frameworks 24.1K stars 23.1K imported-by 65% confidence
94

#2 Cobra

Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.

Go CLI Frameworks 44.1K stars 0 imported-by 65% confidence
87

#3 go-arg

Struct-based argument parsing in Go.

Go CLI Frameworks 2.3K stars 1.7K imported-by 65% confidence
87

#4 dasel

Unified querying, transformation, and modification of JSON, TOML, YAML, XML, INI, HCL, KDL and CSV.

Go CLI Frameworks 8.0K stars 0 imported-by 45% confidence
85

#5 mow.cli

Package cli provides a framework to build command line applications in Go with most of the burden of arguments parsing and validation placed on the framework instead of the user.

Go CLI Frameworks 884 stars 895 imported-by 100% confidence
74