Skip to content
CLI reference for ChalkSurf CLI v0.3.6. Your installed chalksurf --help output remains authoritative for that binary.

chalksurf figure render-draft

chalksurf figure render-draft
Render a semantic figure draft to SVG/PNG metadata and optional PNG output
Options:
--json Write machine-readable JSON to stdout [boolean] [default: false]
--result-file Publish the complete JSON result envelope to a new private file [string]
--base-url Base URL of the ChalkSurf API [string]
--organization Organization ID to use for this command [string]
--profile CLI profile to use for this command [string]
-v, --version Show the CLI version [boolean]
--help Show help [boolean]
--input-json JSON object matching the semantic figure render draft contract [string] [required]
--output Write the rendered PNG to this local path [string]
Examples:
chalksurf figure render-draft --input-json '{"canvas":{"width":320,"height":240},"objects":[{"id":"A","type":"point","at":{"x":0,"y":0}}]}' --output figure.png --json Render and save a draft figure