Skip to content

CLI Reference

console2svg provides subcommands for recording terminal sessions, converting them to vector images or videos, managing themes, and diagnosing operating environments. When running commands to capture, specify the target command line after the -- delimiter to avoid option parsing ambiguities.

Terminal
console2svg capture [options] -- command [args...]

The following subcommands are available depending on your use case.

CommandPurpose
captureRuns a specified command in a pseudo-terminal and records the final screen or animation as SVG/video.
interactiveStarts an interactive shell and records the screen interactively via keybindings at any time.
replayReplays previously recorded keyboard input and captures identical operation results.
castLoads an existing asciicast v2 recording file and renders it as an SVG image or animation.

Session Management and External Integration

Section titled “Session Management and External Integration”
CommandPurpose
sessionStarts and controls a persistent background pseudo-terminal session, reading current screen state.
live-serverConverts a running terminal screen to SVG in real time and streams it over HTTP for browsers.
tmuxTargets an active tmux pane to capture its screen directly or stream it live.
CommandPurpose
batchScans embedded tags in Markdown/MDX to automatically generate and synchronize documentation images.
llmOutputs built-in Skill definitions to allow AI agents (such as GitHub Copilot or Claude) to operate console2svg.
CommandPurpose
themeLists, installs, updates, and removes terminal appearance themes and color palettes.
statusDiagnoses the execution environment, renderers (resvg, ffmpeg, etc.), and available features.
updateChecks for the latest console2svg release and performs a self-update.
completionsGenerates shell completion scripts for bash, zsh, fish, PowerShell, etc.