qatech CLI
qatech is the official command-line tool for QA.tech. It lets you run end-to-end tests, inspect results, expose local servers via tunnels, and chat with the QA.tech agent - all from the terminal.
The CLI is designed to be agent-friendly: every command supports --json output, --help with copy-pasteable examples, and exits non-zero on failure so AI coding agents can drive it reliably from your terminal.
Install
Quick start
Get an API key
Sign in at app.qa.tech → Settings → Integrations → API.
Commands
| Command | Description |
|---|---|
configure | Set up API credentials |
test-cases | List and search test cases |
applications | List applications in the project |
environments | List environments for an application |
run | Start a test run |
status | Check or wait for a run’s results |
chat | Chat with the QA.tech agent |
tunnel | Expose local ports via tunnels |
init | Generate Claude Code subagent and skill files |
qatech <command> --help for detailed flags on any command.
Configuration resolution
The CLI resolves credentials in this order - first match wins:--api-keyflag (per-command override)QATECH_API_KEYenvironment variable.qatech/config.jsonin the current directory (project-local)~/.qatech/config.json(global fallback)
| Environment variable | Description |
|---|---|
QATECH_API_KEY | API key |
QATECH_API_URL | API base URL (default: https://api.qa.tech) |
QATECH_DEBUG | Set to 1 for stack traces on errors |
Output conventions
- stdout → data (JSON or human-readable results)
- stderr → progress messages, errors, hints
- With
--json, stdout is always valid JSON - safe to pipe tojq - Errors with
--jsonare also JSON:{ "error": true, "message": "...", "statusCode": 401 }
jq cleanly: