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.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
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.
Project mention: Carapace: A multi-shell completion library and binary | news.ycombinator.com | 2024-04-22
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 | 25 Apr 2024
Index
What are some of the best open-source Standard CLI projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | cobra | 35,985 |
2 | urfave/cli | 21,595 |
3 | elvish | 5,324 |
4 | kingpin | 3,441 |
5 | The Platinum Searcher | 2,794 |
6 | Dnote | 2,685 |
7 | go-flags | 2,509 |
8 | pflag | 2,307 |
9 | readline | 2,030 |
10 | kong | 1,823 |
11 | mitchellh/cli | 1,721 |
12 | docopt.go | 1,424 |
13 | liner | 1,032 |
14 | cli-init | 925 |
15 | complete | 912 |
16 | mow.cli | 870 |
17 | flaggy | 846 |
18 | cli | 719 |
19 | carapace-bin | 619 |
20 | argparse | 589 |
21 | box-cli-maker | 450 |
22 | 1build | 221 |
23 | climax | 213 |
Sponsored