Generator CLI reference
The generator entry point lives in src/AgentContainers.Generator and is typically invoked with:
dotnet run --project src/AgentContainers.Generator --configuration Release -- <command>
Commands
| Command | Purpose | Output |
|---|---|---|
generate |
Validate manifests, load schemas, emit Dockerfiles, compose stacks, and catalog/report artifacts | Writes to generated/ |
validate |
Load manifests and run catalog validation rules | Exit code only |
list-matrix |
Print the compatibility matrix in text form | Console table |
list-matrix --json |
Emit machine-readable matrix and valid combinations | JSON |
build-matrix |
Emit the publishing matrix for GitHub Actions | JSON |
emit-e2e-plan |
Emit the manifest-driven e2e plan consumed by the test runners | JSON |
Typical usage
dotnet run --project src/AgentContainers.Generator --configuration Release -- validate
dotnet run --project src/AgentContainers.Generator --configuration Release -- generate
dotnet run --project src/AgentContainers.Generator --configuration Release -- list-matrix
dotnet run --project src/AgentContainers.Generator --configuration Release -- build-matrix
dotnet run --project src/AgentContainers.Generator --configuration Release -- emit-e2e-plan
Build and publish flow
validateconfirms catalog integrity.generaterefreshes checked-in artifacts.build-matrixdrives the publish workflow matrix.emit-e2e-plandrives the e2e scripts and workflow.
Related APIs
The main conceptual types behind the CLI are documented in the API reference:
AgentContainers.Core.Loading.ManifestLoaderAgentContainers.Core.Validation.CatalogValidatorAgentContainers.Core.Matrix.MatrixBuilderAgentContainers.Core.Hashing.ContentHasher