A command-line interface for Scout Monitoring. Explore metrics, endpoints, traces, errors, and insights from the terminal.
Built in Go with Cobra, Lipgloss, BubbleTea, and asciigraph.
brew install scoutapp/tap/scout-cliPre-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 traces list --endpoint YXBpL21ldHJpY3Mvc2hvdw== --app 6
scout traces show 12345 --app 6scout errors list --app 6
scout errors show 50560 --app 6
scout errors occurrences 50560 --app 6scout 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 (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) |
--no-color |
Disable colors (also respects NO_COLOR env) |
Config 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