Skip to main content
Ask AI

CLI Reference

testrelic-deepeval installs a single command-line entry point: testrelic (not testrelic-deepeval).

Commands

CommandPurpose
testrelic loginSave credentials (to ~/.testrelic/credentials.toml) — supports --api-key <key> and --base-url <url>
testrelic logoutRemove credentials
testrelic test <path>Run deepeval test run <path> with a credential check
testrelic view [run_id]Open the latest (or a specific) eval run in the browser
testrelic drainReplay queued offline uploads
testrelic versionPrint the SDK version
testrelic migrate-from-confidentPrint migration steps from Confident AI

Usage examples

Authenticate

Terminal
testrelic login

Pass values non-interactively:

Terminal
testrelic login --api-key <key> --base-url <url>

Credentials are written to ~/.testrelic/credentials.toml (mode 0600 on POSIX).

Sign out

Terminal
testrelic logout

Run an evaluation

testrelic test wraps deepeval test run <path> and first checks that credentials are available:

Terminal
testrelic test tests/

Open a run

Open the latest eval run in your browser:

Terminal
testrelic view

Open a specific run by ID:

Terminal
testrelic view <run_id>

Replay the offline queue

When uploads can't be delivered, they're written to the offline queue at ~/.testrelic/queue/. Replay them once connectivity is restored:

Terminal
testrelic drain

drain reads the queued uploads from ~/.testrelic/queue/ and re-sends them to the cloud. Successfully delivered items are cleared from the queue.

Terminal
testrelic version

Migrate from Confident AI

Print step-by-step migration guidance:

Terminal
testrelic migrate-from-confident

Files and locations

PathPurpose
~/.testrelic/credentials.tomlSaved credentials (mode 0600 on POSIX)
~/.testrelic/queue/Offline upload queue (replayed by testrelic drain)

Next steps