Install and set up
From your repository root, install the CLI, paste your key into the setup prompt and confirm the workspace. If you’re already set up, start withauth status. Installation.
Find or create a project
projectId.
testsprite project env list "$PROJECT_ID" shows the saved names you can use.
Request and review a plan
Ask the project’s TestSprite agent to propose one test. It works on the project’s default environment, herestaging. --steps shows what the proposed test would do and assert.

testsprite reply "your answer". If it needs more time, follow it with testsprite status --wait --steps. Review the proposed actions and expected outcome. To request a revision, use testsprite reject "what should change".
When the conversation shows the test plan you want to save, apply it from the same directory. The JSON field applied.tests contains the saved test IDs.
Run the saved test
Copy the test ID fromapplied.tests. Start the test against staging and wait for the verdict.
runs[].runId identifies the execution. Each test that produced a result has its own results[].resultId. A completed passing run exits 0. A completed failed run exits 1 and still prints the results. If your wait times out, use testsprite run wait <run-id> to resume following the execution. Running tests.
Inspect the result
Use the run ID to list the execution’s results. Copy the result ID for the case you want to examine.testsprite --dry-run result get res_dryrun0001 --output json.
result get means the CLI read the result. Check testStatus for the verdict. Use --out to keep the detail and available video, screenshots and page snapshots for this result.
Coding agent integration
Give your coding agent the same verification workflow.
Reading results
Find earlier results and inspect sign-in or API failures.