Gum

Gum

Go CLI utility by Charmbracelet that adds interactive prompts, spinners, fuzzy filters, and tables to standard Bash and Zsh scripts.

★ 24.8K

Add polished interactive prompts and spinners to shell scripts without writing Go or Python

Writing interactive deployment or onboarding scripts in pure Bash usually means wrestling with ugly `read -p` prompts, fragile `select` loops, and zero visual feedback while a long command runs. Gum exposes Charmbracelet’s Bubbles and Lip Gloss TUI components as standalone CLI subcommands you can call from any shell script or `justfile`. With 24.8K GitHub stars and 770 forks under the MIT license, it turns a 30-line `.sh` file into a polished interactive CLI tool.

Subcommands that upgrade any shell script

  • Interactive inputs (`gum choose`, `gum filter`, `gum input`, `gum write`, `gum confirm`) capture single or multi-select choices and pipe the chosen string straight to stdout.
  • Progress spinners (`gum spin –title “Deploying…” — command`) hide noisy command output behind an animated spinner unless the command exits with an error.
  • Rich formatting helpers (`gum style`, `gum table`, `gum format`) draw bordered boxes, interactive CSV tables, and syntax-highlighted Markdown summaries in one line.
  • Environment variable overrides (`GUM_CHOOSE_CURSOR_FOREGROUND`) let you theme every prompt across a company CLI toolkit without repeating flags.

Scripting dependency note

Every developer or CI runner executing your script needs the `gum` binary installed, so include a quick `command -v gum` check at the top of shared team scripts. Install Gum via Homebrew or apt today and try building an interactive `git commit` helper in five lines of Bash.

Ready to try Gum?

Experience the full capabilities on their official website.

Visit Official Website