Skip to main content
A project holds a suite of frontend tests for a web app or backend tests for an API. The CLI and the Portal share the same projects. Each project has its own agent, test cases, and named environments.

Find a project

Use an ID from project list as PROJECT_ID. If your workspace has several pages of projects, pass the returned nextToken to --starting-token or use --max-items to read across pages. To use a project across commands, export TESTSPRITE_PROJECT_ID.

Create a project and its first environment

Create the project first. Copy its projectId from the JSON output, then add the URL where your app is running. The first environment becomes the default.
For an API, choose --type backend and give the environment the API’s base URL. For a frontend app running on your machine, start it and use --local <port> when creating the environment. A new project starts without tests. Once the target is ready, ask its agent for the first cases. Creating Tests

Update project settings

--instruction replaces the project’s extra instructions. For frontend projects, list the DOM attributes your app uses for stable element selection in priority order. --clear-test-id-attributes restores the default. To change the app URL or its test account, update the environment. Environments