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
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 |
|