CLI Reference

Complete command reference for rte CLI.

Global Options

FlagDescription
-V, --versionOutput version number
-d, --debugEnable debug mode with stack traces
-h, --helpDisplay help

rte dev

Run a React file through the engine with debug panel.

rte dev <file> [options]

Arguments

Options

OptionDescription
-p, --port <port>API server port (default: 3000)
-s, --save-sessionSave session to .rte/sessions/
rte dev examples/counter.tsx
rte dev src/App.tsx --port 8080 --save-session

rte replay

Replay a recorded session with frame stepping.

rte replay <sessionFile> [options]

Options

OptionDescription
-i, --interactiveInteractive mode with keyboard controls

rte diff

Compare two session files and find divergence.

rte diff <sessionA> <sessionB> [options]

Options

OptionDescription
-v, --visualShow visual side-by-side comparison
-j, --jsonOutput structured debug summary as JSON
-s, --summary-onlyPrint only explanation (no raw diff)

rte verify

Verify current app state against snapshot (CI mode).

rte verify <snapshot.json> [options]

Options

OptionDescription
-g, --generateGenerate and compare hash
-e, --entry <file>Entry file to run

rte benchmark

Run performance benchmark.

rte benchmark [options]

Options

OptionDescription
-s, --scenario <name>Scenario: small, medium, large, stress, stress-large-tree (default: small)

Error Format

❌ Error: <message>
  [suggestion]
ErrorFix
Missing required argumentProvide required argument
Session file not foundCheck file path is correct
Invalid session fileEnsure valid JSON
Unknown optionUse correct flags

Exit Codes