Configuration
config command
testrelic config set baseUrl https://stage.testrelic.ai/api/v1
testrelic config set statusLine "<your-statusline-command>"
File locations
| Path | Purpose |
|---|---|
~/.testrelic/cookies.json | Persisted session cookies (from testrelic login). |
~/.testrelic/token | Personal access token, if you store it on disk. |
~/.testrelic/mcp.json | Global MCP server config. |
./.mcp.json | Project 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