CLI Reference
The complete command tree. Every command, its purpose, synopsis, and flags.
Most session commands also accept --root and --config — sessions directory (default ~/.rekord/sessions); config file path (default ~/.rekord/rekord.yaml).
// recording
Record an interactive terminal session in the current shell.
| flag | description |
|---|---|
| --name | Recording name (required). |
| --timer | Auto-stop after a duration (e.g. 40s, 5m). |
| --stop-key | Hotkey to stop recording (e.g. ctrl-x); overrides config. |
| --shell | Shell to record (default: $SHELL). |
| --cwd | Working directory for the recorded shell. |
Record a single command without a long-lived session.
| flag | description |
|---|---|
| --name | Recording name (required). |
| --cwd | Working directory for the recorded command. |
// sessions
List recorded sessions, newest first.
| flag | description |
|---|---|
| --root | Sessions directory to list. |
Replay a recorded session in the terminal with original timing.
| flag | description |
|---|---|
| --speed | Playback speed multiplier (default 1.0). |
Show the commands extracted from a recorded session.
| flag | description |
|---|---|
| --json | Emit the extracted commands as JSON. |
// exporting
Export a recorded session to any supported format.
| flag | description |
|---|---|
| --to | Format: cast · json · markdown · script · gif · mp4 (default cast). |
| -o, --output | Write to a specific file path. |
| --size | mp4 size preset: 720p or 1080p (default 720p). |
| --redact | Redact secrets in the export. |
| --no-redact | Disable redaction even if enabled in config. |
// handoff
Generate an AI-ready context bundle from a session.
| flag | description |
|---|---|
| --include-git | Include git status and diff context. |
| --include-tree | Include a repository tree snapshot. |
| --include-logs | Include captured session logs. |
| --copy | Copy the context to the clipboard. |
// memory
Store a durable project memory for later agents or sessions.
| flag | description |
|---|---|
| --agent | Agent name to associate with the memory. |
| --session | Named Rekord session to link this memory to. |
Search project memory.
| flag | description |
|---|---|
| --agent | Limit results to memories from one agent. |
Print continuation context from the latest relevant project memory and snapshot.
| flag | description |
|---|---|
| --agent | Resume context for one agent. |
| --from-agent | Read context created by another agent. |
| --to-agent | Format handoff context for the next agent. |
| --session | Resume from a named Rekord session. |
Capture a git-aware stopping point with changed files and full patches.
| flag | description |
|---|---|
| --agent | Agent name to associate with the snapshot. |
| --session | Named Rekord session to link this snapshot to. |
Add a project memory using the full memory command namespace.
List project memories.
Search project memories.
Show one project memory by id.
Mark a memory or blocker resolved.
// security
Scan a session for possible secrets before you share it.
| flag | description |
|---|---|
| --strict | Exit non-zero if any secrets are found. |
// tmux
Show whether the current shell is inside tmux.
Capture a tmux pane's current contents as a session.
| flag | description |
|---|---|
| --pane | tmux pane or session target (required). |
| --name | Recording name (required). |
Stream a tmux pane into a recording via pipe-pane.
| flag | description |
|---|---|
| --pane | tmux pane or session target (required). |
| --name | Recording name (required). |
Create a tmux session, record it, and attach.
| flag | description |
|---|---|
| --session | tmux session name (required). |
// skills
List available recording recipes, built-in and local.
| flag | description |
|---|---|
| --skills-dir | Local skills directory (default .rekord/skills). |
Run a skill recipe and record it as a session.
| flag | description |
|---|---|
| --name | Recording name (defaults to the skill name). |
| --skills-dir | Local skills directory (default .rekord/skills). |
// ai & automation
Run a Model Context Protocol server over stdio so AI agents can drive terminals.
| flag | description |
|---|---|
| --root | Sessions directory (default ~/.rekord/sessions). |
| --config | Config file with redaction patterns. |
| --no-redact | Disable redaction of captures and logs. |
Launch a detached, named background session reachable over a unix socket.
| flag | description |
|---|---|
| --name | Session name (required). |
| --cols | Terminal width in columns. |
| --rows | Terminal height in rows. |
| --cwd | Working directory for the program. |
Send text and/or named keys to a running session.
| flag | description |
|---|---|
| --name | Session name (required). |
| --key | Named key to send (e.g. enter, ctrl-c); repeatable. |
Print the current screen frame of a session.
| flag | description |
|---|---|
| --name | Session name (required). |
| --format | Output format: text or json (default text). |
Block until a session matches text, goes idle, or exits.
| flag | description |
|---|---|
| --name | Session name (required). |
| --text | Wait until the screen contains this text. |
| --idle | Wait until output is quiet for a duration. |
| --exit | Wait until the process exits. |
| --timeout | Give up after a duration. |
Show the state of one running session.
| flag | description |
|---|---|
| --name | Session name (required). |
List all running detached sessions.
Terminate a session and finalize its recording.
| flag | description |
|---|---|
| --name | Session name (required). |
// system
View and edit the resolved rekord configuration.
| flag | description |
|---|---|
| get | Print a config value (recording.stopKey, privacy.redact). |
| set | Set a config value, creating rekord.yaml if needed. |
| view | Print the merged configuration. |
| path | Print the resolved config file path. |
Check for optional external tools (agg for gif, ffmpeg for mp4).
Print the Rekord version.