Maestro Cloud Quickstart

Connect Maestro runs to the TestRelic cloud with an API key and upload configuration.

Org API key
Env or config
Maestro run with analytics
Cloud dashboard

Link your Maestro runs to TestRelic: create an account, create an API key in Settings → API Keys, and give it to testrelic-maestro. Cloud upload is optional — local reports are written either way.

Prerequisites

Provide the API key

Environment variable (recommended for CI):

export TESTRELIC_API_KEY=your_api_key_here
npx testrelic-maestro test ./flows

CLI flag: npx testrelic-maestro test --api-key your_api_key_here ./flows (also accepted by report).

Config file — .testrelic/testrelic-config.json, discovered by walking up from the working directory:

.testrelic/testrelic-config.json
{
  "cloud": {
    "apiKey": "${TESTRELIC_API_KEY}",
    "endpoint": "https://platform.testrelic.ai/api/v1",
    "upload": "batch"
  },
  "testrelic-repo": { "name": "my-mobile-app" },
  "queue": { "maxAge": "7d", "directory": ".testrelic/queue" }
}

cloud.upload is batch (default), realtime, or both. Environment variables (TESTRELIC_API_KEY, TESTRELIC_CLOUD_ENDPOINT, TESTRELIC_UPLOAD_STRATEGY, TESTRELIC_CLOUD_TIMEOUT) take priority over CLI flags, which take priority over the config file. Failed uploads are queued in .testrelic/queue and retried on the next run.

Next steps

Was this page helpful?

On this page