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/cliOnce installed, the genart command is available globally.
Commands
| Command | Description |
|---|---|
render | Render a .genart sketch to an image |
batch | Generate many renders — seed ranges, parameter sweeps |
montage | Compose a grid of images into a montage |
export | Export sketch as HTML, image, or algorithm source |
video | Render video from an animated sketch |
info | Inspect sketch metadata |
validate | Validate .genart files |
init | Scaffold a new sketch |
import | Convert .js / .glsl files to .genart |
agent | MCP server and agent configuration |
compile | Compile a developer project to .genart |
eject | Extract a .genart file to a project directory |
dev | Watch, compile, and serve a live preview |
Global Options
All commands support the following flags:
| Flag | Description |
|---|---|
--help | Show help for any command |
--version | Print the CLI version |