Skip to content

CLI reference

The public 0.1.x CLI has five intent-oriented commands. Run chronicle --help or a command’s --help for the binary’s exact parser output.

These options precede the subcommand:

Option Purpose
--config FILE Read a TOML configuration file. Secrets must be referenced through environment variables.
--data-dir DIR Select the public data directory.
--format human|json Select human or machine-readable rendering.
Command Use
record Capture a command, process, or cgroup into a published recording.
replay Plan and safely replay a recording against a spawned or already-running application.
list List recordings, newest first.
inspect Summarize a recording by latest, ID, or exact name.
doctor Run non-destructive platform, capture, storage, protocol, and replay-policy probes.
Terminal window
chronicle record --name checkout -- ./my-app
chronicle record --duration 30s -- ./my-app
chronicle record --pid PID
chronicle record --cgroup /sys/fs/cgroup/my-service
chronicle record --retry checkout

Public flags include --name, optional whole-recording --duration, --retry, --pid, and --cgroup. list reports one row per stable parent with bounded epoch counts. Command arguments follow --.

Terminal window
chronicle replay checkout -- ./my-app
chronicle replay checkout --epoch 0 --target http://127.0.0.1:8080 \
--allow-host 127.0.0.1 --allow-read --execute

Replay flags include --target, repeatable --allow-host, --allow-read, --allow-write, and --execute. Command mode and explicit-target mode have different authorization requirements; read replay safety before enabling effects.

Terminal window
chronicle list
chronicle inspect latest
chronicle doctor
chronicle --format json list
chronicle --format json inspect latest
chronicle --format json doctor

All three are safe to use for diagnosis. doctor is non-destructive; inspect avoids printing bodies and arbitrary header values.

The hidden internal namespace is the operational surface for the continuous recorder, recorder status, standalone ETL, and deterministic fixture recording; it is not the recommended public surface. Docker/Kubernetes commands do not exist.