cli · diff

git:20260612.08b7ab4 to git:20260813.87827b7

18 added, 23 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
applyTo: "apps/cli/**"
---
# CLI Review Instructions
- The CLI is an agent-facing product surface. Review changes against
- `apps/cli/SKILLS.md`, `apps/cli/README.md`, and the oclif command metadata.
+ The CLI is an agent-facing product surface. Canonical sources, in order:
+ [`apps/cli/AGENTS.md`](../../apps/cli/AGENTS.md) (scope pointers + telemetry
+ rules), [`apps/cli/SKILLS.md`](../../apps/cli/SKILLS.md) (the agent contract),
+ and the root [`AGENTS.md` — CLI Contract](../../AGENTS.md#cli-contract)
+ (JSON envelope). Review pointers on top of those:
- - Commands used by agents must support `--non-interactive --json` and return a
- parseable JSON envelope without stray stdout text.
- - For local JSON capture, prefer
- `corepack pnpm --silent run cli -- ... --json`; plain `pnpm run` prints its
- own script prelude before CLI stdout.
- - Keep `commands --json`, help output, README command docs, and `SKILLS.md` in
- sync with behavior and tests.
- - Keep customer local runtime commands as top-level `zitadel start|stop|status|logs|reset|doctor`; do not model
- them as root npm scripts or as the Go server command surface.
- - `--server local` must resolve through `.zitadel/local/runtime.json` only when
- the local runtime is healthy, otherwise return a stable
+ - The command surface is `apply`, `branding eject`, `claim`, `doctor`,
+ `eject`, `logs`, `plan`, `reset`, `schemas list`, `setup`, `start`,
+ `status`, `stop` — `setup` supports 8 frameworks. The claim lifecycle is
+ shipped ([ADR 046](../../docs/adrs/046-claim-lifecycle-v2.md)); do not
+ request its removal.
+ - Changes to command names, flags, envelope shape, server resolution,
+ scaffold posture ([ADR 042](../../docs/adrs/042-scaffolded-file-ownership-and-drift-detection.md)/
+ [043](../../docs/adrs/043-framework-version-floors.md)/
+ [044](../../docs/adrs/044-scaffold-embedding-posture-defaults.md)), or agent
+ guidance must update tests, `SKILLS.md`, and the generated README command
+ section together.
+ - `--server local` must resolve through `.zitadel/local/runtime.json` only
+ when the local runtime is healthy, otherwise return a stable
`E_LOCAL_SERVER_NOT_RUNNING` envelope.
- - Prefer structured `next_commands` and stable error codes over prose-only
- guidance.
- - Do not reintroduce the removed pre-claim / claim lifecycle unless a real
- server contract lands first.
- - Changes to command names, flags, envelope shape, server resolution, renderer
- direction, or agent guidance should update tests, `apps/cli/SKILLS.md`, and
- the generated README command section.
- - PR descriptions for CLI changes should call out user-visible command behavior,
- updated agent/docs surfaces, and the focused validation commands that were
- actually run.
- Mock behavior should be explicit and must not be presented as live platform
behavior.