SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Standard CLI Open-Source 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: Best practices for distributing and updating a Go CLI on Linux? | /r/golang | 2023-05-18Can you use a framework like urfavecli https://github.com/urfave/cli? This will auto-update every time it detects a new version from your CLI's GitHub repository
Project mention: Xonsh: Python-powered, cross-platform, Unix-gazing shell | news.ycombinator.com | 2024-02-14
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)
My understanding is that you can use pflag as a drop in replacement of the standard lib's flag (import flag "github.com/spf13/pflag"). So it can be used as a standalone lib I suppose.
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?
There isn't enough compelling reasons to use your library as mentioned by n4jm4 there is already docopt. https://github.com/docopt/docopt.go or the standard flag library.
Standard CLI related posts
-
Build your own curl in Golang
-
Scripts should be written using the project main language
-
Show HN: Box CLI Maker
-
Elvish, expressive programming language and a versatile interactive shell
-
Command Line Interface Guidelines
-
Carapace-bin: multi-shell multi-command argument completer
-
How to read Cobra command line flag
-
A note from our sponsor - SaaSHub
www.saashub.com | 2 May 2024
Index
What are some of the best open-source Standard CLI projects? This list will help you:
Project | Stars | |
---|---|---|
1 | cobra | 35,985 |
2 | urfave/cli | 21,625 |
3 | elvish | 5,343 |
4 | kingpin | 3,446 |
5 | The Platinum Searcher | 2,794 |
6 | Dnote | 2,695 |
7 | go-flags | 2,509 |
8 | pflag | 2,312 |
9 | readline | 2,030 |
10 | kong | 1,823 |
11 | mitchellh/cli | 1,722 |
12 | docopt.go | 1,424 |
13 | liner | 1,032 |
14 | cli-init | 925 |
15 | complete | 915 |
16 | mow.cli | 871 |
17 | flaggy | 846 |
18 | cli | 719 |
19 | carapace-bin | 683 |
20 | argparse | 589 |
21 | box-cli-maker | 451 |
22 | carapace | 237 |
23 | 1build | 221 |
Sponsored