Go Command-line

Open-source Go projects categorized as Command-line

Top 23 Go Command-line Projects

  • GitHub repo cobra

    A Commander for modern Go CLI interactions

    Project mention: git clone doesn't see slash in url (https) | reddit.com/r/sysadmin | 2021-02-02

    go get github.com/spf13/cobra/cobra

  • GitHub repo micro-editor

    A modern and intuitive terminal-based text editor

    Project mention: I use the REAL text editor | reddit.com/r/linuxmemes | 2021-02-28

    I like micro

  • GitHub repo urfave/cli

    A simple, fast, and fun package for building command line apps in Go (by urfave)

    Project mention: Can you recommend open source projects with small codebase, but with high benefits for learning? | reddit.com/r/golang | 2021-02-22
  • GitHub repo ctop

    Top-like interface for container metrics

    Project mention: something similar to k9s but for Docker | reddit.com/r/docker | 2021-03-02

    I like ctop

  • GitHub repo termui

    Golang terminal dashboard

    Project mention: Building Rich Terminal Dashboards | news.ycombinator.com | 2021-02-15
  • GitHub repo sampler

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

    Project mention: Sampler: Visualization for any shell command | reddit.com/r/linux | 2021-02-21
  • GitHub repo gocui

    Minimalist Go package aimed at creating Console User Interfaces.

  • GitHub repo usql

    Universal command-line interface for SQL databases

  • GitHub repo Rich Interactive Widgets for Terminal UIs

    Rich interactive widgets for your terminal UI, written in Go

  • GitHub repo color

    Color package for Go (golang)

  • GitHub repo promptui

    Interactive prompt for command-line applications

    Project mention: Tf - A CLI to generate terraform configuration with an interactive prompt | reddit.com/r/commandline | 2021-01-22

    I got into cli applications lately and came across cobra. It was highly intuitive and very much easy to use so I couldn't get enough of it and wanted to create something to make it useful along with promptui.

  • GitHub repo termbox-go

    Pure Go termbox implementation

  • GitHub repo go-prompt

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

    Project mention: Bit (1.0) – a modern Git CLI in Go | news.ycombinator.com | 2021-02-26

    Bit uses cobra a little but for the autocomplete it uses https://github.com/c-bata/go-prompt

  • GitHub repo kafka-go

    Kafka library in Go

    Project mention: Go, Kafka, gRPC and MongoDB microservice with metrics and tracing 👋 | dev.to | 2021-02-28

    This article about tries to implement of clean architecture microservice using: 🚀 Kafka as messages broker gRPC Go implementation of gRPC MongoDB as database Jaeger open source, end-to-end distributed tracing Prometheus monitoring and alerting Grafana for to compose observability dashboards with everything from Prometheus

  • GitHub repo kingpin

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

  • GitHub repo arduino-cli

    Arduino command line tool

    Project mention: Which IDE to use? | reddit.com/r/arduino | 2021-02-03

    The the Arduino CLI might help - https://github.com/arduino/arduino-cli

  • 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 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 tcell

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

  • GitHub repo survey

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

    Project mention: Kure - CLI password manager | reddit.com/r/golang | 2021-02-25

    Thank you so much! The library is called Survey (which uses a package called terminal). It also allows you to use 'hjkl' like Vim.

  • GitHub repo Dnote

    A simple command line notebook for programmers

  • GitHub repo cointop

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

  • GitHub repo go-flags

    go command line option parser

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-03-02.


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

Project Stars
1 cobra 20,632
2 micro-editor 16,308
3 urfave/cli 15,386
4 ctop 11,120
5 termui 10,662
6 sampler 8,699
7 gocui 6,972
8 usql 6,102
9 Rich Interactive Widgets for Terminal UIs 5,182
10 color 4,024
11 promptui 3,972
12 termbox-go 3,969
13 go-prompt 3,769
14 kafka-go 3,234
15 kingpin 3,007
16 arduino-cli 2,762
17 The Platinum Searcher 2,678
18 doctl 2,652
19 tcell 2,649
20 survey 2,235
21 Dnote 2,014
22 cointop 2,007
23 go-flags 1,873