Skip to content

Spotlight CLI

The Spotlight CLI (spotlight) integrates Spotlight into your terminal workflow. Wrap your app to automatically capture telemetry, or stream events directly to your terminal.

Why Use the CLI?

  • Automatic instrumentation: spotlight run sets up environment variables and captures output automatically
  • Real-time streaming: View errors, logs, and traces directly in your terminal
  • Multiple output formats: Human-readable, JSON, logfmt, or Markdown
  • Docker Compose support: Auto-injects configuration into containerized services
  • Scriptable: Perfect for CI/CD pipelines and automation

Installation

No installation needed:

Terminal window
npx @spotlightjs/spotlight run

Commands

CLI vs Desktop App

CLIDesktop App
Best forTerminal workflows, automationVisual debugging, dedicated window
PlatformAll (via Node.js or binary)macOS (Win/Linux coming soon)
OutputTerminal + browser UIBuilt-in UI
FeaturesWrap apps, stream to files, CI/CDAuto-updates, native experience

Learn more about Desktop App →

Reference