CLI Commands
Complete reference for all predictor.sh CLI commands.
Global Flags
These flags work with all commands:
--verbose, -v
Enable debug output
--version
Show version
--help, -h
Show help
Authentication
predictor login
Authenticate with predictor.sh.
predictor login [--token <key>]--token <key>
Use API key directly (skip OAuth)
Without --token, opens browser for OAuth device flow.
predictor logout
Clear stored credentials.
predictor whoami
Show logged-in user.
Configuration
predictor init
Generate predictor.yaml interactively.
Prompts for model path, settings, and creates configuration file.
Tunnel Operations
predictor up
Start tunnel and serve model.
--model <path>
Local model file
-
--hf <id>
HuggingFace model ID
-
--port <n>
Local port
8000
--cpu
Force CPU-only mode
false
--verbose
Enable debug output
false
--raw-logs
Output logs to stdout (no TUI)
false
--config <path>
Config file path
predictor.yaml
Examples:
predictor down
Stop tunnel gracefully.
--force
Force-mark all endpoints as offline
predictor url
Print public endpoint URL.
predictor status
Show endpoint status.
Model Management
predictor pull
Download model from HuggingFace without starting server.
--hf <id>
HuggingFace model ID (required)
--file <pattern>
Download specific files
--revision <ref>
Specific revision/branch
Examples:
predictor benchmark
Benchmark model performance.
--model <path>
Local model file
-
--hf <id>
HuggingFace model ID
-
--tokens <n>
Tokens to generate
128
--runs <n>
Benchmark runs to average
3
--json
Output as JSON
false
Examples:
Observability
predictor logs
View request logs.
--format <fmt>
Output format (human or json)
human
--follow, -f
Stream new logs
false
--since <duration>
Time range (e.g., "1h", "30m")
-
--limit, -n <n>
Max logs to show
-
Examples:
predictor usage
Show current usage vs tier limits.
Token Management
predictor token show
Show endpoint auth token.
--reveal
Show full token (default: masked)
predictor token rotate
Generate new token (revokes old one).
This immediately invalidates the old token. Update all clients.
Exit Codes
0
Success
1
General error
2
Authentication error
3
Configuration error
4
Network error
Last updated