Skip to main content

ciz plan

ciz plan compiles intent, component discovery, and compositions into an immutable execution DAG.

Usage

ciz plan \
--intent intent.yaml \
--config-dir assets/config/compositions \
--output plan.json

Common examples

Generate a JSON plan:

ciz plan -i examples/intent.yaml -c assets/config/compositions -o plan.json

Generate YAML instead:

ciz plan -i examples/intent.yaml -c assets/config/compositions -o plan.yaml -f yaml

Filter to one environment:

ciz plan -i examples/intent.yaml -c assets/config/compositions --env staging

Preview the dependency graph while compiling:

ciz plan -i examples/intent.yaml -c assets/config/compositions --view dag

Focus on changed components:

ciz plan -i examples/intent.yaml -c assets/config/compositions --changed --base main

Flags

FlagMeaning
--intent, -iIntent file path
--output, -oOutput plan path
--format, -fOutput format: json or yaml
--debugEnable debug logging during planning
--env, -eRestrict compilation to one environment
--view, -vRender a view such as dag, dependencies, or component=<name>
--changedEnable change-aware filtering
--baseBase git ref for change detection
--headHead git ref for change detection
--filesExplicit changed-file list
--uncommittedScope to uncommitted changes
--untrackedScope to untracked files

Output contract

The generated plan contains explicit jobs, dependency edges, step phases, labels, and runtime metadata. Read plan schema for the full structure.