genart.dev
CLI

CLI Reference

Command-line interface for rendering, exporting, and managing genart sketches

The @genart-dev/cli provides commands for rendering sketches to images and video, batch processing, scaffolding new projects, and running the MCP agent server.

Installation

npm install -g @genart-dev/cli

Once installed, the genart command is available globally.

Commands

CommandDescription
renderRender a .genart sketch to an image
batchGenerate many renders — seed ranges, parameter sweeps
montageCompose a grid of images into a montage
exportExport sketch as HTML, image, or algorithm source
videoRender video from an animated sketch
infoInspect sketch metadata
validateValidate .genart files
initScaffold a new sketch
importConvert .js / .glsl files to .genart
agentMCP server and agent configuration
compileCompile a developer project to .genart
ejectExtract a .genart file to a project directory
devWatch, compile, and serve a live preview

Global Options

All commands support the following flags:

FlagDescription
--helpShow help for any command
--versionPrint the CLI version