> ## Documentation Index
> Fetch the complete documentation index at: https://docs.buttons.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# buttons batteries set

> CLI reference for buttons batteries set

## buttons batteries set

Set a battery

```
buttons batteries set KEY VALUE [flags]
```

### Options

```
      --global   target the global batteries file (~/.buttons/batteries.json)
  -h, --help     help for set
      --local    target the project-local batteries file (.buttons/batteries.json)
```

### Options inherited from parent commands

```
      --json       output in JSON format
      --no-input   disable all interactive prompts
      --summary    show a read-only plan/snapshot instead of mutating
```

### SEE ALSO

* [buttons batteries](buttons_batteries.md)	 - Manage environment variables and secrets
