command not found: testsprite
command not found: testsprite
PATH. Check node --version (20.19+, 22.13+, or 24+; 21.x and 23.x are unsupported), then run npm install -g @testsprite/testsprite-cli, or use npx @testsprite/testsprite-cli --version.Auth error (exit 3) / AUTH_FORBIDDEN
Auth error (exit 3) / AUTH_FORBIDDEN
testsprite auth status to check the active key, workspace and scopes. If the key is invalid, configure a current one with testsprite setup --no-agent. In CI, TESTSPRITE_API_KEY overrides a profile’s saved key. If the command reports AUTH_FORBIDDEN, compare details.requiredScope with the key’s granted scopes and ask a workspace Admin or Owner to check your access. Authentication and ScopesAn older command or flag exits 5
An older command or flag exits 5
testsprite --version and testsprite --help. In 0.17, use testsprite run --project "$PROJECT_ID" --wait to run a project, testsprite run "$TEST_ID" --wait for a test, and testsprite run --testlist "$LIST_ID" --wait for a list. Request test changes with plan and approve them with apply. Use result list and result get to read outcomes. If your coding agent keeps suggesting old commands, run testsprite agent status and refresh its target with testsprite agent install <target> --force.An environment URL is rejected (exit 5 or 13)
An environment URL is rejected (exit 5 or 13)
project env create or project env update. Use a public HTTP(S) address, or a frontend loopback HTTP origin with an explicit port and no path, such as http://localhost:3000. An unsupported private address, HTTPS loopback, or backend loopback is a validation error. Creating an environment over your plan’s limit returns FEATURE_GATED (exit 13).To change an existing default named staging, use testsprite project env update "$PROJECT_ID" staging --url https://staging.example.com. For work on your machine, see Local Apps.The launch rejects --target-url (exit 5 or 6)
The launch rejects --target-url (exit 5 or 6)
--local flag, or an unreachable target. If the CLI’s reachability probe is wrong for your network, --skip-preflight skips it. An ordinary backend launch uses its saved environment’s API URL.For frontend-auth-target-origin-mismatch (exit 6), the target and the origin required by the environment’s recorded session, OTP or login-once step differ. Use an environment configured for the target origin. List launches always take their target from the list’s saved bindings. EnvironmentsThe run timed out (exit 7)
The run timed out (exit 7)
- Public run or a borrowed tunnel that is still open. Read
.runs[].runIdfrom the partial JSON and follow it withtestsprite run wait "$RUN_ID" --timeout 900. Later integration results may still be pending. - Tunnel opened by this command. The CLI requests cancellation by default and closes its tunnel. Read the reported outcome. If the execution is still running,
testsprite run cancel "$RUN_ID"stops it. Start a new local run to reopen a tunnel. - Unsupported execution status. If the error says the server cannot report whole-execution status, a longer timeout cannot supply it. Check that your configured endpoint supports CLI 0.17.
A result was not found (exit 4), or evidence is incomplete (exit 10)
A result was not found (exit 4), or evidence is incomplete (exit 10)
run wait and run cancel take a run ID. result get takes a result ID. Run testsprite result list --run "$RUN_ID" --status passed,failed,running,blocked,cancelled and choose a result belonging to that execution. Confirm the active workspace with testsprite auth status if it still returns 4.Download to a dedicated directory with testsprite result get "$RESULT_ID" --out ".testsprite/results/$RESULT_ID". A partial download writes result.json and available evidence and exits 10. Retry the same result in the same directory. If a failed file was available from an earlier download of that result, the CLI keeps it and marks the entry kept: true in the download’s failed array.A launch was interrupted before it returned a run ID
A launch was interrupted before it returned a run ID
unconfirmedProjects may already have launched. Replay the complete original command with the returned retryIdempotencyKey as --idempotency-key. Use run wait for any known run IDs. Output & ScriptingA tunnel launch rejects the concurrency setting (exit 5)
A tunnel launch rejects the concurrency setting (exit 5)
--max-concurrency between 1 and 15. A saved list through a tunnel accepts 1–10. Both default to 5. Specify the limit on the launch.Tunnel limit reached (exit 11)
Tunnel limit reached (exit 11)
testsprite tunnel list, then testsprite tunnel stop <client-id> for an unused binding. You can also attach a run to an existing tunnel with --tunnel-client. Revoking all your bindings with tunnel stop --all --confirm also affects other terminals and CI jobs using them.Rate limited (exit 11)
Rate limited (exit 11)
run wait deadline returns exit 7. Resume the wait with the existing run ID.Insufficient credits (exit 12)
Insufficient credits (exit 12)
testsprite usage shows which workspace the key draws on and its balance. An Admin or the Owner of that workspace buys extra credits from Workspace Settings → Billing → Usage in the web portal.Workspace paused (exit 13)
Workspace paused (exit 13)
details.reason: "paused", while the key’s workspace is paused: its paid subscription ended while the workspace still needed a paid plan. auth status and usage show the notice and a billing link. Topping up doesn’t resume it; the Owner renews, picks another plan, or downgrades to Free from Settings → Plan. See Plans and Pausing.Preview a command without running it
Preview a command without running it
--dry-run --output json to preview requests or sample data. When credentials are configured and no target is explicit, a launch preview may read saved environment metadata to check for an automatic tunnel. It starts no run.Still stuck?
Discord
Issues & feature requests
In the terminal
testsprite --help or testsprite <command> --help.