Skip to content

CLI reference

The CLI is primarily for engine checkouts, development, and project authors who prefer a terminal. The desktop application communicates with the sidecar directly instead of shelling out to these commands.

From the repository root, use either:

Terminal window
./matemium.sh <command>

or:

Terminal window
python -m matemium <command>

after activating the environment where Matemium is installed.

Render a built-in demonstration:

Terminal window
./matemium.sh demo
./matemium.sh demo landscape
./matemium.sh demo tictactoe

Available aliases include portrait/reels, landscape/youtube, builder, and tictactoe/tutorial/flex.

Options:

-q, --quality preview | draft | low | medium | high | final
-o, --output custom output name
-r, --resolution WIDTH,HEIGHT or native

List projects, discovered scene classes, and output paths:

Terminal window
./matemium.sh list

Create a project from the template:

Terminal window
./matemium.sh new binary_search

This creates projects/binary_search/. Edit its scenes.py.

Render the default scene in a project:

Terminal window
./matemium.sh render binary_search

Render a named scene:

Terminal window
./matemium.sh render binary_search BinarySearch

Render a quick preview:

Terminal window
./matemium.sh render binary_search -q preview

Use an explicit resolution:

Terminal window
./matemium.sh render binary_search -r 1080,1920
Terminal window
./matemium.sh --version

Project renders are isolated beneath:

outputs/<project>/media/

Generated output is normally excluded from version control.