Go CommandLine

Open-source Go projects categorized as CommandLine

Top 14 Go CommandLine Projects

  • cobra

    A Commander for modern Go CLI interactions

    Project mention: CLI application libraries, updated versions (readline and spf13/cobra console). | /r/golang | 2023-06-03

    A cobra command console: https://github.com/reeflective/console: this library targets a much more restrained set of application developers, which are interested in closed-loop CLI applications with specific sets of commands, and generally deprived of any specific syntax outside the one-liner command model. It relies on the `readline` library above, which is tightly integrated so as to provide a console application much more powerful than most, with complete support for the [spf13/cobra](https://github.com/spf13/cobra) library.

  • ctop

    Top-like interface for container metrics

    Project mention: Ctop – Top-like interface for container metrics | news.ycombinator.com | 2023-04-13
  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • gotests

    Automatically generate Go test boilerplate from your source code.

    Project mention: Table-driven tests are overrated. | /r/golang | 2023-01-17

    I believe vscode does it using gotests (https://github.com/cweill/gotests), so people can probably use it outside of vscode too.

  • hdfs

    A native go client for HDFS

  • tsukae

    🐚📊 Show off your most used shell commands

  • nice

    Highly customizable and idiomatic Go CLI app framework 👌

  • joincap

    Merge multiple pcap files together, gracefully.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • flag

    Flag is a simple but powerful command line option parsing library for Go support infinite level subcommand

  • cmdr

    POSIX-compliant command-line UI (CLI) parser and Hierarchical-configuration operations

  • calories

    Calories Tracker for the Commandline

  • barkfetch

    Alternative to neofetch, written in go

    Project mention: barkfetch - Alternative to neofetch, written in Go | /r/linuxmasterrace | 2022-12-07

    Barkfetch is meant to be fast and suckless, which Go can provide. Now it's in alpha, but it will release one day! https://github.com/xbt573/barkfetch

  • warg

    Declarative and Intuitive Command Line Apps with Go

    Project mention: An Efficient Struct Configuration Pattern For Golang | /r/golang | 2023-05-04

    Funcopts aren't always appropriate, but boy do they make things more readable sometimes. I use them pervasively in warg to allow declarative nested CLI commands

  • flags

    Generate cobra command trees from structs. Go-flags compliant tags. Advanced related CLI functionality, for free. (by reeflective)

    Project mention: Show HN: New set of Go libraries for CLI Development | news.ycombinator.com | 2023-01-11

    Hello everyone,

    I've just released three different libraries aimed at either enhancing or facilitating CLI application development.

    Flags (https://github.com/reeflective/flags)

  • exitplan

    Golang Exit Callback for SIGINT & SIGTERM

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-06-03.

Go CommandLine related posts


What are some of the best open-source CommandLine projects in Go? This list will help you:

Project Stars
1 cobra 32,030
2 ctop 14,325
3 gotests 4,580
4 hdfs 1,285
5 tsukae 431
6 nice 205
7 joincap 183
8 flag 123
9 cmdr 122
10 calories 88
11 barkfetch 11
12 warg 10
13 flags 5
14 exitplan 1
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives