Ask AI in your terminal.
The same Ask AI agent the TestRelic web app runs — in a Claude Code-style inline terminal UI, written in Rust. Streamed markdown, live tool activity, dashboards and reports rendered right in your scrollback, and a full MCP host.
Install in under a minute
One line and you're talking to your tests.
Then run testrelic login and start asking. The CLI defaults to production — point it elsewhere with testrelic config set baseUrl ….
$ curl -fsSL https://testrelic.ai/install.sh | sh
Pin a version with TESTRELIC_VERSION=v0.2.0 · supports Linux x86_64/arm64, macOS arm64/x86_64, Windows x86_64
Everything the web Ask AI does — in your shell
A real agent, not a chat box.
Built for the terminal from the ground up — streaming, tools, confirmations, and artifacts, with the keybindings you already know.
Artifacts render in your terminal
New Relic-grade dashboards with KPI billboards, sparklines and braille charts, plus reports, test plans, navigation paths, and heat-colored tables — drawn directly into scrollback, streaming as they generate.
A full MCP host
Add local MCP servers (stdio or HTTP, Claude-Code-compatible .mcp.json). Their tools are advertised to the cloud agent per request and executed locally when it calls them.
@-context and ! shell mode
Type @ to attach repos, runs, branches, test cases, environments, suites, or tags as context chips. Type ! to run a local command — its output attaches to your next message.
Slash commands
/resume past conversations, /artifacts to browse and view any artifact, /export to markdown, plus /doctor, /repos, /memory, /usage, /tools, /mcp, /theme, and more.
Claude Code-parity input
Ctrl+R reverse history search that persists across sessions, message queueing while a turn streams, kill-ring editing, draft stashing, and an optional vim mode with motions and dot-repeat.
Headless print mode
Pipe-friendly output for scripts and CI: -p with --output-format text, json, or stream-json. Artifacts render ANSI on a tty and plain when piped. --resume and --continue keep context.
Two modes · one binary
Drive it by hand or wire it into CI.
The same testrelic binary — also available as tr and ask-ai.
testrelicAn inline terminal UI that scrolls into native scrollback — no alt-screen. Streamed markdown, live tool activity, confirmations, and artifacts. Prefers your logged-in session.
- Approve / reject destructive tools inline
- @-context chips and ! shell mode
- Slash commands, themes, vim mode
testrelic -p "…"Pipes welcome. One-shot answers for scripts and CI with --output-format text, json, or stream-json. Artifacts render ANSI on a tty and plain when piped. Prefers a PAT.
- --resume <id> and --continue / -c
- stdin piping into the prompt
- Deterministic, machine-readable output
Session login
testrelic login — email/password via the encrypted challenge flow. Cookies persist and auto-refresh; full parity with the web app, including interactive confirmations.
Personal access token
testrelic login --token tr_mcp_… (or TESTRELIC_MCP_TOKEN) — the same token convention as @testrelic/mcp, ideal for headless and CI.
Built for the terminal
One fast binary. Runs anywhere.
A single native binary written in Rust — no Node, Python, or other runtime to install. Prebuilt for Linux, macOS, and Windows and dropped onto your PATH by the one-line installer. The agent runs in the TestRelic cloud; the CLI streams it to your terminal and hosts your local MCP tools. Its ~/.testrelic config and token are shared with @testrelic/mcp.
Your tests, one prompt away
Bring Ask AI to your terminal.
Install in one line, run testrelic login, and start asking your test data anything — interactively or piped into CI.
testrelic · tr · ask-ai · docs.testrelic.ai/cli