BASE

Gum

Gum

Developer CLI · Free

Interactive CLI components for shell scripts: add selection, input, and confirmation without writing your own terminal UI.

Also known as: charmbracelet/gum; glamorous-shell; gum-tool

Resource illustration: Gum

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Add interactive selection to a shell script
  • Connect Gum prompts to branching in an existing script

Example workflow

A possible workflow; this is not a report of hands-on testing.

Add interactive selection to a shell script.

Before you start

  • Project files or environment.
  • A shell and supported platform.

Steps

  1. Define the input or parameter choices for the user.
  2. Connect Gum prompts to branching in an existing script.
  3. Save the working command or script and the result criteria.

Check your result

  • The command correctly handles paths, Unicode, and invalid inputs.
  • Repeat runs behave predictably; credentials do not appear in the output.

Choosing Gum

Add interactive selection to a shell script

Choose this when

  • Add interactive selection to a shell script
  • Connect Gum prompts to branching in an existing script

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • Gum provides components; the shell script defines how answers are saved and how the workflow branches.

Frequently asked questions

What can you use for free in Gum?

Code and local use under MIT.

What additional costs might arise with Gum?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Gum?

MIT for the code; dependencies have separate licenses.

How do you get started with Gum?

Define the input or parameter choices for the user. Connect Gum prompts to branching in an existing script. Save the working command or script and the result criteria.

How do you use Gum selection and confirmation in a shell script?

The result of input/choose/filter is written to stdout: the script saves it in a variable or file. confirm returns exit code 0 for acceptance and 1 for refusal. filter accepts stdin and supports multiple selected lines; parameters are set through flags and environment variables.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Gum
  • CLI
  • Development

Sources

Other resources