Interactive Shell Scripts With gum

Add selection menus, inputs, spinners and styled text to scripts.

macOSautomationTerminalscriptingLow risk
Run gum choose "Option A" "Option B" to show an interactive selection menu.

01Command

Command
$ gum choose "Option A" "Option B"

02What it does

gum provides small commands for common script UI: choose, confirm, input, filter, spin and style. Because they are ordinary commands, you can drop them into any shell script to make it friendlier without learning a TUI framework.

03Risk

RiskLow risk
CompatibilitymacOS with Homebrew installed
!Warning: Interactive prompts block until answered, so guard them behind a TTY check before running in CI.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Homebrew formula: gum
    Homebrew · vendor-doc · 2026-09-20
    Evidence: Tool for glamorous shell scripts. Packages gum, a tool for glamorous shell scripts with prompts and spinners.

Last verified: 2026-09-22 · Category: Developer

06Related solutions