Skip to main content
Ask AI

Configuration

config command

testrelic config set baseUrl https://stage.testrelic.ai/api/v1
testrelic config set statusLine "<your-statusline-command>"

File locations

PathPurpose
~/.testrelic/cookies.jsonPersisted session cookies (from testrelic login).
~/.testrelic/tokenPersonal access token, if you store it on disk.
~/.testrelic/mcp.jsonGlobal MCP server config.
./.mcp.jsonProject MCP server config (wins on name collisions).

The ~/.testrelic/ directory and its mcp.json + token are shared with @testrelic/mcp, so a token you already use for MCP works here too.

Backend URL

The CLI defaults to production. Override it three ways — see Authentication:

testrelic config set baseUrl https://stage.testrelic.ai/api/v1   # persisted
testrelic --base-url https://stage.testrelic.ai/api/v1 # per-invocation
export TESTRELIC_CLOUD_URL=https://stage.testrelic.ai/api/v1 # environment

Appearance & editing

  • /theme — switch between dark, light, and ascii themes.
  • /vim — toggle vim editing mode.
  • /keybindings — view and customize keybindings.
  • testrelic config set statusLine <cmd> — render your own statusline script.

Terminal notes (Windows)

  • Built for Windows Terminal; legacy conhost falls back to an ASCII glyph set.
  • Key handling filters key-press events (Windows also delivers release events).

Diagnostics

testrelic doctor

Next steps

Overview · Quickstart

Was this page helpful?
Last updated on by Srivishnu Ayyagari