Skip to main content

gluon plan

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

Usage

gluon plan \
--intent intent.yaml \
--output plan.json

When the intent declares compositions.sources, plan resolves those sources automatically and writes <intent-dir>/.gluon/compositions.lock.yaml.

Common examples

Generate a JSON plan:

gluon plan -i examples/intent.yaml -o plan.json

Generate YAML instead:

gluon plan -i examples/intent.yaml -o plan.yaml -f yaml

Filter to one environment:

gluon plan -i examples/intent.yaml --env staging

Preview the dependency graph while compiling:

gluon plan -i examples/intent.yaml --view dag

Focus on changed components:

gluon plan -i examples/intent.yaml --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.

Use --config-dir only when you need to load legacy folder-shaped compositions instead of intent-declared packages.