qa-use
QA automation CLI for browser testing and E2E test management.


Quick Start
# Install globally
npm install -g @desplega.ai/qa-use
# Or use with npx
npx @desplega.ai/qa-use setup
Getting Started
1. Setup
qa-use setup # Configure your API key
qa-use test init # Initialize test directory with example
2. Create Your First Test
Create qa-tests/login.yaml:
name: Login Test
app_config: your-app-config-id
steps:
- action: goto
url: /login
- action: fill
target: email input
value: [email protected]
- action: click
target: login button
- action: to_be_visible
target: dashboard
3. Run Tests
qa-use test run login # Run single test
qa-use test run --all # Run all tests
CLI Reference
Test Commands
| Command | Description |
|---|
qa-use test init | Initialize test directory with example |
qa-use test run <name> | Run a test by name |
qa-use test run --all | Run all tests in qa-tests/ |
qa-use test list | List local tests |
qa-use test list --cloud | List cloud tests |
qa-use test validate <name> | Validate test syntax |
qa-use test sync --push | Push local tests to cloud |
qa-use test sync --pull | Pull cloud tests to local |
qa-use test export <id> | Export cloud test to local file |
Run qa-use test --help for all options.
Filename suffix (≥ 2.17). pull writes one file per cloud test as ${safe-name}-${short-id}.yaml, where ${short-id} is the first 8 hex chars of the test UUID. Test names can collide within an org by design, so the suffix guarantees one local file per cloud row. If you upgrade from an earlier version, the next pull will write new suffixed files alongside any legacy un-suffixed file you had — qa-use prints a one-line Legacy file: … notice per orphan and never auto-deletes. Inspect the legacy file's id: field; remove it manually once you've confirmed it's not load-bearing.
Browser Commands
Interactive browser control for test development and debugging:
qa-use browser create # Start browser session
qa-use browser goto https://example.com
qa-use browser snapshot # Get element refs like [ref=e3]
qa-use browser click e3 # Click by element ref
qa-use browser fill e5 "hello" # Fill input field
qa-use browser run # Interactive REPL mode
| Command | Description |
|---|
qa-use browser create | Start browser session |
qa-use browser goto <url> | Navigate to URL |
qa-use browser snapshot | Get page element refs |
qa-use browser click <ref> | Click element by ref |
qa-use browser fill <ref> <value> | Fill input field |
qa-use browser screenshot <path> | Save screenshot |
qa-use browser run | Interactive REPL mode |
qa-use browser close | Close browser session |
qa-use browser status --list | List active sessions across processes |
Run qa-use browser --help for the full list of 29 browser commands.
Tunnel & Maintenance Commands
browser create auto-tunnels when your target is localhost and the API is remote. For standalone tunnels (or cross-process registry inspection) use qa-use tunnel:
qa-use tunnel start http://localhost:3000 --hold # Hold a public tunnel
qa-use tunnel ls # List active tunnels
qa-use tunnel status <target|hash> # Detail for one entry
qa-use tunnel close <target|hash> # Force-release a tunnel
qa-use doctor # Reap stale sessions/tunnels
qa-use doctor --dry-run # Preview what would be reaped
| Command | Description |
|---|
qa-use tunnel ls | List active tunnels in the registry |
qa-use tunnel status <target> | Show detail for a single tunnel |
qa-use tunnel close <target> | Force-release a tunnel (kills detached holder) |
qa-use doctor | Reap stale sessions/tunnels (dead PIDs) |
Note: qa-use tunnel * is the CLI-side cross-process tunnel registry, distinct from qa-use mcp tunnel which is the MCP-mode persistent tunnel wrapper (see below).
API Commands
Dynamic API access powered by live OpenAPI (/api/v1/openapi.json) with local cache fallback.