Record/play replays
Available since v0.9
Save keyboard input and timing to a JSON file, then reproduce the exact same operations later for recapture. This is suitable for regular documentation image updates and CI automation.
Recording a replay
Section titled “Recording a replay”Run with a destination file path specified for the --replay-save option.
# Record an interactive sessionconsole2svg interactive --replay-save demo.json -- bashAll keystrokes and time intervals during execution are saved to demo.json.
Playing a replay
Section titled “Playing a replay”Use the replay subcommand to run capture with a saved replay file.
console2svg replay demo.json -- bash