# thalamus replay

Source: https://usecns.dev/thalamus-cli-replay/

[Start here](https://usecns.dev/manual-thalamus/)
[CLI commands](https://usecns.dev/commands-thalamus/)
[Configuration & integration](https://usecns.dev/thalamus-topics/)

Usage: `thalamus replay --since <TIME> [--node <NAME>] --state-dir <PATH> [--json]`.

* `--since <TIME>`: required; relative `90s`, `30m`, `1h`, `7d`, `2w`; Unix seconds; `YYYY-MM-DD`; or RFC 3339. Converted to a millisecond lower bound.
* `--node <NAME>`: optional exact node filter.
* `--state-dir <PATH>` / `THALAMUS_STATE_DIR`: required to locate `telemetry.db`; no server URL is used.
* `--json`: false; one JSON object per row instead of a UTC assignment table and row-count footer. With zero rows JSON mode emits no lines.

Opens SQLite read-only and works while the router is down. Exit 0 means query succeeded (including zero rows); 1 means unreadable store/query failure; 2 means bad arguments, invalid `--since` or unconfigured directory; 3 means `absent` (no telemetry file). Absence is not an empty history.

See [CLI conventions](https://usecns.dev/thalamus-cli-usage/) for shared configuration and exit behavior, or [browse all commands](https://usecns.dev/commands-thalamus/).