Meridian handbook
ReferenceCLI

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.

CommandWhat it does
engine-dmo template apiThe complete template surface for a site of this project, including its own types and fields; --json for all of it
engine-dmo template testRender 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]
FlagTypeDefaultMeaning
--sitestringsite 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]
FlagTypeDefaultMeaning
--filterstringonly the tests whose name or file contains this
--snapshotsboolrecord or compare a snapshot for every test, not only those with snapshot: true
--updateboolrecord 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.