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.
Global options
Section titled “Global options”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. |
Public commands
Section titled “Public commands”| 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. |
record
Section titled “record”chronicle record --name checkout -- ./my-appchronicle record --duration 30s -- ./my-appchronicle record --pid PIDchronicle record --cgroup /sys/fs/cgroup/my-servicechronicle record --retry checkoutPublic 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 --.
replay
Section titled “replay”chronicle replay checkout -- ./my-appchronicle replay checkout --epoch 0 --target http://127.0.0.1:8080 \ --allow-host 127.0.0.1 --allow-read --executeReplay 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.
list, inspect, doctor
Section titled “list, inspect, doctor”chronicle listchronicle inspect latestchronicle doctorchronicle --format json listchronicle --format json inspect latestchronicle --format json doctorAll three are safe to use for diagnosis. doctor is non-destructive; inspect avoids printing bodies and arbitrary header values.
Advanced entrypoints
Section titled “Advanced entrypoints”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.