Command line

The kinemo command, installed with the package.

Explanatory animations in Python. Every subcommand takes -h / --help. Exit codes: 0 when everything is fine, non-zero when there are errors (or warnings with --strict).

Command Summary
kinemo new create a project
kinemo dev browser preview with hot reload and a scrubbable timeline
kinemo check build + resolve without rendering: errors, lints, timeline
kinemo inspect scene graph at time t
kinemo snap PNGs of the requested times
kinemo voice make the narration lines that have no audio yet or changed
kinemo render final output
kinemo mcp MCP server (stdio) with check, inspect, snap, docs and explain
kinemo docs short offline docs with a canonical example
kinemo upgrade codemods between versions
kinemo doctor what kinemo finds on this machine (paste it into bug reports)
kinemo explain long explanation of an error or lint

Scene commands (dev, check, inspect, snap, render) take the file, --scene NAME to pick one scene (default: all) and --param NAME=VALUE (repeatable) to set scene parameters. Settings precedence: CLI > @k.scene > kinemo.toml > defaults (configuration).

kinemo new

Create a project.

kinemo new [-h] name
Argument Type Default Description
name str (required)

Examples:

kinemo new my-video
cd my-video && kinemo check scene.py && kinemo render scene.py

kinemo dev

Browser preview with hot reload and a scrubbable timeline.

kinemo dev [-h] [--scene SCENE] [--param NAME=VALUE] [--size SIZE] [--port PORT] [--no-open] [--debug DEBUG] file
Argument Type Default Description
file str (required)
--scene SCENE str scene name (default: all)
--param NAME=VALUE str (repeatable)
--size SIZE str output size instead of the scene's: 1080p, 720p, 4k, square, vertical
--port PORT int 7878
--no-open flag do not open the browser
--debug DEBUG str overlays: layout,safe (comma-separated)

Examples:

kinemo dev scene.py
kinemo dev scene.py --scene intro --debug layout,safe --port 8000

kinemo check

Build + resolve without rendering: errors, lints, timeline.

kinemo check [-h] [--scene SCENE] [--param NAME=VALUE] [--size SIZE] [--json] [--strict] [--fix] file
Argument Type Default Description
file str (required)
--scene SCENE str scene name (default: all)
--param NAME=VALUE str (repeatable)
--size SIZE str output size instead of the scene's: 1080p, 720p, 4k, square, vertical
--json flag
--strict flag treat warnings as errors
--fix flag apply safe fixes

Examples:

kinemo check scene.py
kinemo check scene.py --json --strict
kinemo check scene.py --fix
kinemo check scene.py --scene intro --param n=5

kinemo inspect

Scene graph at time t.

kinemo inspect [-h] [--scene SCENE] [--param NAME=VALUE] [--size SIZE] [--at AT] [--json] [--all] file
Argument Type Default Description
file str (required)
--scene SCENE str scene name (default: all)
--param NAME=VALUE str (repeatable)
--size SIZE str output size instead of the scene's: 1080p, 720p, 4k, square, vertical
--at AT str 0 comma-separated: seconds, 'end', a mark, 'mark+1.5', 'mark+50%', or 'marks' (every mark); the scene is built once
--json flag
--all flag include objects not in the scene

Examples:

kinemo inspect scene.py --at 2.5
kinemo inspect scene.py --at end --json --all

kinemo snap

PNGs of the requested times.

kinemo snap [-h] [--scene SCENE] [--param NAME=VALUE] [--size SIZE] [--at AT] [--out OUT] [--sheet] [--columns COLUMNS] [--quality {draft,final}] file
Argument Type Default Description
file str (required)
--scene SCENE str scene name (default: all)
--param NAME=VALUE str (repeatable)
--size SIZE str output size instead of the scene's: 1080p, 720p, 4k, square, vertical
--at AT str 0,end comma-separated: seconds, 'end', a mark, 'mark+1.5', 'mark+50%' (between mark and mark.end), or 'marks' (every mark)
--out OUT str out a folder, or one file (shot.png) for one scene and one instant
--sheet flag one labelled contact sheet per scene instead of one PNG per instant
--columns COLUMNS int 3 columns of the contact sheet
--quality QUALITY draft | final draft

