CLI Reference
Ox provides an interactive command-line interface for analyzing your training logs.
Installation
The CLI is included when you install ox:
Basic Usage
Start the interactive analyzer by providing your training log file:
You'll see a prompt like this:
Commands
stats
Show summary statistics for all exercises in your log.
Usage:
Output:
Training Statistics
Exercise Sessions Total Reps Last Session
squat 12 180 2024-01-20
bench-press 10 150 2024-01-19
kb-swing 8 600 2024-01-18
pullup 15 300 2024-01-21
Total sessions: 45
Unique exercises: 12
history
Show detailed training history for a specific exercise.
Usage:
Example:
Output:
History: squat
Date Sets × Reps Top Weight Volume
2024-01-15 5 + 5 + 5 + 5 + 5 135 lbs 3375 lb
2024-01-17 5 + 5 + 5 + 5 + 5 140 lbs 3500 lb
2024-01-19 5 + 5 + 5 + 5 + 5 145 lbs 3625 lb
Notes:
- Exercise names must match exactly (case-sensitive)
- Use the name as it appears in your log (e.g., kb-swing, not kettlebell swing)
help
Display available commands.
Usage:
exit or quit
Exit the program.
Usage:
or
Keyboard Shortcuts
- Tab - Auto-complete commands
- Ctrl+C - Cancel current input (doesn't exit)
- Ctrl+D - Exit the program
- Up/Down arrows - Navigate command history
Command-Line Options
Version
Show the installed version:
Help
Show command-line help:
Output:
Usage: ox [OPTIONS] FILE
Interactive training log analyzer.
FILE: Path to training log file
Options:
--version Show the version and exit.
--help Show this message and exit.
Examples
Analyze Your Training Log
$ ox ~/training/2024.ox
Loading /home/user/training/2024.ox...
✓ Loaded 156 sessions
Type 'help' for commands, 'exit' to quit
ox> stats
Check Exercise Progression
This shows your deadlift history, making it easy to see if you're progressing over time.
Multiple Logs
Want to analyze different time periods? Just run ox with different files:
Tips
Use Consistent Naming
The CLI is case-sensitive and matches exercise names exactly:
Use consistent naming in your log for best results.
Tab Completion
Press Tab to complete commands:
Quick Analysis Workflow
- Open your training log in your text editor
- Add today's workout
- Save the file
- Run
ox training.oxin a terminal - Use
historyto check progress - Keep training!
Troubleshooting
File Not Found
Solution: Make sure the file path is correct:
Parse Errors
If the CLI fails to load your file, check for syntax errors:
- Dates must be
YYYY-MM-DDformat - Exercise names can't have spaces
- Sessions must have
@sessionand@endtags
See the syntax documentation for details.
No History Found
Solution: Check your spelling! Exercise names must match exactly. Use stats to see all exercise names in your log.
Future Commands
Commands planned for future releases:
compare EXERCISE1 EXERCISE2- Compare two exercisesweekly- Show weekly summaryvolume- Show total volume over timeexport- Export data to CSV/JSONgraph EXERCISE- Show ASCII graph of progression
Have ideas for new commands? Open an issue!