CLI Reference
Usage
Opens an interactive REPL. Parse errors are summarized on load — run lint for details.
Commands
plugins
List available plugins with their descriptions and usage strings.
Running a plugin
Invoke a plugin by name. Plugins receive the parsed log plus a SQLite connection and return a table, text, or plot.
Typing a plugin's name with no args prints its usage. See Plugins for details.
query SQL
Run raw SQL against the training database. Use named queries defined in your .ox file or write inline SQL.
ox> query SELECT * FROM sessions LIMIT 10
ox> query SELECT movement_name, COUNT(*) FROM movements GROUP BY movement_name
tables [-h]
List database tables and views. Use -h to show column details.
lint
Show parse errors in the log file. Common mistakes are named, with the fix:
ox> lint
Line 12, col 31: Unknown unit `lbs`: use `lb`
Line 40, col 6: Curly quote: use a straight double quote (")
Line 57, col 0: sRPE line is `srpe: <whole-number rating> <duration> ["note"]`, e.g. `srpe: 5 PT45M`
Anything else is reported as Syntax error. The LSP shows the same messages in your editor.
reload
Re-parse the log file from disk.
help
Show available commands.
exit / quit
Exit the REPL. Ctrl+D also works.
Keyboard Shortcuts
| Key | Action |
|---|---|
| Tab | Auto-complete commands |
| Ctrl+C | Cancel current input |
| Ctrl+D | Exit |
| Up/Down | Command history |