Files
coder/cli/testdata/coder_secret_--help.golden
T
Zach 85984ff142 feat: add enable/disable support for user secrets (#27537)
Users can now disable a secret to stop it from being injected into
workspaces without deleting it, and re-enable it later. Disabled secrets
stay visible and editable everywhere they already appear.

An enabled secret must have at least one injection target; a secret with
no target can be stored only while disabled. Existing target-less secrets
are migrated to disabled to preserve current behavior.

Support spans the REST API, SDK, CLI, dashboard, and audit log.
2026-07-28 09:58:33 -06:00

42 lines
945 B
Plaintext

coder v0.0.0-devel
USAGE:
coder secret
Manage secrets
Aliases: secrets
- Create a secret:
$ printf %s "$MYCLI_API_KEY" | coder secret create api-key --description
"API key for workspace tools" --env API_KEY --file "~/.api-key"
- Update a secret:
$ echo -n "$NEW_SECRET_VALUE" | coder secret update api-key --description
"Rotated API key" --env API_KEY --file "~/.api-key"
- List your secrets:
$ coder secret list
- Show a specific secret:
$ coder secret list api-key
- Delete a secret:
$ coder secret delete api-key
SUBCOMMANDS:
create Create a secret
delete Delete a secret
disable Disable a secret without removing it
enable Enable a secret so it is injected into workspaces
list List secrets, or show one by name
update Update a secret
———
Run `coder --help` for a list of global options.