25m, 1h30m).
pomo
Start a Pomodoro work session with optional custom duration.Arguments
Duration for the work session in Go duration format (e.g.,
25m, 1h, 45m30s). If omitted, uses the work.duration value from your configuration file.Duration for the break session in Go duration format. If omitted, uses the
break.duration value from your configuration file.Examples
Behavior
- Launches an interactive terminal UI with a countdown timer
- Displays ASCII art timer (if enabled in configuration)
- Shows progress bar and elapsed time
- Sends desktop notification when session completes
- After completion, prompts to start break session (based on
onSessionEndconfig)
Error handling
If an invalid duration is provided, Pomo will:- Print an error message:
invalid duration: '<value>' - Display command usage information
- Exit with code 1
pomo break
Start a Pomodoro break session immediately, skipping the work session.Arguments
Duration for the break session in Go duration format (e.g.,
5m, 15m). If omitted, uses the break.duration value from your configuration file.Examples
Behavior
- Immediately starts a break timer without requiring a work session first
- Useful when you need a quick break or want to test break notifications
- Follows same UI and notification behavior as regular break sessions
pomo stats
Display Pomodoro statistics and productivity metrics in an interactive terminal UI.Arguments
This command accepts no arguments.Behavior
- Opens a full-screen terminal interface showing your Pomodoro history
- Displays productivity metrics and session summaries
- Statistics are tracked across all your Pomodoro sessions
- Press
qorCtrl+Cto exit the stats view
Examples
pomo —version
Display the current version of Pomo.Output
Prints the version number in the format:Exit codes
Pomo uses the following exit codes:| Code | Meaning |
|---|---|
| 0 | Success - command completed normally |
| 1 | Error - invalid arguments, config errors, or runtime failures |
Duration format
All duration arguments use Go’stime.ParseDuration format:
s- seconds (e.g.,30s)m- minutes (e.g.,25m)h- hours (e.g.,1h)- Combined formats (e.g.,
1h30m,2h15m30s)
Duration values must be valid Go duration strings. Invalid formats like
25 (missing unit) or 1.5h (decimal hours) will cause an error.Environment variables
Enable debug logging to
debug.log file. Set to 1 to enable debug mode.Configuration file location
Pomo searches forpomo.yaml in the following locations (in order):
- Current working directory
~/.config/pomo/pomo.yaml(Linux/macOS)- User config directory on other platforms