Maestro Cloud Quickstart
Connect Maestro runs to the TestRelic cloud with an API key and upload configuration.
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
- testrelic.ai account
- API key with permission to upload runs for your org (see API Keys)
@testrelic/maestro-analyticsinstalled (see Get Started)
Provide the API key
Environment variable (recommended for CI):
export TESTRELIC_API_KEY=your_api_key_here
npx testrelic-maestro test ./flowsCLI 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:
{
"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
- Cloud Platform Quickstart (Playwright) for the same org-level patterns
- Choose Framework to compare Playwright, Appium, and Maestro paths