Skip to content

Replace the dead env var replace action with delete - #213

Merged
joetannenbaum merged 1 commit into
mainfrom
fix-environment-variables-delete
Sep 3, 2026
Merged

Replace the dead env var replace action with delete#213
joetannenbaum merged 1 commit into
mainfrom
fix-environment-variables-delete

Conversation

@joetannenbaum

Copy link
Copy Markdown
Collaborator

environment:variables --action=replace called PUT /environments/{env}/variables, which the API removed. It was swapped for an atomic POST /variables/delete, and nothing in the CLI used it.

--action=delete now takes its place. --key accepts a comma-separated list, and interactively you pick from the environment's existing keys. Deleting goes through confirmDestructive(), so it needs --force when non-interactive.

Kept this on the existing --action option rather than adding a command, since a delete verb would have meant the first three-part command name in the CLI.

@joetannenbaum
joetannenbaum merged commit a0dde3b into main Sep 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant