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://YOUR-TESTVIBE-SERVER/api/v1/install.sh | sh # macOS / Linuxiwr -useb https://YOUR-TESTVIBE-SERVER/api/v1/install.ps1 | iex # Windows PowerShellThen log in:
testvibe login --server https://YOUR-TESTVIBE-SERVER --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 feature reaches thegeneratedstatus.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.