Skip to main content

Scout CLI

Scout CLI brings observability workflows to your terminal. Authenticate with the Scout platform to query logs, metrics, traces, alerts, and service topology — or use the open-source config commands to validate, generate, and test OpenTelemetry Collector configurations without a backend.

Platform Commands

These commands require authentication with a Scout backend.

CommandDescription
loginAuthenticate with the Scout platform
logoutRemove stored credentials
statusCheck authentication status
contextManage multiple account contexts
alertsQuery alert history
logsQuery service logs
metricsQuery service metrics
tracesQuery distributed traces
service-mapVisualize service topology

Open Source Commands

These commands work entirely offline with no Scout account required.

CommandDescription
config validateValidate an OTel Collector YAML config
config initGenerate a production-ready OTel Collector config
config testLive-test an OTel Collector config
No account needed

The scout config commands are fully open source. You can validate, generate, and test OpenTelemetry Collector configurations without signing up for Scout.

Quick Start

Platform users — authenticate and start querying:

scout login --account my-org
scout logs payment-service --since 10m
scout traces payment-service --status Error

Open-source users — generate and validate a collector config:

scout config init
scout config validate --file otel-collector-config.yaml
scout config test --file otel-collector-config.yaml

Global Flags

Every command accepts these flags:

FlagDescription
-v, --verboseEnable verbose debug logging to stderr
-a, --account <NAME>Override the active account context

See Global Flags for details.

See Also

Was this page helpful?