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:
./matemium.sh <command>or:
python -m matemium <command>after activating the environment where Matemium is installed.
Render a built-in demonstration:
./matemium.sh demo./matemium.sh demo landscape./matemium.sh demo tictactoeAvailable aliases include portrait/reels, landscape/youtube, builder, and tictactoe/tutorial/flex.
Options:
-q, --quality fast_preview | preview | draft | low | medium | high | final-o, --output custom output name-r, --resolution WIDTH,HEIGHT or nativeQuality profiles preserve the scene aspect ratio:
| Profile | Pixel scale | Frame rate |
|---|---|---|
preview |
50% | 15 fps |
draft |
75% | 30 fps |
low |
100% | 30 fps |
medium |
100% | 30 fps |
high |
100% | 60 fps |
final |
100% | 60 fps |
The explicit resolution option overrides the pixel dimensions but does not recompose the scene’s logical layout.
List projects, discovered scene classes, and output paths:
./matemium.sh listCreate a project from the template:
./matemium.sh new binary_searchThis creates projects/binary_search/. Edit its scenes.py.
render
Section titled “render”Render the default scene in a project:
./matemium.sh render binary_searchRender a named scene:
./matemium.sh render binary_search BinarySearchRender a quick preview:
./matemium.sh render binary_search -q previewUse an explicit resolution:
./matemium.sh render binary_search -r 1080,1920Version
Section titled “Version”./matemium.sh --versionOutput
Section titled “Output”Project renders are isolated beneath:
outputs/<project>/media/Generated output is normally excluded from version control.
