Skip to main content

buttons batteries

Manage environment variables and secrets

Synopsis

Batteries are key/value pairs injected into every button press as BUTTONS_BAT_<KEY>=<value>. Use them to store API tokens and other secrets outside your button scripts. Scopes:
List / get read from both scopes (local overrides on collision). Set / rm target local when inside a project, global otherwise; pass —global or —local to pick explicitly. Keys must match [A-Z][A-Z0-9_]* (uppercase, digits, underscore). Examples:

Options

Options inherited from parent commands

SEE ALSO