A command-line interface for Scout Monitoring. Explore metrics, endpoints, background jobs, traces, errors, insights, and billing usage from the terminal.
Built in Go with Cobra, Lipgloss, BubbleTea, and asciigraph.
brew install scoutapp/tap/scout-cliOn Homebrew 6 and later, third-party taps require tap trust. The fully qualified name above trusts only the scout-cli formula, not the whole tap.
Upgrading from Homebrew 5? If brew upgrade warns that scoutapp/tap is not trusted, grant trust and upgrade again:
brew trust --formula scoutapp/tap/scout-cli # or: brew trust scoutapp/tap
brew upgrade scout-cliBrewfile / brew bundle:
brew bundle install --file=- <<'BREWFILE'
tap "scoutapp/tap"
brew "scoutapp/tap/scout-cli", trusted: true
BREWFILEUse tap "scoutapp/tap", trusted: true instead if you want to trust the whole tap.
Pre-built binaries for macOS, Linux, and Windows are available on the GitHub Releases page.
git clone https://github.com/scoutapp/scout-cli.git
cd scout-cli
go build -o scout .# Login
scout auth login --key YOUR_API_KEY
# Check auth status
scout auth status
# Clear credentials
scout auth logoutCredentials are stored in ~/.config/scout-apm/config.json. You can also set the SCOUT_API_KEY environment variable.
scout apps list
scout apps show 6scout metrics get --type response_time --app 6
scout metrics get --type throughput --app 6 --from 7dValid metric types: apdex, response_time, response_time_95th, errors, throughput, queue_time
scout endpoints list --app 6
scout endpoints metrics --endpoint YXBpL21ldHJpY3Mvc2hvdw== --type response_time --app 6scout jobs list --app 6
scout jobs metrics --job ZGVmYXVsdC9NeVdvcmtlcg== --type execution_time --app 6
scout jobs metrics --job default/MyWorker --type throughput --app 6 # queue/JobName also works
scout traces list --job ZGVmYXVsdC9NeVdvcmtlcg== --app 6Valid job metric types: throughput, execution_time, latency, errors, allocations
Job IDs are in the scout jobs list --json output (job_id), or pass the job's queue/JobName full name and the CLI encodes it for you. Job traces can be listed but not yet shown in detail (scout traces show supports endpoint traces only).
scout traces list --endpoint YXBpL21ldHJpY3Mvc2hvdw== --app 6
scout traces list --job ZGVmYXVsdC9NeVdvcmtlcg== --app 6
scout traces show 12345 --app 6scout errors list --app 6
scout errors show 50560 --app 6
scout errors occurrences 50560 --app 6scout anomalies --app 6 # List anomaly events (default: all states)
scout anomalies --app 6 --state open # Only open anomalies
scout anomalies --app 6 --metric response_time # Filter by metric
scout anomalies --app 6 --endpoint YXBpL21ldHJpY3M= # Filter by endpoint
scout anomalies show 1234 --app 6 # Detail with smart_monitor and deploy contextscout usage # Web transaction usage across all apps (last 3 hours)
scout usage --from 30d # Last 30 days
scout usage --from 7d --all # Include apps with zero usage
scout usage --by-day --from 30d # Daily totals
scout usage --by-day --by-app --from 30d # Daily breakdown per app with top endpoints
scout usage --by-day --app 6 --from 30d # Daily breakdown for one app with top endpoint
scout usage --from 14d --json # JSON output
scout usage --billing-period # Current billing period, with the server-side billed total
scout usage --by-day --by-app --billing-period # Daily per-app breakdown over the billing periodscout usage counts web transactions from the throughput metric; background jobs are excluded. The billed total, which includes jobs, is shown by scout billing and by scout usage --billing-period.
scout billing # Current billing period: APM transactions, nodes, errors, logs
scout billing --json # Raw JSON from the /usage API endpointShows the exact usage Scout bills against for the current billing period, including plan limits where they apply. scout usage estimates web transactions from throughput metrics; scout billing reports the billed figures, which also include background jobs.
scout insights list --app 6
scout insights show --type slow_query --app 6Valid insight types: n_plus_one, memory_bloat, slow_query
scout setup # List supported frameworks
scout setup rails # Show setup docs for a framework| Flag | Description |
|---|---|
--json |
Output raw JSON |
--toon |
Output in TOON format (auto-enabled when piped) |
--app <id> |
Application ID (or set default_app_id in config) |
--from <time> |
Start time — relative (1h, 7d, 30m, 2w) or ISO 8601 |
--to <time> |
End time (default: now) |
-n, --limit <n> |
Max number of results to show |
--no-color |
Disable colors (also respects NO_COLOR env) |
When output is piped, Scout CLI automatically switches to TOON format — a token-efficient structured format designed for LLM consumption. This means tools like Claude Code, scripts, and other agents get compact, parseable output by default.
# TOON output is automatic when piped
scout apps list | llm "which app has the most endpoints?"
# Force TOON in a terminal
scout metrics get --type response_time --app 6 --toon
# Use --json if you need raw JSON instead
scout metrics get --type response_time --app 6 --jsonConfig file: ~/.config/scout-apm/config.json
{
"api_key": "your-api-key",
"api_url": "https://scoutapm.com",
"default_app_id": 6
}Environment variable overrides: SCOUT_API_KEY, SCOUT_API_URL.
go test ./...scout completion bash # Bash
scout completion zsh # Zsh
scout completion fish # Fish- Scout Monitoring — Application performance monitoring
- Documentation
- GitHub Releases