Go Command-line

Open-source Go projects categorized as Command-line | Edit details

Top 23 Go Command-line Projects

  • GitHub repo cobra

    A Commander for modern Go CLI interactions

    Project mention: I made a command-line-interface for PyPI as a 14 year old | reddit.com/r/Python | 2021-10-15

    This also taught me that python is very slow. The code has a 1400 ms (1.4s) overhead for starting up and after that everything works extremely fast. I think that overhead is caused by python interpreting that huge shitty code and trying to make sense of that. I've recently thought about moving them to multiple files and then loading only the file necessary for the current command but I think I'll just rewrite all this in Go using Cobra

  • GitHub repo micro-editor

    A modern and intuitive terminal-based text editor

    Project mention: Vim Anti-Patterns That Cause Beginners To:Quit | news.ycombinator.com | 2021-10-07
  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo urfave/cli

    A simple, fast, and fun package for building command line apps in Go

    Project mention: Requesting guidance | reddit.com/r/golang | 2021-09-30

    - https://github.com/urfave/cli

  • GitHub repo ctop

    Top-like interface for container metrics

    Project mention: Why so many tops | reddit.com/r/linuxquestions | 2021-10-12

    ctop is fucking amazing for anyone who deals with docker and containers.

  • GitHub repo termui

    Golang terminal dashboard

    Project mention: Can someone explain what is happening here, ELI5? | reddit.com/r/golang | 2021-07-15
  • GitHub repo sampler

    Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.

    Project mention: Almost as good as Grafana - Bpytop is rad! | reddit.com/r/homelab | 2021-08-14

    Check out sampler too: https://github.com/sqshq/sampler

  • GitHub repo gocui

    Minimalist Go package aimed at creating Console User Interfaces.

    Project mention: Results of the official Go survey | reddit.com/r/golang | 2021-03-14

    I've been using the gocui library for building apps that are too small for a full blown server based solution, but still need to capture text input and menu selection.

  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • GitHub repo usql

    Universal command-line interface for SQL databases

    Project mention: usql v0.9.4 | reddit.com/r/golang | 2021-08-29
  • GitHub repo Rich Interactive Widgets for Terminal UIs

    Terminal UI library with rich, interactive widgets — written in Golang

    Project mention: Has anyone else used TView? Need basic help. | reddit.com/r/golang | 2021-09-02

    https://github.com/rivo/tview/wiki/Flex and https://github.com/rivo/tview/wiki/Grid look pretty solid for me.

  • GitHub repo color

    Color package for Go (golang)

    Project mention: Go mod tidy problem. | reddit.com/r/golang | 2021-09-29

    I am using github.com/fatih/color as an example because it is a very simple library to test this problem out with.

  • GitHub repo elvish

    Elvish = Expressive Programming Language + Versatile Interactive Shell

    Project mention: Googlespeak – How Google Limits Thought About Antitrust | news.ycombinator.com | 2021-08-25

    Ok, here's a few real example where I had only partial (but 100% correct) information had a hard time finding the right answer:

    1. There's a shell (program) which feature a built-in file manager inspider by ranger, I forgot its name: try to find it. Answer: [1]

    2. There's a particular gas that can (temporarily) kill a smartphone, but you forgot which. Find the article about this. Answer: [2]

    3. There's a blog post (well-known if you're into networking) that argues IPv6 was meant to replace MAC addresses. Answer: [3]

    [1]: https://elv.sh/

    [2]: https://www.ifixit.com/News/11986/iphones-are-allergic-to-he...

    [3]: https://apenwarr.ca/log/?m=201708#10

  • GitHub repo promptui

    Interactive prompt for command-line applications

    Project mention: Interactive CLI prompts in Go | dev.to | 2021-08-25

    View on GitHub

  • GitHub repo termbox-go

    Pure Go termbox implementation

    Project mention: Desktop applications discussion | reddit.com/r/golang | 2021-04-28
  • GitHub repo go-prompt

    Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.

    Project mention: Library for developing CLI application with run-time command parsing like a shell | reddit.com/r/golang | 2021-09-29

    Have you hade a look at https://github.com/c-bata/go-prompt ?

  • GitHub repo kafka-go

    Kafka library in Go

    Project mention: Hunting down a C memory leak in a Go program | news.ycombinator.com | 2021-10-15

    Segment learned quite some time ago that librdkafka-go has problems like these (and doesn’t support Contexts either), so they wrote a pure Go replacement instead. https://github.com/segmentio/kafka-go

  • GitHub repo pet

    Simple command-line snippet manager, written in Go.

    Project mention: Example for using `buildGoPackage` or `buildGoModule`? | reddit.com/r/NixOS | 2021-07-06

    environment.systemPackages = with pkgs; [ callPackage buildGoModule rec { pname = "pet"; version = "0.3.4"; src = fetchFromGitHub { owner = "knqyf263"; repo = "pet"; rev = "v${version}"; sha256 = "0m2fzpqxk7hrbxsgqplkg7h2p7gv6s1miymv3gvw0cz039skag0s"; }; vendorSha256 = "1879j77k96684wi554rkjxydrj8g3hpp0kvxz03sd8dmwr3lh83j"; runVend = true; meta = with lib; { description = "Simple command-line snippet manager, written in Go"; homepage = "https://github.com/knqyf263/pet"; license = licenses.mit; maintainers = with maintainers; [ kalbasit ]; platforms = platforms.linux ++ platforms.darwin; }; } {} ]; error: 'functionArgs' requires a function, at /nix/store/ki037hma7q4dqj73wd8hg27plp45my3r-nixpkgs-21.11pre299952.7918dc5148d/nixpkgs/lib/trivial.nix:337:42

  • GitHub repo kingpin

    CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser

    Project mention: What is the best way to handle flags? | reddit.com/r/commandline | 2021-08-02
  • GitHub repo arduino-cli

    Arduino command line tool

    Project mention: Is there any good alternatives for the Arduino IDE that works under pure Wayland environment?? | reddit.com/r/arduino | 2021-09-11

    The Arduino folks also make the Arduino-CLI if you like typing at the shell like me: https://github.com/arduino/arduino-cli

  • GitHub repo tcell

    Tcell is an alternate terminal package, similar in some ways to termbox, but better in others.

    Project mention: Open source projects I can contribute to? | reddit.com/r/golang | 2021-10-05

    Small-ish projects include joker, a playing card library, and cbind, a tcell keybinding library.

  • GitHub repo doctl

    The official command line interface for the DigitalOcean API.

    Project mention: Connect DigitalOcean Kubernetes to GitLab - Tutorial for Windows 10 Users | dev.to | 2021-01-21

    Download and install windows version from doctl

  • GitHub repo The Platinum Searcher

    A code search tool similar to ack and the_silver_searcher(ag). It supports multi platforms and multi encodings.

  • GitHub repo survey

    A golang library for building interactive and accessible prompts with full support for windows and posix terminals.

    Project mention: Console application with menus | reddit.com/r/golang | 2021-10-16

    If you want something a little more advanced, check out survey

  • GitHub repo cointop

    A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀

    Project mention: "cryptop" type text mode app but uses coingecko? | reddit.com/r/coingecko | 2021-08-13
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 2021-10-16.


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

Project Stars
1 cobra 23,466
2 micro-editor 17,845
3 urfave/cli 16,663
4 ctop 12,012
5 termui 11,291
6 sampler 9,116
7 gocui 7,454
8 usql 6,798
9 Rich Interactive Widgets for Terminal UIs 6,065
10 color 4,717
11 elvish 4,491
12 promptui 4,421
13 termbox-go 4,161
14 go-prompt 4,151
15 kafka-go 3,978
16 pet 3,216
17 kingpin 3,137
18 arduino-cli 3,079
19 tcell 3,030
20 doctl 2,830
21 The Platinum Searcher 2,723
22 survey 2,718
23 cointop 2,694
Find remote jobs at our new job board 99remotejobs.com. There are 34 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives