Skip to content
pre-alpha

CLI

The motio command comes with @motiojs/cli. These pages are generated from the CLI itself: the same table that prints --help, and the JSON schemas it publishes.

Commands

Command What it does
motio init Create a new project from a starter.
motio render Render a video.
motio still Render one frame as an image.
motio compositions List the compositions of a project.
motio frames Render a contact sheet: a grid PNG of evenly spaced frames.
motio dev Start the preview page: compositions in a Player, hot reload, render check.
motio browser ensure Download the pinned chrome-headless-shell if needed.
motio ffmpeg ensure Download the pinned FFmpeg of @motiojs/ffmpeg if needed (when installed).
motio doctor Check FFmpeg, the browser, the config and Remotion API compatibility.
motio check determinism Render in two orders and two concurrencies and compare decoded frames.
motio check flicker Flag frames that differ from both neighbours.

Flags of every command

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.

Exit codes

Code Meaning
0 Success.
1 The command failed: a render error, a missing composition, a browser or FFmpeg problem.
2 Invalid arguments or flags (E_INVALID_ARGUMENT).
3 A check ran and found problems: determinism, flicker or doctor.

Error

A failed command with --json prints one object with ok: false. Error codes are stable across releases: match on code, not on message.

Field Type Description
ok false
command string or null
error object
error.code string Stable error code.
error.message string
error.context object Structured details: flag, frame, label, composition, path…

Composition

Commands that render report the composition they rendered with this object.

Field Type Description
id string
width integer
height integer
fps number
durationInFrames integer