# Gum

[BASE product page](<https://base.akulich.dev/en/library/gum/>) · [Resource](<https://github.com/charmbracelet/gum>)

ID: gum · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

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

## Type

Developer CLI

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/gum/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/gum/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/gum/#resource-access>)

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

## [Access and limitations](<https://base.akulich.dev/en/library/gum/#resource-access>)

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

## [Use cases](<https://base.akulich.dev/en/library/gum/#resource-tasks>)

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

## Category IDs

- software
- infrastructure

## Subcategory IDs

- software\.cli
- infrastructure\.developer

## Tags

- Gum
- CLI
- Development

## Also known as

- charmbracelet/gum
- glamorous\-shell
- gum\-tool

## [Selection purpose](<https://base.akulich.dev/en/library/gum/#resource-selection>)

Add interactive selection to a shell script

## [Choose this when](<https://base.akulich.dev/en/library/gum/#resource-selection>)

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

## [Limitations](<https://base.akulich.dev/en/library/gum/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/gum/#resource-faq>)

### 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\.

## Sources for the selection guide

- [https://github\.com/charmbracelet/gum](<https://github.com/charmbracelet/gum>)
- [https://raw\.githubusercontent\.com/charmbracelet/gum/HEAD/README\.md](<https://raw.githubusercontent.com/charmbracelet/gum/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/charmbracelet/gum/HEAD/LICENSE](<https://raw.githubusercontent.com/charmbracelet/gum/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/gum/#resource-scenario>)

Add interactive selection to a shell script\.

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

## 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\.

## [License](<https://base.akulich.dev/en/library/gum/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### 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](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/gum/#resource-sources>)

- [Official source](<https://github.com/charmbracelet/gum>)
- [Official source](<https://raw.githubusercontent.com/charmbracelet/gum/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/charmbracelet/gum/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
