Meridian handbook
ReferenceCLI

redirects

engine-dmo redirects: The redirect rules table: list, import a CSV with a dry run, roll an import back. Every subcommand, argument and flag.

The redirect rules table: list, import a CSV with a dry run, roll an import back.

CommandWhat it does
engine-dmo redirects importImport exact redirect rules from a CSV (source, target, status, locale, note); --dry-run writes nothing
engine-dmo redirects listA site’s redirect rules from the table, newest first, of one origin with --origin
engine-dmo redirects rollbackDisable every rule an import batch wrote; audited

engine-dmo redirects import

Reads a CSV with a header row naming source and target, and optionally status, locale and note (other columns are ignored). A target is a path on the site, an absolute URL, document:<uuid> (the rule follows the document if its address changes), or empty with status 410. Each row is checked: the source and status, the locale, a duplicate in the file or the table, the target (a document that exists, a path the site answers), and loops and chains through every rule the site has. Any error refuses the whole import unless --skip-invalid; the import is one transaction, and engine-dmo redirects rollback --batch disables it.

engine-dmo redirects import [flags]
FlagTypeDefaultMeaning
--dry-runboolcheck every row and write nothing
--filestringthe CSV file
--sitestringsite key (default: the default site)
--skip-invalidboolimport the rows without errors when some have them

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

engine-dmo redirects list

A site’s redirect rules from the table, newest first, of one origin with --origin.

engine-dmo redirects list [flags]
FlagTypeDefaultMeaning
--originstringonly this origin: managed, imported, auto_slug, auto_trash and the rest
--sitestringsite key (default: the default site)

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

engine-dmo redirects rollback

Disable every rule an import batch wrote; audited.

engine-dmo redirects rollback [flags]
FlagTypeDefaultMeaning
--batchstringthe batch id the import printed
--sitestringsite key (default: the default site)

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