CLI reference
Most of the time Claude Code runs these commands for you: paste Set up Qaila for this project: follow qaila.app/setup into Claude Code and it sets everything up. This page is for checking what Claude is doing, and for running Qaila yourself or in CI.
Run it without installing, as npx -y @qaila/cli@latest <command>, or install it in your project with npm i -D @qaila/cli. It needs Node.js 24 or later and Claude Code. Run test commands inside your Qaila folder (usually qaila/, next to qaila.config.json).
Commands marked Uses Claude start tester sessions in Claude Code on your own Claude plan or API key. Dollar figures are estimated Claude usage, not Qaila charges.
Quick start
# check Node, Claude Code and the browser
qaila doctor
# connect this machine to your workspace
qaila login
# create qaila/qaila.config.json
qaila init --app shop --url http://localhost:3000
# link the folder to a Qaila project
cd qaila && qaila link --create
# check the app is reachable and sign-ins work
qaila preflight
# map the app (no Claude usage)
qaila map --out brain
# see the prioritised missions
qaila plan
# run missions in isolated tester sessions
qaila run --out runs/first --budget 8 --only M01,M02
# write a fix brief for Claude Code
qaila fix F-0012
# mark it fixed
qaila fixed F-0012 --note "…"
# check fixes with a fresh tester
qaila retestSet up
Get a machine and an app folder ready. Claude Code runs these for you during setup.
qaila guide
Print the setup guide for Claude Code to follow.
qaila guide [--org <slug>] [--server <url>]The same guide as qaila.app/setup: Claude Code reads it and sets Qaila up with you, step by step.
| Option | What it does |
|---|---|
--org <slug> | Your Qaila workspace, filled into the guide's link step. |
--server <url> | The Qaila server. Default: https://qaila.app |
qaila doctor
Check this machine has what Qaila needs (Node, Claude Code, a browser).
qaila doctorAlso reports the Qaila sign-in and, inside an app folder, whether it's linked to a project.
qaila install-browser
Install the browser Qaila's testers use (Chromium, about 150 MB).
qaila install-browserqaila init
Create qaila/qaila.config.json for this app.
qaila init --app <name> --url <app url> [--api <api url>] [--dir qaila]Also writes qaila/.env for test-account passwords and a .gitignore that keeps secrets, runs and the local map out of git. Edit the config afterwards to add roles, test accounts and the environment.
| Option | What it does |
|---|---|
--app <name> | The app's name. |
--url <url> | Where the app runs, e.g. http://localhost:3000. |
--api <url> | The API's base URL, if it's separate. |
--start-route <path> | The page testers start from. Default: the path of --url |
--dir <folder> | Where to create the config. Default: qaila |
--force | Overwrite an existing config. |
qaila init --app shop --url http://localhost:3000Qaila account
Connect this machine to your Qaila workspace, and link the app folder to a project so runs record there.
qaila login
Connect this machine to Qaila (opens your browser to approve).
qaila login [--server <url>] [--no-browser]Shows a code to approve in your browser. The sign-in is saved in your home folder, readable only by you.
| Option | What it does |
|---|---|
--server <url> | The Qaila server. Default: https://qaila.app |
--no-browser | Print the link instead of opening it. |
qaila logout
Forget this machine's Qaila sign-in.
qaila logout [--server <url>]| Option | What it does |
|---|---|
--server <url> | The Qaila server. Default: https://qaila.app |
qaila whoami
Show who you're signed in as, and your workspaces and projects.
qaila whoami [--server <url>]| Option | What it does |
|---|---|
--server <url> | The Qaila server. Default: https://qaila.app |
qaila link
Link this app folder to a Qaila project, so runs record to the cloud.
qaila link [--org <slug>] [--project <slug>] [--create] [--name <name>]After linking, findings, questions, coverage and runs from this folder go to the project in Qaila, and the app map is uploaded.
| Option | What it does |
|---|---|
--org <slug> | The workspace. Not needed if you belong to only one. |
--project <slug> | The project. Default: the app's name |
--create | Create the project if it doesn't exist (owners and admins). |
--name <name> | Display name for a new project. |
--server <url> | The Qaila server. Default: https://qaila.app |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila link --createqaila unlink
Stop recording this folder's runs to the cloud.
qaila unlink| Option | What it does |
|---|---|
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila push-map
Upload this folder's app map to its Qaila project.
qaila push-map [--brain brain]| Option | What it does |
|---|---|
--brain <folder> | Where the map is. Default: brain |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila status
Show sign-in and link status.
qaila status [--server <url>]| Option | What it does |
|---|---|
--server <url> | The Qaila server. Default: https://qaila.app |
Test
Check the environment, map the app, plan missions and run them. Commands that start testers use Claude (estimated usage is shown first).
qaila preflight
Check the environment is healthy enough to test (app, API, sign-ins, health checks).
qaila preflightRun it before testing: a broken environment would otherwise show up as false findings. Linked folders report the result to the project's setup checklist.
| Option | What it does |
|---|---|
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
--hash-routing | The app uses #/ routes (detected from the map when there is one). |
qaila map
Map the app, read-only and without using Claude.
qaila map [--out brain] [--recipes brain/recipes.json --only a,b]Crawls every page each role can reach and records pages, controls, forms, API calls and who can access what. Writes brain/app-map.json, a summary and screenshots.
| Option | What it does |
|---|---|
--out <folder> | Where to write the map. Default: brain |
--recipes <path> | Replay recipes from qaila cartograph to add the states they reach. |
--only <names> | With --recipes: only these recipes (comma-separated). |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila map --out brain
qaila map --out brain --recipes brain/recipes.jsonqaila cartographUses Claude
Find pages and states that link-crawling can't reach, and write recipes for them.
qaila cartograph --map brain/app-map.json --out brain/recipes.json [--budget 3]One tester session explores behind actions (dialogs, wizards, created data) and writes replayable, verified recipes. Replay them into the map with qaila map --recipes. About $2–3 of estimated Claude usage.
| Option | What it does |
|---|---|
--map <path> | The current app map. |
--out <path> | Where to write the recipes. |
--budget <dollars> | Claude usage limit for the session. Default: 3 |
--no-verify | Skip replaying each recipe to check it. |
--ledger <path> | A local coverage ledger to steer towards unexplored areas. |
--engine <executor|playwright-mcp> | The browser tool the tester uses. Default: executor |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila plan
Show the prioritised missions for the next run.
qaila plan [--map brain/app-map.json]Missions are an area of the app combined with a testing style (look, touch, API, requirements, discover, charters). Areas the team has already covered rank lower.
| Option | What it does |
|---|---|
--map <path> | The app map to plan from. Default: brain/app-map.json |
--ledger <path> | A local coverage ledger (unlinked folders). Default: brain/ledger.json |
--local | Use the local findings database (brain/findings.db) even if this folder is linked to Qaila. |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila runUses Claude
Run missions in isolated tester sessions.
qaila run --out runs/<id> [--budget 15] [--mission-budget 2] [--only M01,M02]Each mission runs in its own headless Claude Code session with only the browser and findings tools, never your repository. Findings are recorded live and de-duplicated; a mission that hasn't covered its area is resumed with the gaps. Pre-flight runs first.
| Option | What it does |
|---|---|
--out <folder> | Where to write the run (one folder per run, e.g. runs/20261204-1030-planned). |
--map <path> | The app map to plan from. Default: brain/app-map.json |
--budget <dollars> | Claude usage limit for the whole run. Default: 15 |
--mission-budget <dollars> | Claude usage limit per mission. Without it: mission_budget in qaila.config.json, then the project's setting on Qaila, then 1.5. Default: 1.5 |
--only <ids> | Run only these missions (comma-separated, from qaila plan). |
--max-missions <n> | Stop after this many missions. |
--max-resumes <n> | How many times a mission may be resumed to cover its gaps. Default: 2 |
--before-mission <command> | A shell command to run before each mission, e.g. to reset test data. |
--model <id> | The Claude model for testers. Without it, Claude Code's default model is used. |
--label <text> | A label for the run. |
--skip-preflight | Don't check the environment first. |
--no-consolidate | Skip the pass that merges re-worded duplicate findings. |
--engine <executor|playwright-mcp> | The browser tool testers use. Default: executor |
--findings-db <path> | Local findings database (unlinked folders). Default: brain/findings.db |
--local | Use the local findings database (brain/findings.db) even if this folder is linked to Qaila. |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila run --out runs/$(date +%Y%m%d-%H%M%S)-planned --budget 8 --only M01,M02,M03Fix
Hand findings to the developer's Claude Code, mark them fixed, and retest them independently.
qaila fix
List findings ready to fix, or write a fix brief for each one named.
qaila fix [F-0012 …] [--ready]With no ids, lists confirmed and regressed findings, most severe first. With ids, writes fixes/<id>.md for each: steps, expected and actual results, screenshots (downloaded from Qaila), related findings and the team's relevant answers, plus how to fix and mark it. Claude Code works from these briefs.
| Option | What it does |
|---|---|
--ready | Write briefs for every finding ready to fix (up to --limit). |
--limit <n> | With --ready: at most this many. Default: 10 |
--status <list> | Which statuses count as ready (comma-separated). Default: confirmed,regressed |
--quiet | Print only the brief files' paths. |
--force | Write a brief for a named finding that nobody has confirmed yet (briefs are for confirmed or regressed findings by default). |
--db <path> | Local findings database (unlinked folders). Default: brain/findings.db |
--local | Use the local findings database (brain/findings.db) even if this folder is linked to Qaila. |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila fix
qaila fix F-0012 F-0013qaila fixed
Mark findings fixed once the code has changed, so they can be retested.
qaila fixed F-0012 [F-0013 …] --note "what changed"Sets the status to "fix claimed" with your note for the team. The note is never shown to the retesting tester.
| Option | What it does |
|---|---|
--note <text> | One line on what you changed (required). |
--local | Use the local findings database (brain/findings.db) even if this folder is linked to Qaila. |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila fixed F-0012 --note "Start screen re-reads the project list after clearing"qaila ticket
Raise a finding as a ticket in your issue tracker.
qaila ticket F-0012 [--github [--repo owner/name]] [--link <url>]On its own, prints the finding written up as a ticket (title and Markdown), to paste into any tracker. With --github, creates the issue using GitHub's own `gh` command, signed in as you, and links it to the finding; Qaila is never given access to the repository. The repository is the one named with --repo, else the one set for the project in Qaila, else the one this folder belongs to. In a linked folder this needs a plan that includes ticket export.
| Option | What it does |
|---|---|
--github | Create a GitHub issue with `gh` and link it to the finding. |
--repo <owner/name> | With --github: the repository to create the issue in. |
--again | With --github: create an issue even though the finding already has a ticket. |
--link <url> | Record a ticket that already exists, without creating anything. |
--db <path> | Local findings database (unlinked folders). Default: brain/findings.db |
--local | Use the local findings database (brain/findings.db) even if this folder is linked to Qaila. |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila ticket F-0012
qaila ticket F-0012 --github
qaila ticket F-0012 --link https://linear.app/acme/issue/ENG-123qaila retestUses Claude
Retest fixed findings with a fresh tester that never sees the fix.
qaila retest [F-0012,F-0013] [--budget 5]One isolated mission per finding: the tester gets only the original finding, reproduces it, then probes the paths around it. Each finding comes back verified, or reopened with new evidence. With no ids, retests every finding marked fixed. Retests don't count towards your plan's monthly runs. About $0.40–1 of estimated Claude usage per finding.
| Option | What it does |
|---|---|
--budget <dollars> | Claude usage limit for all retests. Default: 5 |
--mission-budget <dollars> | Claude usage limit per finding. Default: 1 |
--out <folder> | Where to write the retest run. Default: runs/<time>-retest |
--map <path> | The app map to plan from. Default: brain/app-map.json |
--skip-preflight | Don't check the environment first. |
--local | Use the local findings database (brain/findings.db) even if this folder is linked to Qaila. |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila retest
qaila retest F-0012,F-0013Knowledge
Ask what Qaila's testers have learned about how the app behaves, from the terminal or from your coding agent, and ask them to find out what nobody knows yet.
qaila knowledge
Show what Qaila knows about how the app behaves, or ask testers to find something out.
qaila knowledge [words …] [--feature <name>] [--show <standings>] | K-0004 | features | explore "<question>" | explorations | drop X-0003Statements are grouped by feature, each with its standing: intended (confirmed by your team), seen (what a tester saw the app do, not yet confirmed), a bug, or not sure. `qaila knowledge K-0004` shows what each tester wrote and the statement's history. When nothing answers your question, `qaila knowledge explore "…"` asks Qaila's testers to find out: the next `qaila run` plans a focused mission for it, and the tester's notes appear here. Reading never changes anything.
| Option | What it does |
|---|---|
--feature <name> | Only this feature's statements; with explore, the feature the question is about. |
--show <list> | Only these standings (comma-separated: intended, seen, bug, unsure, retired), or all. Default: everything but retired |
--page <route> | With explore: the page the tester should start from. |
--all | With explorations: past requests too. |
--json | Print JSON (for scripts and agents). |
--db <path> | Local findings database (unlinked folders). Default: brain/findings.db |
--local | Use the local findings database (brain/findings.db) even if this folder is linked to Qaila. |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila knowledge playlist
qaila knowledge --feature "Playlist editor" --show intended
qaila knowledge K-0004
qaila knowledge explore "What happens to a playlist when one of its videos is deleted?" --feature "Playlist editor"qaila mcp
Run a read-only MCP server so your coding agent can ask what Qaila knows about the app.
qaila mcpAdd it to Claude Code once, in the app's repository: `claude mcp add qaila -- npx -y @qaila/cli@latest mcp`. Your agent can then search statements, read one in full, list features and see questions waiting for testers. It is told to cite statement ids, to say whether each is confirmed or only seen, and, when nothing answers a question, to offer you `qaila knowledge explore` rather than guess. It can't change anything.
| Option | What it does |
|---|---|
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
claude mcp add qaila -- npx -y @qaila/cli@latest mcpAdvanced
Lower-level tools, mostly for troubleshooting and imports.
qaila coverage
Measure what one or more runs covered.
qaila coverage --map brain/app-map.json <run folder> …Writes coverage.json into each run folder and prints a comparison: pages visited and inspected, controls used, API paths and pages outside the map.
| Option | What it does |
|---|---|
--map <path> | The app map. |
--config <path> | The project's qaila.config.json. By default, the one in this folder or in ./qaila/. |
qaila dedupeUses Claude
Merge re-worded duplicate findings with a model pass.
qaila dedupe --db <findings.db | project URL> [--run <id>]qaila run does this automatically at the end of a run. Merges are reversible in Qaila.
| Option | What it does |
|---|---|
--db <target> | A local findings database, or the project's Qaila API URL. |
--run <id> | Only findings seen in this run. |
--model <id> | The model to use. Default: sonnet |
--dry-run | Show what would be merged without changing anything. |
qaila import-findings
Import findings.json files from older runs into a findings database.
qaila import-findings --db <findings.db> [--map app-map.json] <run folder> …| Option | What it does |
|---|---|
--db <path> | The findings database to import into. |
--map <path> | The app map, to resolve pages. |
--label-prefix <text> | Prefix for labels from benchmark matches. |
Everywhere
qaila --version | Print the version. |
qaila help [command] | List the commands, or show one command's options. |
qaila <command> --help | Show that command's options. |
A .env file next to qaila.config.json is loaded first, so test-account passwords can live there and be referenced from the config as env:VAR.