Go Command-line

Open-source Go projects categorized as Command-line

Top 23 Go Command-line Projects

  • cobra

    A Commander for modern Go CLI interactions

    Project mention: github.com: s0rg/compflag | reddit.com/r/golang | 2022-11-05

    yes, the only reason - its imposible to pass arguments to completion program in that scenario. If its ok to you to use generated scripts, take a look at https://github.com/spf13/cobra it can generate them for wider range of shells.

  • micro-editor

    A modern and intuitive terminal-based text editor

    Project mention: Tutorial on Intro to Rust Programming | dev.to | 2022-11-25

    micro (terminal editor): https://micro-editor.github.io/

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • urfave/cli

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

    Project mention: Trying to Configure checkpoint for Fast syncing.Error in Command :-go run prysm/cmd/prysmctl/checkpointsync download --beacon-node-host=http://localhost:3500 | reddit.com/r/ethstaker | 2022-10-10

    ....\Softwares\go\src\prysm\cmd\prysmctl\checkpointsync\cmd.go:3:8: cannot find package "github.com/urfave/cli/v2" in any of:

  • bubbletea

    A powerful little TUI framework 🏗

    Project mention: Datamatikerstuderende - hobbyprojekter til CV | reddit.com/r/dkfinance | 2022-11-28
  • ctop

    Top-like interface for container metrics

    Project mention: Looking for a simple Docker dashboard | reddit.com/r/selfhosted | 2022-11-29

    However, something like ctop may be easier to use.

  • dolt

    Dolt – Git for Data

    Project mention: You've heard of big data, now get ready for cozy data | reddit.com/r/DataHoarder | 2022-11-18
  • termui

    Golang terminal dashboard

    Project mention: An idea for a virtual pet in my Linux terminal | reddit.com/r/SideProject | 2022-04-05

    Go: https://github.com/gizak/termui

  • Zigi

    Delete the most useless function ever: context switching.. Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.

  • sampler

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

    Project mention: CLI command execution TUI monitor | reddit.com/r/LinuxShell | 2022-10-08
  • gocui

    Minimalist Go package aimed at creating Console User Interfaces.

    Project mention: Show HN: 7guis TUI implemented in Go using tview | news.ycombinator.com | 2022-07-09
  • usql

    Universal command-line interface for SQL databases

    Project mention: Is there a CLI interface to browse SQL databases? | reddit.com/r/commandline | 2022-08-10

    take a look at: https://github.com/xo/usql

  • Rich Interactive Widgets for Terminal UIs

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

    Project mention: WhatsApp in the terminal | reddit.com/r/golang | 2022-11-28

    A tui client for WhatsApp. My first ever go project!!! As a very slow learner I am really proud of how far I could bullshit my way through it. I used tview and whatsmeow for this.

  • Shiori

    Simple bookmark manager built with Go

    Project mention: Show HN: Linkidex – Manage your bookmarks on any device | news.ycombinator.com | 2022-10-10

    https://github.com/go-shiori/shiori I haven't heard of this one before, thanks for the info.

    May I ask what made you decide to use Shiori instead of pocket or something else? It looks like Shiori is marketed as a "simple clone of pocket."

  • color

    Color package for Go (golang)

    Project mention: Cli colors disappear when piping into a text file | reddit.com/r/golang | 2022-10-14

    So i have a cli tool thats outputting some text to the cli stdout, i would like the output to be colored, so i used a library called color (github.com/fatih/color), basically the problem is when i output to stdout its fine but when i do something like ./tool | tee -a file.txt the colors disappear from terminal and also not in the output file, why is that and how do i prevent that ?

  • miller

    Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON

    Project mention: Is there a nice embedded json db, like PoloDB (Rust) for Golang | reddit.com/r/golang | 2022-11-05

    Miller can query JSON files as-is and do it from a command line for you. I'm not sure why you say you need an "embedded json db" for something that small; unless you want it that way just for the ability issue queries? Is mongo a requirement for this? Regardless, Miller gives you a query capability as well and can be used on JSON, XML, and CSV.

  • kafka-go

    Kafka library in Go

    Project mention: Is Kafka the Key? The Evolution of Highlight's Ingest | dev.to | 2022-11-29

    Scaling up our producers/consumers proved to be more cost-effective than adding more CPU/brokers to the Kafka cluster. To accomplish this, we used the segmentio/kafka-go client library which provides an excellent abstraction for interacting with the cluster and will handle data compression completely transparently.

  • lipgloss

    Style definitions for nice terminal layouts 👄

    Project mention: GUI brain tries to learn shell scripting | reddit.com/r/commandline | 2022-10-27

    Off the top of my head i am thinking of charmbracelet/lipgloss but I don't know if its the best suited to my use case.

  • promptui

    Interactive prompt for command-line applications

    Project mention: ...and now gh-i to search for issues interactively! | reddit.com/r/github | 2022-01-31

    The navigation is dealt with by the promptui framework, so in this respect the extension does not touch/re-defines it. This said, let's move the conversation on GitHub, I am sure we can find a way to make it work :)

  • lf

    Terminal file manager

    Project mention: Llama - Terminal File Manager | reddit.com/r/programming | 2022-11-22

    Is it because it's hard to embed the shell prompt into a file manager properly, so people prefer to use single pane file managers/file browsers (like this one, or lf, or ranger, or nnn, ) as shell functions - open, select a file, put it into the prompt?

  • elvish

    Elvish = Expressive Programming Language + Versatile Interactive Shell

    Project mention: Looking for programming languages created with Go | reddit.com/r/golang | 2022-11-06

    - https://github.com/elves/elvish

  • go-prompt

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

    Project mention: Is there a terminal based "dialog" library? | reddit.com/r/golang | 2022-02-03

    has some nice options : https://github.com/c-bata/go-prompt seems to have all you want (but may be a bit more than you wish for though.)

  • termbox-go

    Pure Go termbox implementation

  • tcell

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

    Project mention: Need a TUI with multiline text input or good interactive CLI-interface style support | reddit.com/r/golang | 2022-07-21

    There's quite a variety of tui libraries in Go with all kinds of different tradeoffs. Likely you won't find one that does just exactly what you want (paren matching support seems particularly unlikely out of the box, dunno if you'll find something you can plug in). tview and the underlying, lower-level tcell may be useful. I see termbox mentioned a lot here though that looks more like a toolbox for building such things than a solution itself.

  • arduino-cli

    Arduino command line tool

    Project mention: Arduino IDE 2.0 and CLI uploads? | reddit.com/r/arduino | 2022-11-09

    I think you're looking for the underlying arduino-cli tool, rather than calling against the IDE directly.

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

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 2022-11-29.

Go Command-line related posts

Index

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

Project Stars
1 cobra 29,666
2 micro-editor 20,682
3 urfave/cli 19,355
4 bubbletea 16,009
5 ctop 13,677
6 dolt 13,540
7 termui 12,228
8 sampler 10,994
9 gocui 8,666
10 usql 7,668
11 Rich Interactive Widgets for Terminal UIs 7,624
12 Shiori 6,742
13 color 5,842
14 miller 5,806
15 kafka-go 5,569
16 lipgloss 5,274
17 promptui 5,211
18 lf 5,164
19 elvish 4,897
20 go-prompt 4,708
21 termbox-go 4,439
22 tcell 3,709
23 arduino-cli 3,656
Build time-series-based applications quickly and at scale.
InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.
www.influxdata.com