CLI
genart compile
Compile a developer project to .genart
Compile a developer project directory into a single .genart file. Bundles the algorithm source, parameters, design layers, and metadata into the portable format.
Usage
genart compile <dir> [options]Arguments
| Argument | Required | Description |
|---|---|---|
<dir> | Yes | Path to the developer project directory |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
-o, --output | path | Output .genart file path | |
--no-preserve-state | boolean | Discard runtime state (parameter values, seed) | |
--no-preserve-layers | boolean | Discard design layers | |
-w, --watch | boolean | Watch for changes and recompile automatically |
Examples
Compile a project:
genart compile my-project/Compile to a specific output path:
genart compile my-project/ -o output/my-sketch.genartCompile in watch mode during development:
genart compile my-project/ -wCompile without preserving runtime state:
genart compile my-project/ --no-preserve-stateCompile a clean version without state or layers:
genart compile my-project/ --no-preserve-state --no-preserve-layers -o clean.genart