Skip to main content
A project is the top-level container: a name, a type (frontend or backend), and named environments with the URLs TestSprite opens. Every test belongs to one project. Projects are shared with the Web Portal.

Listing and getting projects

project get prints the same fields plus the default environment and environment count. --page-size <n> (1–100, default 25), --starting-token <token> (the nextToken printed under a full page) and --max-items <n> page through results.

Creating a project

For local apps, see Test an app on your machine. If project create --local exits 7 (local-origin-requires-v3), your account is not on the current project platform yet: create the project in the Portal or with --url. A backend project can be created without --url, but on the V3 execution path its first run fails with exit 5 (no-target-resolvable) until you run testsprite project update <project-id> --url <url>. Check your routing with testsprite auth status.
Outside loopback, --url must be a public http(s) address; private IPs are refused, and the backend also checks DNS. Backend tests and test rerun cannot tunnel. See Common Issues if a URL is rejected.

Updating a project

Pass at least one flag, or the command exits 5. It accepts the same flags as create (--name, --url, --local, --skip-preflight, --username, --password, --password-file, --instruction, --test-id-attributes, --idempotency-key) plus --clear-test-id-attributes, which removes the list so the engine falls back to data-testid; --test-id-attributes replaces it. --local is frontend only; some older projects cannot be switched and exit 7 (local-origin-requires-native-project), so create a new project with --local. For separate deployment targets, use named environments (project env create, --env, --target-url), which also cover plan limits.

Backend test credentials

Inject auth into every backend test run, either a static credential or an auto-refreshed token:
See the Command Reference for all flags.

Where to Go Next

Creating Tests

Author a frontend plan or backend code file

Running Tests

Trigger runs and poll for verdicts