template
engine-dmo template: The template contract's tooling: the generated API and template tests. Every subcommand, argument and flag.
The template contract’s tooling: the generated API and template tests.
| Command | What it does |
|---|---|
engine-dmo template api | The complete template surface for a site of this project, including its own types and fields; --json for all of it |
engine-dmo template test | Render the pages tests/templates/*.test.yaml name, through the real pipeline against the database’s seed, and check each |
engine-dmo template api
The complete template surface for a site of this project, including its own types and fields; --json for all of it.
engine-dmo template api [flags] | Flag | Type | Default | Meaning |
|---|---|---|---|
--site | string | site key (default: the default site) |
--json prints the command’s own JSON document. Runs in a project. It reads the project without its secrets and needs no database.
engine-dmo template test
Render the pages tests/templates/*.test.yaml name, through the real pipeline against the database’s seed, and check each.
engine-dmo template test [flags] | Flag | Type | Default | Meaning |
|---|---|---|---|
--filter | string | only the tests whose name or file contains this | |
--snapshots | bool | record or compare a snapshot for every test, not only those with snapshot: true | |
--update | bool | record the snapshots again instead of comparing them |
--json prints the command’s own JSON document. Runs in a project. It renders against the database, so it needs one, migrated, with the schema applied and the seed loaded.
See Template API.