Skip to content
pre-alpha

motio dev

Start the preview page: compositions in a Player, hot reload, render check.

Terminal window
motio dev [entry-point]

Flags

Flag Description
--json Print one JSON object on stdout (schema in schemas/).
--log=<value> Log level: trace, verbose, info, warn, error.
--help, -h Show help for the command.
--props=<value> Input props (JSON or a JSON file), merged over each composition’s default props.
--config=<value> Config file (default: motio.config.ts, else remotion.config.ts, in the project root).
--env-file=<value> Dotenv file to read instead of .env.
--public-dir=<value> Public directory (default public/).
--port=<value> Port of the preview page; fails if taken. Default dev.port of the config, else 3000, then the next free port.
--host=<value> Host to bind (default localhost).
--open Open the page in the default browser.
--disable-keyboard-shortcuts Turn off the page’s keyboard shortcuts.
--browser-executable=<value> Chrome to use instead of the pinned one.
--timeout=<value> delayRender() timeout per frame, in milliseconds.
--gl=<value> OpenGL backend: angle, egl, swiftshader, swangle, vulkan, angle-egl.
--raster=<value> Motio: cpu (default; the pixels of Remotion’s default setting) or gpu (the pixels of Remotion with –gl=swangle, which selects it; videos take about 2.5 times as long).
--canvas=<value> Motio: how transparent captures draw 2D canvases: software (default; deterministic and faster) or gpu (Remotion’s canvas pixels).
--time-zone=<value> Motio: the time zone of the page’s Date and Intl, an IANA name such as Europe/Rome (default: UTC on every machine).
--locale=<value> Motio: the page’s language (navigator.language, Intl’s default, Accept-Language), a tag such as it-IT (default: en-US on every machine).
--ignore-certificate-errors Accept invalid TLS certificates.
--disable-web-security Disable CORS and other web security.
--user-agent=<value> User agent of the pages.
--dark-mode Emulate prefers-color-scheme: dark.

JSON output

With --json, motio dev prints exactly one JSON object on stdout. On success it has these fields; on failure it is the error object. The schema ships with the CLI as @motiojs/cli/schemas/dev.schema.json.

Field Type Description
ok true
command "dev"
url string URL of the preview page.
port integer
entryPoint string Absolute path of the entry file.
entryPointReason "argument", "config", "common paths"
publicDir string or null Public directory served, or null.
envVariableNames array of string Variables exposed as process.env (names only).
pid integer Process to signal to stop the server.
warnings array of string

Exit codes

See exit codes. Run motio dev --help for the same list of flags in the terminal.