Interactive Shell Scripts With gum
Add selection menus, inputs, spinners and styled text to scripts.
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
!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: gumEvidence: 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
Change where screenshots are saved on Mac
Point macOS screen captures at any folder you choose instead of the desktop.
Download a file from a URL on Mac with curl
Grab any file from the web straight into the current folder — no browser needed.
Find files larger than 500 MB on Mac
List the biggest files in your home folder that are eating disk space.