Zitadel NextGen 0.5.0
0.5.0 makes a deploy the one way a change reaches your users, and makes the CLI safer to hand to a coding agent. Install it with npx @zitadel/cli@latest. NextGen is still a preview: until 1.0.0, a minor release can include breaking changes, and this one has several. Update a self-hosted server first, then everything that calls it, as Upgrading from 0.4.0 below lists.
What's new
- A sign-in runs only what is deployed. What you publish applies once a release that pins it is deployed, and an origin with nothing deployed is refused. More
- The CLI asks first. Every command that deletes, revokes or rolls back asks, and needs
--forcewhen nobody can be asked. More - Deploy warns before it locks users out. It counts the users a config would leave unable to sign in, and says why the server rejected a release. More
zitadel upgrade. Move a project's@zitadel/*packages to the latest release, with its breaking changes shown on the way, and azitadel doctorgrouped by category. More- Sign-in, your way. A flow chooses whether the login switches between sign-in and sign-up, and
zitadel setupandzitadel auth-methodsay what sign-in will do. The switch, setup, auth-method - Users in the console. Move a user to another schema revision, check it first with
dry_run, and set every property of a schema in the forms. Revisions, forms - A steadier login.
<zitadel-login>checks fields before it submits and forgets a password between steps, and Nuxt apps installed with npm load the SDK again. Login, Nuxt - For self-hosting. The server logs every error it answers, and serves the OpenAPI document it was built from. Logs, OpenAPI
- A security fix. A project secret can no longer read a granted platform user's profile. More
Upgrading from 0.4.0
- Upgrade a self-hosted server first, then set every
@zitadel/*package to0.5.0, the CLI and@zitadel/testingincluded. From 0.5.0 on,zitadel upgradedoes this for you. - Breaking: publishing a flow, schema, identity provider, branding or policy no longer changes sign-in or
setUserPassworduntil a release that pins it is deployed, and an origin with nothing deployed answersrel.not_deployed. Runzitadel deployafter you add an origin, add a loopback origin you sign in from as a primary origin and deploy to it, and give the test kit exact URLs inappOrigins(more). - Breaking: a destructive command refused for want of
--forcefails withE_CONFIRMATION_REQUIREDinstead ofE_VALIDATION, still exit 3, and a non-interactivezitadel apicall that deletes, revokes or rolls back needs--force(#2568). - Breaking: a flow definition read back through the API leaves out
targeton a transition that only names apurpose. Upgrade@zitadel/api, or regenerate your client from the new spec, before you deploy a flow that uses the short form, and leave out atargetyou set to""(#2533). - Breaking:
targetsonPOST /deploymentsis"primary"or a list of preview URLs.["primary"], which earlier CLIs and test kits send, still deploys to every primary origin until 1.0.0, with aDeprecationheader. A--dry-run --jsonfromzitadel deployandzitadel deployment createprintsdata.targetsas"primary"(#2555). - Breaking:
expand=principalonGET /grants/{id}andPOST /grants/queryanswers403user.permission_deniedunless the caller can read the platform project, andPOST /grantson an unclaimed project answers403grant.project_unclaimed(#2679). - Breaking:
zitadel users update --dry-runcalls the server, so it needs a server and a credential, and a failure inside an array item is named by the item, such asattributes.phones.0.fax: match those names by prefix (#2821). @zitadel/api/runtime/pagingexports one class,Paging, in place ofpages(),nextToken()anditemsOf(): usenew Paging({ items, next }).walk(fetch),paging.next(page)andPaging.byField(field).items(page)(#2613).- A custom login template must render the password field's error (
f.name | fieldError: errors) to show a wrong password, which now shows on that field instead of in the form-level alert (#2681). - Update to take the security fixes in dependencies:
@zitadel/clirequiresundici7.30.1 or later, and@zitadel/cli,@zitadel/apiand@zitadel/configrequirezod4.6.6 or later (#2693).
Every change since 0.4.0 is in the release notes on GitHub.