The CLI asks before it deletes, revokes or rolls back
Every zitadel command that deletes, revokes or rolls back something now asks you first. When nobody can be asked, as in a script or a coding agent's run, it needs --force.
- Without
--forceand with nobody to ask, the command fails withE_CONFIRMATION_REQUIRED(exit 3) and puts the question it would have asked indetails.question. An agent reads it, asks you, and only then runs the--forceretry innext_commands. zitadel apiasks before an operation that deletes, revokes or rolls back, and refuses it without--forcewhen non-interactive.zitadel doctor --fixasks before it makes a preview issuer origin primary. When non-interactive, it skips that repair with a warning unless you pass its new--force.zitadel setup --dev-portasks before it removes the app's previous origin. Without--forcein a non-interactive run, it keeps the old origin and warns.@zitadel/api's operation list marks these operations with adestructivefield and adestructiveOperationslist.
Breaking: a destructive command refused for want of --force now fails with E_CONFIRMATION_REQUIRED instead of E_VALIDATION; the exit code stays 3. A script that branches on the code must check for the new one, and a non-interactive zitadel api call that deletes, revokes or rolls back needs --force.
Pull request#2568