genart.dev
CLI

genart dev

Watch, compile, and serve a live preview

Start a development server that watches a project directory for changes, recompiles automatically, and serves a live preview in the browser with hot reload.

Usage

genart dev <dir> [options]

Arguments

ArgumentRequiredDescription
<dir>YesPath to the developer project directory

Options

FlagTypeDefaultDescription
-p, --portnumber3456Port for the dev server
--openbooleanOpen the preview in the default browser
-o, --outputpathOutput path for the compiled .genart file
--no-preserve-statebooleanDiscard runtime state on recompile
--no-preserve-layersbooleanDiscard design layers on recompile

Examples

Start the dev server:

genart dev my-project/

Start on a custom port and open the browser:

genart dev my-project/ --port 8080 --open

Start without preserving state between recompiles:

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

Write the compiled file to a specific location:

genart dev my-project/ -o output/sketch.genart