Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 23 Go Standard CLI Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
The Platinum Searcher
A code search tool similar to ack and the_silver_searcher(ag). It supports multi platforms and multi encodings.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
flaggy
Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
We can use the flag with --date or -date, Go already does the automatic check. We can make our entire boilerplate with this approach, but let's make it a little easier and use the Cobra CLI package.
Project mention: climate "CLI Mate": a CLI library that autogenerates CLIs from structs / functions with support for nested subcommands, global / local flags, help generation from godocs, typo suggestions, shell completion and more | /r/golang | 2023-07-07Args could also have detailed help (like flags) -- usage line is already auto-generated from arg(s) name and type but that's about it. This is something Cobra doesn't do for whatever reason (but https://github.com/alecthomas/kingpin does and I like it)
Project mention: climate "CLI Mate": a CLI library that autogenerates CLIs from structs / functions with support for nested subcommands, global / local flags, help generation from godocs, typo suggestions, shell completion and more | /r/golang | 2023-07-07I’ve been using https://github.com/alecthomas/kong for exposing generated protobuf structs for CLI args. How does your library compare?
Go Standard CLI related posts
-
Build your own curl in Golang
-
Show HN: Box CLI Maker
-
Elvish, expressive programming language and a versatile interactive shell
-
Carapace-bin: multi-shell multi-command argument completer
-
How to read Cobra command line flag
-
Dockerizing Golang CLI Tool - A Step-by-Step Guide
-
Packaging Go for Arch Linux Tutorial
-
A note from our sponsor - InfluxDB
www.influxdata.com | 20 May 2024
Index
What are some of the best open-source Standard CLI projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | cobra | 36,237 |
2 | urfave/cli | 21,702 |
3 | elvish | 5,431 |
4 | kingpin | 3,450 |
5 | The Platinum Searcher | 2,795 |
6 | Dnote | 2,708 |
7 | go-flags | 2,511 |
8 | pflag | 2,321 |
9 | readline | 2,036 |
10 | kong | 1,840 |
11 | mitchellh/cli | 1,726 |
12 | docopt.go | 1,424 |
13 | liner | 1,033 |
14 | cli-init | 925 |
15 | complete | 919 |
16 | mow.cli | 873 |
17 | flaggy | 846 |
18 | cli | 721 |
19 | carapace-bin | 723 |
20 | argparse | 589 |
21 | box-cli-maker | 455 |
22 | carapace | 254 |
23 | 1build | 221 |
Sponsored