Dagger CLI runs generate functions and applies their changesets
Introduced 2026-02-05 · score 0.98
HOW TO USE IT
When repository code generation is implemented as Dagger generator functions, mark each function with the SDK’s generate annotation and have it return a Changeset. Run `dagger generate` from the workspace to run generators and review and apply their combined changeset.
dagger generateWHY THIS HELPS
Run repository code generation implemented as Dagger module functions and apply the resulting changesets.
REQUIREMENTS AND LIMITATIONS
- Version: v0.19.11
- Go annotation: `// +generate` (required): Marks a Go function as a generator; it must return a Changeset.
- TypeScript decorator: `@generate()` (required): Marks a TypeScript function as a generator; it must return a Changeset.
- Python decorator: `@generate` (required): Marks a Python function as a generator; it must return a `dagger.Changeset`.
- Marked functions must expose a Changeset.
FIRST-PARTY EVIDENCE
- https://github.com/dagger/dagger/releases/tag/v0.19.11
- https://docs.dagger.io/reference/sdks/python/
- https://github.com/dagger/dagger/blob/v0.19.11/CHANGELOG.md
- https://docs.dagger.io/reference/sdks/typescript/
Check the installed version and the source before using it. Entry JSON