diff --git a/.changeset/drop-dead-environment-flag.md b/.changeset/drop-dead-environment-flag.md new file mode 100644 index 000000000..cae219962 --- /dev/null +++ b/.changeset/drop-dead-environment-flag.md @@ -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..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. diff --git a/apps/cli/README.md b/apps/cli/README.md index bd6433fb3..905a3a6ff 100644 --- a/apps/cli/README.md +++ b/apps/cli/README.md @@ -179,21 +179,18 @@ Validate and upload repo config to the platform. ``` USAGE $ zitadel apply [--json] [-c ] [-s ] [-n] - [--dry-run] [--verbose] [--debug] [--telemetry] [-e - development|preview|production] + [--dry-run] [--verbose] [--debug] [--telemetry] FLAGS - -c, --cwd= Project directory to operate on. - -e, --environment=