Docs
Commands
Every explainroo command and its options.
How do I run a command?
In the explainroo folder, run node bin/explainroo.js <command>. After npm link you can type explainroo <command> instead. Most commands take the project folder as their first argument. If you leave it out, they use the current folder. Every command takes --json when a program needs to read the output.
Which commands make a video?
| Command | What it does |
|---|---|
init <dir> |
creates a starter project. Options: --theme, --size, --pace, --language, --voice, --title. The theme and voice flags choose built-in looks and Kokoro voices. Set custom looks or other voice sources in video.json |
voice [project] |
makes narration and word times from Kokoro, ElevenLabs or recordings. It lists unconfirmed words and redoes only changed scenes. --force redoes all scenes |
preview [project] |
opens a live browser preview that reloads when you save. --port sets the port, 4400 by default. --size tries another size |
still [project] [times] |
saves PNG frames. Times: 12.5, scene, scene@2.4, scene@start, scene@end. Without times, it saves every scene’s end. --size changes size, --scale changes image scale, and --transparent keeps alpha |
sheet [project] |
saves a contact sheet. --scene <id> picks one scene, --every <seconds> sets frame spacing, --cols <n> sets columns, and --size changes size |
check [project] |
checks layout, timing, pronunciation, clips, formulas and chapters. Errors give an error code. --size changes size. --view-width <pixels> checks text in a smaller player. --step <seconds> sets the time between checks, 0.25 by default |
render [project] |
saves the video and its subtitle files, cover and chapters. See the render options below |
verify [project] |
checks a finished MP4, WebM or MOV for loudness, peaks, black frames, silence and clear narration. --file <path> picks another file. Transparent video skips the black-frame check. GIFs are not checked |
export [project] |
saves a web player in out/player/. --out <dir> picks another folder. Serve it with a static web server. See publishing a video |
Which options does render take?
| Option | What it does |
|---|---|
--format mp4 |
the default. Other choices are gif, webm and mov |
--transparent |
keeps the background transparent. Needs --format webm or --format mov |
--size <size> |
uses another size for this run |
--draft |
makes a quick half-size out/draft.mp4, or the chosen format’s ending |
--from <seconds>, --to <seconds> |
renders part of the video. Partial renders skip chapters and the cover |
--workers <n> |
how many Chrome pages draw at once. Try --workers 2 if a busy computer stops a render |
--scale <number> |
changes the rendered frame size |
--out <file> |
picks the output file. Its ending must match the format |
A normal render writes out/video.mp4, video.srt, video.vtt and video.cover.jpg. Scenes with chapter titles also get video.chapters.txt and chapters in the MP4. Videos without narration get no subtitle files. Extra files share the video’s name, including with --out.
GIFs are silent, run at 15 frames per second and have a long side of at most 960 pixels. See publishing a video for uploading, transparent exports and the web player.
How do I try another size?
--size works on preview, still, sheet, check and render. It leaves video.json alone and shares the narration between sizes.
With --size tiktok, outputs become out/video-tiktok.mp4, out/draft-tiktok.mp4, out/stills-tiktok/ and out/sheet-tiktok.jpg. A scene sheet is out/sheet-intro-tiktok.jpg. Ratios use a hyphen, such as video-9-16.mp4. render --out still picks the name you give it. Use verify --file to check that named output.
Which commands help with product demos and images?
| Command | What it does |
|---|---|
capture [project] <url> |
saves screenshots, wording, colors, fonts and logos in assets/capture/<hostname>/. --mobile adds mobile screenshots. It replaces an earlier capture of the same site. See product demos |
image [project] <name> "<prompt>" |
makes an AI illustration through OpenRouter in assets/<name>.png. Options: --model best or --model cheap, --aspect, --ref, --no-style. --style "<text>" sets the style for one image |
images [project] |
lists the images made for the project and their costs |
Which commands help me look things up?
| Command | What it does |
|---|---|
voices |
lists Kokoro voices and their languages. --language es filters the list |
voices [project] --elevenlabs |
lists the names, ids and labels available to your ElevenLabs key |
say "text" |
saves a Kokoro voice sample. Options: --voice, --speed, --out. It uses the chosen voice’s language |
themes |
lists the six built-in looks and music styles |
formats |
lists platform sizes and their content areas |
icons <word> |
searches the 1,854 icons by name and tag |
doctor |
checks Node, ffmpeg, Chrome, espeak-ng and speech models. Missing espeak-ng is allowed. --fetch downloads the English models. Other languages download their speech check model on first use |
help |
shows the commands. --help or -h also works |
version |
shows the installed version. --version also works |
Use --quiet to hide progress messages. See voices and languages for voice sources and settings for API keys and environment variables.