Skip to main content
The TraceRoot CLI wraps the TraceRoot API so you can work with your project directly from the terminal — list, inspect, and export traces, then pipe the JSON into whatever comes next. It is built for AI coding agents and power users who prefer the command line. Full source and reference live in the traceroot-cli repo.

Install

Authenticate

This validates your project API key and saves it locally, so later commands need no flags. Create API keys in TraceRoot Cloud or your self-hosted dashboard. For CI or scripts, set environment variables instead — the same ones the SDKs use:
.env
Confirm the credentials resolve to the right place:

Inspect and export traces

Command reference

Add --json to any command for machine-readable output, or run traceroot <command> --help for the full flag list.

What’s next

Tracing

Instrument your app so traces show up for the CLI to read.

TraceRoot Cloud

Create API keys and open traces in the web app.