github.com/alecthomas/kong

kong

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

64

Decision Signals

Health score 64/100, confidence 45/100.

Review
Maintenance 48
Adoption 66
Security 92
Maturity 45
Developer DX 83
Confidence 45

Install

go get github.com/alecthomas/kong

Package Data

updated May 28, 2026
Latest versionUnknown
Imported by3.1K packages
Stars0
Forks0
Last activityUnknown
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{ ... }

Maintained Alternatives

lower maintenance score

#1 fzf

:cherry_blossom: A command-line fuzzy finder

Go CLI Frameworks 80.6K stars 0 imported-by 100% confidence
94

#2 urfave/cli

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

Go CLI Frameworks 24.1K stars 0 imported-by 80% confidence
91

#3 Cobra

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

Go CLI Frameworks 44.0K stars 0 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 gommon/color

Formats and parses numeric byte values (10K, 2M, 3G, etc.).

Go CLI Frameworks 586 stars 1 imported-by 100% confidence
84

#6 hiboot cli

Package hiboot is a web/cli app application framework

Go CLI Frameworks 179 stars 0 imported-by 100% confidence
83

Similar Packages

Go CLI Frameworks

#1 fzf

:cherry_blossom: A command-line fuzzy finder

Go CLI Frameworks 80.6K stars 0 imported-by 100% confidence
94

#2 urfave/cli

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

Go CLI Frameworks 24.1K stars 0 imported-by 80% confidence
91

#3 Cobra

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

Go CLI Frameworks 44.0K stars 0 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 gommon/color

Formats and parses numeric byte values (10K, 2M, 3G, etc.).

Go CLI Frameworks 586 stars 1 imported-by 100% confidence
84