>_ RESTERM
v1.18.1
cli/history.md

docs CLI

resterm history

Export, import, inspect and compact stored history.

Use the history commands to back up, inspect, or move saved history. Configuration lists its location, and History and diffing covers browsing and replaying it in the TUI.

Command What it does
resterm history export --out <path> Export persisted history as JSON.
resterm history import --in <path> Import history from JSON.
resterm history backup --out <path> Create a SQLite-consistent backup.
resterm history stats Print schema version, row counts, and sizes.
resterm history check [--full] Run integrity checks.
resterm history compact Checkpoint and compact history.db.

resterm history vacuum is another name for compact. These commands exit 0 on success, 2 for a missing or unknown flag, extra arguments, or an unknown subcommand, and 1 for any other error.

Search

↑↓ moveEnter openEsc close

Help

These keys work like the ones in the TUI.

/
Search the docs (also Ctrl K)
j k
Scroll down and up
g g G
Jump to the top or the bottom
[ ]
Previous and next docs page
g d
Docs index
g h
Home page
t
Switch between dark and light
?
Show this help
Esc
Close a dialog