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 May 31, 2026
Latest versionv1.15.0
Imported by3.1K packages
Stars0
Forks0
Last activity1 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 Cobra

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

Go CLI Frameworks 44.0K stars 195.9K imported-by 100% confidence
95

#2 urfave/cli

Simple, fast, and fun package for building command line apps in Go.

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

#3 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

#4 go-arg

Package arg parses command line arguments using the fields from a struct.

Go CLI Frameworks 0 stars 1.7K imported-by 80% confidence
70

#5 flash-flags

Package flashflags provides ultra-fast, zero-dependency, lock-free command-line flag parsing for Go.

Go CLI Frameworks 0 stars 3 imported-by 80% confidence
67