Examples:

kinemo snap scene.py --at 0,2.5,end
kinemo snap scene.py --at intro_done --quality final --out shots

kinemo voice

Make the narration lines that have no audio yet or changed.

kinemo voice [-h] [--scene SCENE] [--param NAME=VALUE] [--size SIZE] [--check] [--force FORCE] [--progress {bar,json,none}] file
Argument Type Default Description
file str (required)
--scene SCENE str scene name (default: all)
--param NAME=VALUE str (repeatable)
--size SIZE str output size instead of the scene's: 1080p, 720p, 4k, square, vertical
--check flag list missing and stale lines without making them (exit 1 if any)
--force FORCE str script beats to make again, comma-separated (or 'all')
--progress PROGRESS bar | json | none bar on stderr: a bar, one JSON object per line, or nothing

Examples:

kinemo voice scene.py --check
kinemo voice scene.py
kinemo voice scene.py --force B03,B04

kinemo render

Final output.

kinemo render [-h] [--scene SCENE] [--param NAME=VALUE] [--size SIZE] [--format {mp4,webm,mov,gif,png,svg,slides,lesson}] [--quality {draft,final}] [--out OUT] [--at AT] [--frames] [--transparent] [--progress {bar,json,none}] [--subtitles] [--questions {quiz,answers}] file
Argument Type Default Description
file str (required)
--scene SCENE str scene name (default: all)
--param NAME=VALUE str (repeatable)
--size SIZE str output size instead of the scene's: 1080p, 720p, 4k, square, vertical
--format FORMAT mp4 | webm | mov | gif | png | svg | slides | lesson default: from the --out extension, else mp4; lesson: an interactive page (folder) for the browser
--quality QUALITY draft | final final
--out OUT str out a folder (files named after the scene), or one file: clip.mp4, frame.png
--at AT str time (png/svg): seconds, a mark name or 'end'
--frames flag png: the whole sequence
--transparent flag
--progress PROGRESS bar | json | none bar on stderr: a bar, one JSON object per line, or nothing
--subtitles flag also write .srt and .vtt from the narration
--questions QUESTIONS quiz | answers a lesson's video at its questions: time to answer then the reveal (quiz), or the correct path (answers); default: the scene's

Examples:

kinemo render scene.py
kinemo render scene.py --format gif --quality draft
kinemo render scene.py --format png --at end --transparent
kinemo render scene.py --format slides
kinemo render scene.py --subtitles

kinemo mcp

MCP server (stdio) with the check, inspect, snap, docs and explain tools, always with --strict.

kinemo mcp [-h]

Takes no arguments.

Examples:

kinemo mcp

kinemo docs

Short offline docs with a canonical example.

kinemo docs [-h] [--json] [--check] [symbol]
Argument Type Default Description
symbol str symbol: k.draw, draw, s.play, Scene.play, ax.plot (optional)
--json flag JSON output
--check flag build every canonical example (like check --strict)

Examples:

kinemo docs
kinemo docs k.morph
kinemo docs s.play --json
kinemo docs --check

kinemo upgrade

Codemods between versions.

kinemo upgrade [-h] [--check] files [files ...]
Argument Type Default Description
files str (one or more)
--check flag only show the diff; do not write

Examples:

kinemo upgrade scene.py --check
kinemo upgrade scenes/*.py

kinemo doctor

What kinemo finds on this machine (paste it into bug reports).

kinemo doctor [-h]

Takes no arguments.

Examples:

kinemo doctor
kinemo doctor > setup.txt

kinemo explain

Long explanation of an error or lint.

kinemo explain [-h] code
Argument Type Default Description
code str (required)

Examples:

kinemo explain K0101