Introduction
Thepeon command-line interface provides complete control over PeonPing sounds, notifications, sound packs, and settings. All commands work across macOS, Linux, WSL2, and Windows.
Command Structure
Global Behavior
Configuration Location
Commands read and write to different config locations depending on install mode:- Global install:
~/.claude/hooks/peon-ping/config.json - Local install:
./.claude/hooks/peon-ping/config.json(project-specific)
State Persistence
All CLI changes persist immediately:- Volume changes apply to the next sound
- Pack switching takes effect on the next session
- Pause/resume state persists across terminal sessions
Tab Completion
PeonPing supports intelligent tab completion for bash and fish shells.Enable Completion
Completion is automatically installed byinstall.sh / install.ps1. If you need to enable it manually:
Bash:
What Gets Completed
Command Categories
Commands are organized into logical groups:| Category | Commands | Purpose |
|---|---|---|
| Sound Control | toggle, pause, resume, volume, preview | Mute, adjust volume, test sounds |
| Pack Management | packs list/install/use/next/bind/remove | Download, switch, and assign packs |
| Notifications | notifications on/off/overlay/standard/position/template | Configure desktop popups |
| Trainer | trainer on/off/status/log/goal | Exercise reminder system |
| Relay | relay --daemon/--stop/--status/--port | Remote audio server for SSH/containers |
| Status | status | Show current configuration and state |
Exit Codes
All commands follow standard POSIX exit codes:0— Success1— General error (invalid argument, file not found, etc.)2— Misuse (wrong number of arguments)
Environment Variables
Some commands respect environment variables:| Variable | Purpose | Example |
|---|---|---|
PEON_RELAY_PORT | Override relay port | PEON_RELAY_PORT=12345 |
PEON_RELAY_HOST | Override relay host | PEON_RELAY_HOST=192.168.1.100 |
CLAUDE_CONFIG_DIR | Override config directory | CLAUDE_CONFIG_DIR=~/.myconfig |
Getting Help
Most commands show usage when run without arguments:Next Steps
- Sound Control Commands — Toggle, volume, preview
- Pack Management — Install, switch, and bind packs
- Notifications — Configure desktop popups
- Trainer — Exercise reminders
- Relay — Remote audio for SSH/containers