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 preview | draft | low | medium | high | final-o, --output custom output name-r, --resolution WIDTH,HEIGHT or nativeList 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.
