genart.dev
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

ArgumentRequiredDescription
<dir>YesPath to the developer project directory

Options

FlagTypeDefaultDescription
-o, --outputpathOutput .genart file path
--no-preserve-statebooleanDiscard runtime state (parameter values, seed)
--no-preserve-layersbooleanDiscard design layers
-w, --watchbooleanWatch 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.genart

Compile in watch mode during development:

genart compile my-project/ -w

Compile without preserving runtime state:

genart compile my-project/ --no-preserve-state

Compile a clean version without state or layers:

genart compile my-project/ --no-preserve-state --no-preserve-layers -o clean.genart