TestRelic AI
Go to App
CLI

Artifacts & headless output

How the CLI renders dashboards, reports, and test plans in the terminal, plus the artifacts subcommand and the print-mode output formats for scripts and CI.

Terminal-native artifacts

Every artifact the agent produces renders directly in your terminal — New Relic-grade and streamed as it generates:

  • Dashboards — aligned KPI billboards with trend arrows, sparklines, threshold status colors, braille line charts, horizontal block bars, proportional pie bars, and heat-colored tables.
  • Reports — a hero card plus sections and entity deep links.
  • Test plans — priority badges.
  • Navigation paths — coverage gauge, step flows with slow-step highlighting, and user-path funnels with drop-off markers.
  • Data tables, code, and session workspace deep-link cards.

Live generation shows a streaming progress line, for example ◫ generating dashboard · "nightly health" · 3 widgets, and the full block lands in scrollback exactly once.

Terminal~/shop-e2e
build a nightly health dashboard
generating dashboard · “Nightly Health” · 4 widgets
Nightly Health dashboard · v1
┌─ ● Pass Rate ──────────┐ ┌─ ● Flaky Tests ────────┐ ┌─ ● p95 Duration ───────┐
94.2% ↑ 3.5%17 ↓ 22.7%42.3s → 0.4%
▁▂▂▃▄▅▆▇█ target 90.0%█▇▆▅▃▂▁▁ ▄▅▄▄▅▄▅▄
└────────────────────────┘ └───────────────────────┘ └───────────────────────┘
Pass rate trend ──────────────────────────────────────────
98.9 ⠀⠀⠀⠀⢀⡠⠊⠉⠑⠢⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠉⠉⠒⠤⣀⣀⠤⠔⠊⠁
94.6 ⠤⠒⠉⠁⠀⠀⠀⠀⠀⠀⠈⠒⢄⠀⠀⠀⠀⠀⠀⠀⢀⡠⠤⠒⠒⠊⠉⠁
90.2 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⠤⠤⠤⠔⠊⠁
Jul 08 Jul 21 Aug 04
Failures by suite ────────────────────────────────────────
checkout ████████████▌ 42
auth ██████▊ 23
search ███▎ 11
profile █▊ 6

Browse artifacts in the UI

Use /artifacts in the interactive UI to browse and view any artifact from the conversation in full.

The artifacts subcommand

testrelic artifacts list
testrelic artifacts show <id>
testrelic artifacts export <id> --format md|txt|json|png|pdf

Share & export

Beyond exporting to a file, report artifacts can be shared via a link — Google-Drive-style sharing with either a public link (anyone with the URL) or a private link (restricted to your org). Use this to hand a dashboard or report to a teammate without re-running the query.

Headless / print mode

Run a one-shot query with -p (alias --print) and choose an output format:

testrelic -p "why did the nightly regress?" --output-format text
tr -p "list newly failing tests" --output-format json
tr -p "stream the triage" --output-format stream-json
  • --output-format accepts text, json, or stream-json.
  • Artifacts render as ANSI on a tty and as plain text when piped.
  • --resume <id> and --continue / -c carry context across runs.
  • stdin is piped into the prompt, so the CLI composes with other Unix tools.
git diff | tr -p "do these changes risk the checkout suite?"

Next steps

Slash commands · Configuration

Was this page helpful?

On this page