zitadel deployment rollback
Roll back to an earlier deployment.
Usage
npx @zitadel/cli@latest deployment rollback [<deployment_id>] [flags]Arguments
| Argument | Description |
|---|---|
<deployment_id> | The deployment to re-apply. Omit to undo the last deploy. |
Flags
| Flag | Description |
|---|---|
-f, --force | Roll back without the confirmation prompt. Required when non-interactive. |
-m, --message <value> | A short summary of why this rolls back. |
-e, --env <value> | Environment to run against, e.g. production. Defaults to ZITADEL_ENV, then the hosting platform's build (VERCEL_ENV, or Netlify's CONTEXT), then development. |
--env-file <value> | Read ZITADEL_* values from this file ahead of the process environment. A relative path is read from the current directory, not from --cwd. Cannot be combined with --env. |
It also takes the global flags.
Examples
npx @zitadel/cli@latest deployment rollback
npx @zitadel/cli@latest deployment rollback dep_01KX5N7C9D2E7F0N9WD3P2E4YM6
npx @zitadel/cli@latest deployment rollback --forceAPI
It calls Roll back to a deployment, POST /deployments/{deployment_id}/rollback, in the Deployments API.
Was this helpful?