Meridian handbook
ReferenceCLI

site

engine-dmo site: A site leaving the install: export it as a standalone install, then retire it here. Every subcommand, argument and flag.

A site leaving the install: export it as a standalone install, then retire it here.

CommandWhat it does
engine-dmo site exportWrite a standalone install of one site: its database, media and configuration, verified by restoring it and serving its home page
engine-dmo site retireRemove a site from the install: its rows, analytics and search indexes, and the people and organisations connected only to it, erased

engine-dmo site export

Write a standalone install of one site: its database, media and configuration, verified by restoring it and serving its home page.

engine-dmo site export [flags]
FlagTypeDefaultMeaning
--outstringthe directory to write, created 0700; it must be empty or absent
--planboolprint what would be copied and stop
--scratch-database-urlstringa PostgreSQL server the export may create two databases on and drop them; its database is used to connect
--signing-key-envstringan environment variable holding the receiving install’s signing key, to reseal second factors with; without it they are cleared
--sitestringthe site’s key
--staffstringsa staff user whose grants reach every site, by address, to copy as well; repeatable

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

engine-dmo site retire

Remove a site from the install: its rows, analytics and search indexes, and the people and organisations connected only to it, erased.

engine-dmo site retire [flags]
FlagTypeDefaultMeaning
--planboolprint what would be removed and erased, and stop
--sitestringthe site’s key
--yesboolretire without asking

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

See Backups and restore.