# gum

> A tool for glamorous shell scripts

- Type: agent or tool
- Field: System & Self-hosted
- Repository: https://github.com/charmbracelet/gum
- GitHub stars: 24671
- Licence: MIT
- Language: Go
- Last push: 2026-11-20
- Page: https://imutechz.in/agents/gum

## What it is
Gum is a command-line tool that brings interactive, styled UI components to shell scripts without requiring Go code. It provides ready-to-use utilities like prompts, selectors, spinners, and formatters that integrate directly into bash or zsh scripts and aliases. Each command outputs to stdout for capture in variables or files, and all styling is configurable via flags or environment variables.

## Features
- choose: select from a list of options
- confirm: yes/no confirmation prompts
- input: single-line text input with placeholder
- write: multi-line text entry
- filter: fuzzy filter a list of values
- style: apply colors, borders, and spacing to text

## Best for
- adding interactive prompts to shell scripts
- building git commit helpers with conventional commits
- creating user-friendly CLI wizards
- formatting and styling terminal output

## Pros
- no Go knowledge required to use
- highly configurable via flags or environment variables
- cross-platform: Linux, macOS, Windows, BSDs
- single binary with no runtime dependencies

## Cons
- must be installed separately on each machine
- command output goes to stdout and must be captured explicitly
- some commands like input print to stdout which is not useful without redirection

## Install
```
brew install gum
```

## Usage
```
gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert"
```

Tags: shell-scripting, cli-tools, interactive-prompts, terminal-ui, bash, zsh, developer-tools, charmbracelet
