Skip to main content

Prerequisites

  • Node 20+ and npm
  • Playwright available in the project (npx playwright install if you’re starting fresh)
  • Stably account: Signup at app.stably.ai or grab an API key from Settings → API Keys

Installation

Install the Stably CLI globally:
npm install -g stably
Verify the installation:
stably --version
You can also use npx stably without global installation if you prefer. The commands below will work with both approaches. To see all available commands, run stably --help.

Step-by-step

1

Authenticate

stably login
Log in via browser when prompted or export STABLY_API_KEY. Run stably whoami to verify your authentication.
2

Create resources with AI

stably create
Create tests and other resources. The AI helps you set up Playwright tests for your application.
3

Run tests locally

stably test
Stably executes your test suite and provides detailed results with run IDs for any failures.
4

Fix failing tests

stably fix [runId]
Diagnose failures and apply AI fixes automatically. Use the run ID from failed test executions.

What you get

  • Authenticated access to Stably’s testing infrastructure
  • Playwright tests created with AI assistance, ready for version control
  • Automated fixes for test failures, locally or in the cloud

Next steps

CLI guide

Explore commands, agent workflows, and maintenance tools