TestRelic CLI · v0.2.0New

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.

Linux · macOS · WindowsInteractive + headless print modeFull MCP host · single binary
testrelic — Ask AI
why did the nightly regress?
⏺ query_runs(suite: "nightly", window: "7d")
⎿ 142 runs · 3 newly failing
The nightly suite dropped to 94.2% pass rate after deploy #4891 — checkout.spec.ts broke on a stale selector.
Dashboard · nightly health
94.2%
Pass rate
6
Flaky
4.2h
MTTR

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 ….

sh
Installs the testrelic binary (plus the tr and ask-ai shortcuts) to ~/.testrelic/bin and adds it to your PATH.
$ 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.

testrelic
show nightly health
◫ dashboard · nightly health
94.2% pass · 6 flaky · 4.2h mttr

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.

testrelic mcp
$ testrelic mcp add fs -- npx …everything
fs connected · 4 tools advertised

@-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.

testrelic
@checkout-repo @run:4891 summarize
! git log --oneline -5

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.

testrelic
/
/artifacts /export /resume
/doctor /memory /usage …

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.

testrelic
bck-i-search: night▮
↳ why did the nightly regress?

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.

bash
$ tr -p "why did the nightly regress?" \
--output-format json
{ "answer": "…", "artifacts": […] }

Two modes · one binary

Drive it by hand or wire it into CI.

The same testrelic binary — also available as tr and ask-ai.

Interactive
testrelic

An 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
Print (headless)
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.

Built in
Rust
One fast native binary — no runtime to install.
Platforms
x86_64 and arm64 prebuilt targets.
Install
~/.testrelic/bin
One line, added to your PATH.
Modes
Interactive + print
Inline TUI, or pipe-friendly headless for CI.

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.

$ curl -fsSL https://testrelic.ai/install.sh | sh

testrelic · tr · ask-ai · docs.testrelic.ai/cli