Skip to content

CLI

Generated from actual CLI help output.

Command: cargo run -q -p dry-cli -- --help

Root help

text
Dry — toolpath compiler CLI

Usage: dry <COMMAND>

Commands:
  inspect             Parse + simulate a Dry IR file and print a concise summary
  simulate            Simulate a Dry IR file and print its metrics
  emit                Emit motion g-code for a Dry IR file
  pack                Encode a Dry IR (JSON) file to the chunked streaming binary form
  unpack              Decode a `.dry` binary back to Dry IR JSON (lossless)
  import-printer-cfg  Import a Klipper printer.cfg into a dry machine/material profile (kinematics, retraction, build volume)
  import-gcode        Import slicer G-code into Dry IR JSON for review, simulation, verification and optimisation
  review-gcode        Review slicer G-code directly, reporting metrics and contract findings with source line numbers
  trace-gcode         Summarize slicer G-code as fixed-window motion/time-series JSON
  forensics-gcode     Forensics: infer slicer behavior from G-code (slicer, features, layers, hotspots) with confidence tags
  explain             Assemble an offline LLM-explanation bundle (trace + forensics + verify + a curated prompt)
  compare             Diff two analysed g-code files: settings, time/flow, and safety findings (A → B)
  rewrite-gcode       Re-emit imported motion while preserving non-motion source G-code lines in place
  optimize            Optimise a Dry IR file (merge collinear, fit arcs) and report the before/after
  upload              Verify a g-code file and upload it to a Moonraker host (accept/warn/reject gate)
  verify              Check a Dry IR file against machine-safety contracts; exits 1 if any errors are found. Flags: `--bounds`, `--max-flow`, `--speed-range`, `--monotonic-z`, `--min-temp`, `--max-retraction-distance`, `--max-retraction-speed`, `--max-travel-without-retract`, `--first-layer-height-range`, `--first-layer-speed-range`, `--max-accel`, `--junction-velocity`, `--json`
  help                Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Commands

CommandSampleSummary
inspectParse + simulate a Dry IR file and print a concise summary
simulateSimulateSimulate a Dry IR file and print its metrics
emitAuthor a pathEmit motion g-code for a Dry IR file
packLower to the Dry IREncode a Dry IR (JSON) file to the chunked streaming binary form
unpackDecode a .dry binary back to Dry IR JSON (lossless)
import-printer-cfgImport a Klipper printer.cfg into a dry machine/material profile (kinematics, retraction, build volume)
import-gcodeLower to the Dry IRImport slicer G-code into Dry IR JSON for review, simulation, verification and optimisation
review-gcodeVerifyReview slicer G-code directly, reporting metrics and contract findings with source line numbers
trace-gcodeSimulateSummarize slicer G-code as fixed-window motion/time-series JSON
forensics-gcodeForensics: infer slicer behavior from G-code (slicer, features, layers, hotspots) with confidence tags
explainVerifyAssemble an offline LLM-explanation bundle (trace + forensics + verify + a curated prompt)
compareVerifyDiff two analysed g-code files: settings, time/flow, and safety findings (A → B)
rewrite-gcodeOptimizeRe-emit imported motion while preserving non-motion source G-code lines in place
optimizeOptimizeOptimise a Dry IR file (merge collinear, fit arcs) and report the before/after
uploadVerify a g-code file and upload it to a Moonraker host (accept/warn/reject gate)
verifyVerifyCheck a Dry IR file against machine-safety contracts; exits 1 if any errors are found. Flags: --bounds, --max-flow, --speed-range, --monotonic-z, --min-temp, --max-retraction-distance, --max-retraction-speed, --max-travel-without-retract, --first-layer-height-range, --first-layer-speed-range, --max-accel, --junction-velocity, --json