Meridian handbook
ReferenceCLI

api

engine-dmo api: The content API: its contract, a site's project contract, and what it answers for a path. Every subcommand, argument and flag.

The content API: its contract, a site’s project contract, and what it answers for a path.

CommandWhat it does
engine-dmo api keys createIssue a key and print it once: a publishable key for browser code (CORS for its origins) or a secret key for the frontend’s server
engine-dmo api keys listEvery key, live first: its id, name, kind, the key masked to its prefix and last four characters, sites, capabilities, origins and state
engine-dmo api keys revokeEnd a key now; requests carrying it answer invalid_key
engine-dmo api keys rotateIssue a key like an existing one and print it once; the old key keeps working for --grace, so the new one is deployed first
engine-dmo api member formPrint the form description a given member would receive for a listing
engine-dmo api member openapiPrint the member API’s OpenAPI 3.1 document, generated from the route table in this binary
engine-dmo api member routesList the member API’s operations and whether this project serves them
engine-dmo api openapiPrint the content API’s OpenAPI 3.1 document: the generic contract from the route table in this binary, or with --types this project’s, its types included
engine-dmo api resolvePrint what the content API answers for a path on a site: the outcome, the document and the page metadata, recording no miss
engine-dmo api schemaPrint a site’s project contract: the JSON Schema of each of its types as delivered, or an OpenAPI document with them

engine-dmo api keys create

Issue a key and print it once: a publishable key for browser code (CORS for its origins) or a secret key for the frontend’s server.

engine-dmo api keys create [flags]
FlagTypeDefaultMeaning
--capabilitystringspreview (secret keys), events (secret keys) or forms; reading published content is implied
--expiresstringwhen the key stops: a duration such as 2160h or a time such as 2027-01-01T00:00:00Z; never when absent
--kindstringpublishable (browser code) or secret (the frontend’s server)
--namestringwhat the key is for, such as “Astro frontend (production)”
--originstringsa publishable key’s allowed browser origin, such as https://www.example.org; none allows the frontend origin of a headless site it reads
--sitestringsa site the key reads; repeat or comma separate for several

--json prints the command’s own JSON document. Runs in a project.

engine-dmo api keys list

Every key, live first: its id, name, kind, the key masked to its prefix and last four characters, sites, capabilities, origins and state.

engine-dmo api keys list [flags]
FlagTypeDefaultMeaning
--sitestringonly the keys that read this site

--json prints the command’s own JSON document. Runs in a project.

engine-dmo api keys revoke

End a key now; requests carrying it answer invalid_key.

engine-dmo api keys revoke [flags]
FlagTypeDefaultMeaning
--confirmboolconfirm the key should stop working now
--idstringthe key’s id, from engine-dmo api keys list

--json prints the command’s own JSON document. Runs in a project.

engine-dmo api keys rotate

Issue a key like an existing one and print it once; the old key keeps working for --grace, so the new one is deployed first.

engine-dmo api keys rotate [flags]
FlagTypeDefaultMeaning
--graceduration24h0m0show long the old key keeps working; 0 ends it now
--idstringthe key’s id, from engine-dmo api keys list

--json prints the command’s own JSON document. Runs in a project.

engine-dmo api member form

Print the form description a given member would receive for a listing.

engine-dmo api member form [flags]

Available in engine-dmo only.

FlagTypeDefaultMeaning
--listingstringthe listing’s document id
--personstringthe person’s id

--json prints the text output in the JSON envelope. Runs in a project.

engine-dmo api member openapi

Print the member API’s OpenAPI 3.1 document, generated from the route table in this binary.

engine-dmo api member openapi

Available in engine-dmo only.

--json prints the text output in the JSON envelope. Needs no project.

engine-dmo api member routes

List the member API’s operations and whether this project serves them.

engine-dmo api member routes [flags]

Available in engine-dmo only.

--json prints the text output in the JSON envelope. Runs in a project.

engine-dmo api openapi

Print the content API’s OpenAPI 3.1 document: the generic contract from the route table in this binary, or with --types this project’s, its types included.

engine-dmo api openapi [flags]
FlagTypeDefaultMeaning
--apistringcontentthe API whose contract to print: content
--typesboolinclude the project’s types: the document GET /api/content/v1/openapi.json serves

--json prints the text output in the JSON envelope. Needs no project.

engine-dmo api resolve

Print what the content API answers for a path on a site: the outcome, the document and the page metadata, recording no miss.

engine-dmo api resolve <path> [flags]
ArgumentRequiredRepeatable
pathyesno
FlagTypeDefaultMeaning
--hoststringthe request host, for a site whose locales are by domain
--sitestringthe site’s key; the default site when absent

--json prints the text output in the JSON envelope. Runs in a project.

engine-dmo api schema

Print a site’s project contract: the JSON Schema of each of its types as delivered, or an OpenAPI document with them.

engine-dmo api schema [flags]
FlagTypeDefaultMeaning
--formatstringjsonschemajsonschema or openapi
--sitestringthe site’s key

--json prints the text output in the JSON envelope. Runs in a project.