CLI Reference
Complete reference for all jolt commands and options.
Global Options
Section titled “Global Options”| Option | Short | Description |
|---|---|---|
--help | -h | Show help information |
--version | -V | Show version |
Commands
Section titled “Commands”jolt / jolt ui
Section titled “jolt / jolt ui”Launch the interactive TUI.
joltThe TUI is the default command and can be configured via the config file. See Configuration for details on themes, refresh rates, and other settings.
jolt pipe
Section titled “jolt pipe”Output metrics as JSON for scripting.
jolt pipe [OPTIONS]| Option | Short | Default | Description |
|---|---|---|---|
--samples | -s | 0 | Number of samples (0 = infinite) |
--interval | -i | 1000 | Interval between samples (ms) |
--compact | -c | false | One-line JSON output (JSONL) |
Examples:
# Single samplejolt pipe --samples 1
# Continuous at 500msjolt pipe --interval 500
# Compact JSONL formatjolt pipe --compactjolt debug
Section titled “jolt debug”Print system and battery information for troubleshooting.
jolt debugShows:
- System model and chip
- macOS version
- Battery information source
- Power metrics availability
- Terminal capabilities
jolt config
Section titled “jolt config”Manage configuration.
jolt config [OPTIONS]| Option | Description |
|---|---|
| (none) | Show current config |
--path | Show config file path |
--reset | Reset to defaults |
--edit | Open in $EDITOR |
Examples:
# Show current configjolt config
# Show config file pathjolt config --path
# Reset to defaultsjolt config --reset
# Open in editorjolt config --editjolt theme
Section titled “jolt theme”Manage themes.
jolt theme <SUBCOMMAND>jolt theme list
Section titled “jolt theme list”List available themes.
jolt theme list [OPTIONS]| Option | Description |
|---|---|
--iterm2 | List importable iTerm2 themes |
--search <QUERY> | Search themes by name |
--variant <VARIANT> | Filter by variant: dark, light, all |
jolt theme check
Section titled “jolt theme check”Validate themes for contrast issues.
jolt theme check [OPTIONS]| Option | Description |
|---|---|
--theme <NAME> | Check specific theme |
--fix | Attempt to auto-fix issues |
jolt theme import
Section titled “jolt theme import”Import an iTerm2 theme.
jolt theme import <NAME>jolt theme create
Section titled “jolt theme create”Create a new theme from template.
jolt theme create <NAME>jolt theme open
Section titled “jolt theme open”Open themes folder in file manager.
jolt theme openOpens the themes directory in Finder (macOS) or default file manager (Linux):
- macOS:
~/Library/Application Support/jolt/themes/ - Linux:
~/.config/jolt/themes/
jolt daemon
Section titled “jolt daemon”Manage background data collection.
jolt daemon <SUBCOMMAND>jolt daemon start
Section titled “jolt daemon start”Start the background daemon.
jolt daemon start [OPTIONS]| Option | Description |
|---|---|
-f, --foreground | Run in foreground (don’t daemonize) |
jolt daemon stop
Section titled “jolt daemon stop”Stop the running daemon.
jolt daemon stopjolt daemon status
Section titled “jolt daemon status”Show daemon status.
jolt daemon statusjolt daemon install
Section titled “jolt daemon install”Install daemon to run on login (macOS only).
jolt daemon install [OPTIONS]| Option | Description |
|---|---|
-f, --force | Overwrite existing LaunchAgent |
jolt daemon uninstall
Section titled “jolt daemon uninstall”Remove daemon from login items.
jolt daemon uninstalljolt logs
Section titled “jolt logs”View application logs.
jolt logs [OPTIONS]| Option | Short | Default | Description |
|---|---|---|---|
--lines <LINES> | -l | 50 | Number of lines to show |
--follow | -f | false | Follow log output |
Examples:
# Show last 50 linesjolt logs
# Show last 100 linesjolt logs --lines 100
# Follow logs in real-timejolt logs --followjolt history
Section titled “jolt history”View and manage historical data.
jolt history <SUBCOMMAND>jolt history summary
Section titled “jolt history summary”Show data summary.
jolt history summary [OPTIONS]| Option | Description |
|---|---|
--period <PERIOD> | Time period: today, week, month, all |
jolt history top
Section titled “jolt history top”Show top power consumers.
jolt history top [OPTIONS]| Option | Default | Description |
|---|---|---|
--limit | 10 | Number of results |
--period | week | Time period |
--sort | energy | Sort by: energy, cpu, time |
jolt history export
Section titled “jolt history export”Export data to JSON.
jolt history export [OPTIONS]| Option | Description |
|---|---|
--output <FILE> | Output file (- for stdout) |
--period <PERIOD> | Time period to export |
--include-processes | Include process snapshots |
jolt history prune
Section titled “jolt history prune”Remove old data.
jolt history prune [OPTIONS]| Option | Description |
|---|---|
--older-than <DAYS> | Delete data older than N days |
--dry-run | Show what would be deleted |
jolt history clear
Section titled “jolt history clear”Delete all historical data.
jolt history clear [--force]Exit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |
| 3 | Permission denied |
| 4 | Daemon not running |
| 5 | Config error |
Environment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
JOLT_CONFIG | Custom config file path |
JOLT_THEME | Override theme |
JOLT_APPEARANCE | Override appearance mode |
JOLT_LOG_LEVEL | Logging level (error, warn, info, debug) |
NO_COLOR | Disable colored output |