Quick start
This walkthrough uses the repository's example intent, discovered components, and packaged composition sources to compile a plan and preview execution.
1. Build the CLI
make build
The commands below assume you are running them from the repository root and using the freshly built ./gluon binary.
2. Inspect the shipped compositions
./gluon compositions --intent examples/intent.yaml
The example package currently exports charts, helm, helmCommon, and terraform.
3. Lock the resolved composition sources
./gluon compositions lock --intent examples/intent.yaml
This writes examples/.gluon/compositions.lock.yaml so future plans can reuse the same resolved source digests.
4. Validate the example intent and discovery tree
./gluon validate \
--intent examples/intent.yaml
This loads examples/intent.yaml, scans the discovery roots declared there, and validates each component against its matching composition schema.
5. Inspect the merged component model
./gluon component web-app \
--intent examples/intent.yaml \
--long
Use this view when you want to verify labels, overrides, subscriptions, inputs, and dependency edges before you render the final plan.
6. Compile a deterministic plan
./gluon plan \
--intent examples/intent.yaml \
--output /tmp/gluon-plan.json \
--view dag
The generated file is the execution boundary: a fully expanded DAG with explicit jobs, steps, and dependencies.
7. Preview execution
./gluon run --plan /tmp/gluon-plan.json
run defaults to dry-run mode, which prints the execution order, working directories, runner choice, and resolved steps without mutating state.
8. Execute the plan
./gluon run \
--plan /tmp/gluon-plan.json \
--execute \
--runner local
Swap local for docker when you want containerized execution, or use --gha when your plan includes GitHub Actions use: steps.
What happened
compositions lockresolved the declared composition sources and wrote a reproducible lock file beside the intent.validateloaded the intent, discovered component manifests, and enforced schema constraints.componentshowed the merged component view that feeds the compiler.planexpanded environment and component subscriptions into concrete jobs and dependency edges.runpreviewed or executed the immutable plan artifact.
Next steps
- Read execution model to understand dry-run, retries, phases, and state files.
- Explore GitHub Actions and Docker runtime examples.