buttons create
Create a new buttonSynopsis
Create a new button. By default, ‘buttons create<name>’ scaffolds a shell button with a
placeholder main.sh the agent can edit, then press. Use —runtime to
scaffold a Bash, Python, or Node button instead.
New buttons start with package version 1 in button.json. Registry publish uses
that version, then auto-bumps to the next number if that immutable version
already exists.
Provide a shortcut flag to skip the placeholder: —code for a one-line
inline script, —file to copy an existing script, —url for an HTTP
endpoint, or —prompt for a standalone instruction.
Arguments are defined with —arg in name:type:required|optional format.
Supported types: string, int, bool, enum.
Enum args accept a 4th pipe-separated segment listing the allowed
values — the TUI press form renders them as a horizontal choice row,
and the CLI validates the supplied value is in the set:
Options
Options inherited from parent commands
SEE ALSO
- buttons - Deterministic workflow engine for agents