Skip to main content

CLI

No command starts the server and opens the UI. Node 22.13 or newer.

Commands

<id> accepts a full session id or a unique prefix.

turnlog skill

Registering the MCP server gives your agent the tools; it does not tell it when to use them, so it tends to wait until you ask. The skill file supplies the trigger — past work referenced, an error that looks familiar, an unfamiliar file about to change — plus the query grammar and the rule to cite session ids. It prints to stdout rather than installing itself: Turnlog does not write into an agent’s own directory, and every agent keeps its instructions somewhere different. Save it where yours reads them.
Pair it with MCP setup — the skill is only useful once the tools it names are registered.

Options

Export

--format defaults to markdown. --from/--to are message indexes and mark the output an excerpt. --redact scrubs token shapes, emails and home paths. --html is a long-standing alias for --format html.
Same operators as the UI — see Search operators. Hits print with deep links into the running UI.

Environment

Exit codes

turnlog doctor exits non-zero when SQLite’s integrity check fails, so it can gate a script. Everything else exits zero on success.