-
Notifications
You must be signed in to change notification settings - Fork 1
fix: give --environment one meaning across the CLI #1275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+496
−674
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
7c1bba1
feat(cli): manage per-environment variables and secrets
mridang 446f6cf
fix(cli): address review on the variables commands
mridang 1bcae38
fix(cli): restore SKILLS.md indentation and show the resolved server
mridang 26a263f
refactor(cli): rename variables remove to delete
mridang a445d53
refactor(cli): simplify the server-resolution comment on variables
mridang f86c126
refactor(cli): align the variables commands with existing CLI patterns
mridang 1e8ea10
refactor(cli): drop the casts from the variables helpers
mridang 5ed3efd
fix(cli): escape control characters in rendered variable values
mridang 7e368ef
refactor(cli): inline single-use helpers and drop mutation
mridang 45eb9f1
fix(cli): keep an empty prompt submission an empty string
mridang c5a8c48
fix(cli): keep the retry hint faithful and name telemetry per the plan
mridang 01b8e20
Merge branch 'main' into claude/heuristic-kapitsa-51ce4e
mridang 499ae75
Merge remote-tracking branch 'origin/main' into claude/heuristic-kapi…
mridang 10be9e1
Merge remote-tracking branch 'origin/main' into claude/heuristic-kapi…
mridang e3b9d9e
feat(cli): name the owner of every variables command explicitly
mridang f2ccf4f
Merge remote-tracking branch 'origin/main' into claude/heuristic-kapi…
mridang 970e8cb
feat(cli): store numbers and booleans with variables set --type
mridang 65596d6
refactor(cli): rename variables set --type to --as
mridang e67c1f2
fix(cli): follow the dry-run contract and guard the variables endpoints
mridang f92d964
refactor(cli): render variables output the way the resource commands do
mridang 6b0ba0f
refactor(cli): drop the dead --environment flag from plan, apply and …
mridang cd86ee4
test(cli): pin that plan, apply and resource commands refuse --enviro…
mridang 540d7ca
Merge branch 'main' of github.com:zitadel/nextgen into refactor/cli-e…
mridang 1ae708b
Merge branch 'main' into refactor/cli-environment-flag
mridang 7a258e3
Merge branch 'main' into refactor/cli-environment-flag
mridang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@zitadel/cli": minor | ||
| --- | ||
|
|
||
| **Breaking:** remove `--environment` (`-e`) from `plan`, `apply` and the resource commands (`users`, `teams`, `sessions`, `events`, `grants`, `idps`, `projects`, `schemas`, `environments`, `releases`, `flow-definitions`, `branding`). It only accepted `development`, `preview` or `production`, which are not the platform's environment names, and it never reached the platform: its one effect was to read a server URL from `environments.<name>.server` in `zitadel.json`, which nothing writes. Passing it now fails as an unknown flag; drop it from scripts. `--server`, `ZITADEL_API_BASE` and the top-level `server` in `zitadel.json` still choose the server. `--environment` now means one thing: a real environment on the platform, as the `variables` commands use it. | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.