gum Verified for current stable LTS

Gum Command: Confirm Interactive Prompt

Use for confirm interactive prompt with Gum. Exact CLI syntax to confirm interactive prompt using Gum.

When to use this: Use for confirm interactive prompt with Gum.

Command Syntax

gum confirm "<Continue?>" --default=false --affirmative "<Yes>" --negative "<No>" <&& echo "Yes selected" || echo "No selected">

Command Breakdown

--default=false
Command Option
Tool-specific option used by this command invocation.
--affirmative
Command Option
Tool-specific option used by this command invocation.
--negative
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to confirm interactive prompt using Gum.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Gum directory