CLI reference
Installing Rtistree exposes rtistree and the compatibility alias graphics. In a local npm project, use npx rtistree.
Run rtistree --help for the complete installed-version reference. Structured results go to
stdout as JSON; errors go to stderr. Failed verification/preflight and non-identical recipe replay exit 2; input/runtime errors exit 1.
Create a starter
Section titled “Create a starter”npx rtistree@latest init my-artcd my-artnpm installnpm run renderThe destination must be a new directory. The starter includes a scene, sample patch, SDK example
and npm render scripts. init writes starter files without installing dependencies or executing painting programs.
Inspect and edit
Section titled “Inspect and edit”npx rtistree inspect scene.jsonnpx rtistree inspect scene.json --layer titlenpx rtistree inspect-region scene.json 0 0 100 100npx rtistree render scene.json -o image.pngnpx rtistree render-region scene.json 0 0 100 100 -o crop.pngnpx rtistree apply scene.json patch.jsonnpx rtistree undo scene.jsonnpx rtistree redo scene.jsonnpx rtistree history scene.jsonCoordinates are x y width height in canvas pixels. A patch contains a reason and a typed
commands array. Supply the current expected_hash when coordinating concurrent edits.
See scene format for command shapes and coordinate rules.
Verify, review and export
Section titled “Verify, review and export”npx rtistree verify scene.json -o report.json --heatmap heatmap.pngnpx rtistree critique scene.json critique.jsonnpx rtistree export scene.json -o portable/scene.jsonnpx rtistree export scene.json --format png -o image.pngVerification measures configured technical constraints. Critiques are authored after inspecting images and bound to the current scene. Exports for physical documents and printer profiles are described in print production.
Studio and production
Section titled “Studio and production”npx rtistree art-guidenpx rtistree studio-helpnpx rtistree program scene.json program.jsonnpx rtistree program-replay scene.json asset-idnpx rtistree pipeline scene.json pipeline.jsonnpx rtistree production scene.json request.jsonRead studio for program requests and staged production for plans, candidate captures, reviews and selection. Program execution is for trusted code only.
Project creation and integration
Section titled “Project creation and integration”npx rtistree project new artwork --size A3 --orientation landscape --ppi 300 --bleed 3mmnpx rtistree schema --kind scenenpx rtistree schema --kind commandnpx rtistree serve /absolute/path/to/scene.jsonThe MCP server uses stdio. See agent setup.
Additional commands
Section titled “Additional commands”| Command | Purpose |
|---|---|
npx rtistree rebase scene.json |
Merge manual source changes into journaled state; conflicts fail without committing |
npx rtistree compact scene.json |
Compress history while retaining undo and redo |
npx rtistree raster-read scene.json read.json |
Write an exact crop plus evidence and return an asset descriptor |
npx rtistree raster-write scene.json write.json |
Commit an exact-size PNG patch with a required current hash |
npx rtistree import-svg drawing.svg -o drawing.scene.json |
Import the supported static SVG subset |
npx rtistree preflight artwork --preset screen |
Check physical document/export settings and save a report |
npx rtistree proof artwork --preset print -o proof.png |
Make a CMYK round-trip proof; requires a configured ICC profile |
npx rtistree benchmark scene.json brief.json before |
Capture a benchmark checkpoint after recording a current critique |
npx rtistree benchmark scene.json brief.json finish |
Finish after at least two inspected checkpoints |
Dense request shapes are in studio. Source rebasing, critiques and benchmark
requirements are in editing workflows. Names such as patch.json, read.json
and critique.json are request files you author, not files created by init.
Options, paths and output
Section titled “Options, paths and output”--output/-ochooses an artifact path. Explicit paths and request filenames resolve from the shell’s working directory. Asset/program paths inside requests resolve from the artwork project root. Without-o, configured projects useoutput_dir; bare scene files use arenders/directory alongside the scene.render --quality draft|preview|finalcontrols PNG rendering. Draft halves dimensions after rendering; preview and final share the full-quality path.--layer IDrenders an isolated layer on a full-size transparent canvas.render-regionrequires an integer crop entirely inside the canvas; default/final quality is an exact full-render crop.inspect-regionalso writesinspection.pngand its evidence unless you supply-o.- Artwork
exportand fullrenderaccept--format,--presetand--ppi. Known output extensions are inferred. Print exports additionally accept--profile(project-relative ICC file; implies CMYK),--colour-space srgb|cmykand--crop-marks. Useexportfor print options; a plain PNGrenderwith only--profiledoes not select the export path. schema --kind scenedescribes a resolved scene. Source scenes with includes/components use the packagedauthoring.schema.json; a patch usespatch.schema.json.
JSON is the structured result format; help is plain text and serve writes MCP protocol
messages. The npm/npx launcher can print its own installation notices. verify and
preflight failures, and non-identical program-replay results, exit 2. Input/runtime/export
errors exit 1. Warnings alone do not make preflight fail. Program or pipeline build success
only means execution succeeded; it does not establish visual quality.