Quickstart
This walkthrough uses the testvibe CLI. Every step has a raw-HTTP equivalent — see the API reference — and the same operations are available to AI tools through the MCP server.
Create an API key
In the TestVibe app, open Settings → CLI & API keys and create a key. The full key (
tvb_…) is shown once — copy it now.warningTreat API keys like passwords. The key acts as you, inside your workspace.
Install the CLI and log in
With npm:
npm install -g testvibeOr without npm — download it straight from your TestVibe server (needs Node 20+):
curl -fsSL https://testvibe.app/api/v1/install.sh | sh # macOS / Linuxiwr -useb https://testvibe.app/api/v1/install.ps1 | iex # Windows PowerShellThen log in:
testvibe login --server https://testvibe.app --key tvb_XXXXXXXX…loginverifies the key against the server before saving it to~/.testvibe/config.json. See the CLI reference for all install options.Pick a project
testvibe projectstestvibe use "Acme Shop"usesets the default project for every command that follows. You can always override it per call.Create a feature
A feature is desired behavior described in Gherkin:
login.featureFeature: Login FunctionalityScenario: Valid user signs inGiven I am on the login pageWhen I sign in with valid credentialsThen I see the inventory pagetestvibe features create "Login Functionality" --file login.featureGenerate its tests
testvibe generate "Login Functionality" --watchAI generation runs in a cloud sandbox against your project's URL and takes a few minutes;
--watchstreams per-section progress until the generation finishes. It exits0only when the generation reported a successful terminal outcome —1if the generation failed,2if it stopped to ask you a question,3if it was still going when the wait ceiling elapsed (the CLI wait contract).infoGeneration consumes account credits — see Long-running operations for how dispatch + polling works.
Run the tests
testvibe run "Login Functionality" --waitThe run executes in an isolated sandbox and
--waitprints per-test results when it finishes:Run #214 passed — 3/3 tests passed (31s)✓ Valid user signs in (4.2s)✓ Invalid password is rejected (3.8s)✓ Locked-out user sees an error (3.1s)Grab the artifacts
testvibe runs artifacts 214Returns short-lived download links for the run's Playwright traces, screenshots, and videos.
Where next?
Let Claude or Codex do all of the above for you, via MCP.
Every operation across REST, CLI, and MCP.
Gate your deploys on a green TestVibe run.
Cloud API, CLI, and MCP access requires Team or higher. See authentication and access limits.
If generation pauses, answer the question with testvibe generate answer <feature> --option "<exact option>" --watch. To inspect existing work, use the generation status REST endpoint or get_generation_status / wait_for_generation in MCP. testvibe generate <feature> --watch starts a new generation; it is not a reconnect command.