Automated ranking

Best Go CLI Frameworks

Compare go cli frameworks by maintenance, adoption, security, release activity, and Go ecosystem usage. Top packages in this group include Cobra, urfave/cli, dasel.

Best overall

Cobra

Highest combined package health score.

95
Best maintained

urfave/cli

Strongest maintenance signal in this category.

95
Most adopted

Cobra

Highest adoption signal from stars, forks, and imported-by data.

100

Ranked Packages

25 packages

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

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

Go CLI Frameworks 0 stars 3.1K imported-by 80% confidence
77

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

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

#7 orpheus

Package orpheus provides an ultra-fast, professional-grade CLI framework built on flash-flags with comprehensive security validation and Red Team tested security controls.

Go CLI Frameworks 0 stars 0 imported-by 80% confidence
63

#8 mani

CLI tool to help you manage multiple repositories.

Go CLI Frameworks 0 stars 0 imported-by 80% confidence
62

#9 gommon/color

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

Go CLI Frameworks 0 stars 1 imported-by 80% confidence
61

#10 hiboot cli

Package hiboot is a web/cli app application framework

Go CLI Frameworks 0 stars 0 imported-by 80% confidence
59

#11 boring

Simple command-line SSH tunnel manager.

Go CLI Frameworks 0 stars 0 imported-by 60% confidence
58

#12 argparse

Package argparse provides users with more flexible and configurable option for command line arguments parsing.

Go CLI Frameworks 0 stars 788 imported-by 80% confidence
55

#13 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 0 stars 895 imported-by 80% confidence
55

#14 ofxgo

Query OFX servers and/or parse the responses (with example command-line client).

Go CLI Frameworks 0 stars 22 imported-by 45% confidence
55

#15 v2

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

Go CLI Frameworks 0 stars 965 imported-by 75% confidence
53

#16 cli

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

Go CLI Frameworks 0 stars 457 imported-by 75% confidence
52

#17 routex

YAML-driven multi-agent AI runtime for Go with Erlang-style supervision, MCP tool server support, and a CLI.

Go CLI Frameworks 0 stars 0 imported-by 45% confidence
50

#18 ticker

Terminal stock watcher and stock position tracker.

Go CLI Frameworks 0 stars 0 imported-by 45% confidence
48

#19 fzf

:cherry_blossom: A command-line fuzzy finder

Go CLI Frameworks 0 stars 0 imported-by 45% confidence
44

#20 fwdctl

A simple and intuitive CLI to manage IPTables forwards in your Linux server.

Go CLI Frameworks 0 stars 0 imported-by 25% confidence
44

#21 go-flags

Package flags provides an extensive command line option parser.

Go CLI Frameworks 0 stars 0 imported-by 25% confidence
44

#23 go-here

Go client library around the HERE location based APIs.

Go CLI Frameworks 0 stars 0 imported-by 80% confidence
38

#24 go-palette

Go library that provides elegant and convenient style definitions using ANSI colors. Fully compatible & wraps the [fmt library](https://pkg.go.dev/fmt) for nice terminal layouts.

Go CLI Frameworks 0 stars 0 imported-by 60% confidence
36

#25 kingpin

Package kingpin provides command line interfaces like this:

Go CLI Frameworks 0 stars 0 imported-by 60% confidence
35

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
Cobra 95 88 100 92 195.9K
urfave/cli 94 95 100 92 23.1K
dasel 85 95 91 70 0
kong 77 83 66 92 3.1K
go-arg 70 63 62 92 1.7K
flash-flags 67 90 17 92 3
orpheus 63 90 7 92 0
mani 62 90 7 92 0
gommon/color 61 83 12 92 1
hiboot cli 59 75 7 92 0
boring 58 90 7 70 0
argparse 55 15 56 92 788
mow.cli 55 15 57 92 895
ofxgo 55 48 30 92 22
v2 53 15 51 92 965
cli 52 15 45 92 457
routex 50 48 7 92 0
ticker 48 48 7 92 0
fzf 44 48 7 70 0
fwdctl 44 48 7 70 0
go-flags 44 48 7 70 0
coinpaprika-api-go-client 39 15 7 92 0
go-here 38 15 7 92 0
go-palette 36 15 7 70 0
kingpin 35 15 7 70 0

Related Comparisons

Go CLI Frameworks

kong vs go-arg

Compare health, maintenance, adoption, security, and release signals.

77

mow.cli vs argparse

Compare health, maintenance, adoption, security, and release signals.

55

go-arg vs mow.cli

Compare health, maintenance, adoption, security, and release signals.

70

go-arg vs argparse

Compare health, maintenance, adoption, security, and release signals.

70