# Command reference

Source: https://testis.dev/docs/commands

> Every testis command and its options: set up, test your app with the AI tester, read the report, file bugs, sign in and manage models.

Global options work with every command: `-C, --cwd <dir>` (act as if started in this folder), `-o, --output <pretty|json>`, `-V, --version`, `-h, --help`. Run `testis <command> --help` for the same information in your terminal.

## Setting up

| Command | What it does |
| --- | --- |
| `testis setup` | Guided AI setup: pick a provider, paste a key, choose a model, test it. |
| `testis configure` | Open the setup page in your browser: the address (port) of your app, how it starts, the test logins and your PRD. Filled in with what Testis found. `--no-open` prints the address instead. |
| `testis init [--api <url>] [--cli alias=command] [--web] [--force]` | Read the project and create `.testis/config.yaml`: how to start the app, its address, test logins and safety settings. The same as the setup page, without a browser. |
| `testis inspect` | Read the project and show how Testis would start it, sign in, reset its data and keep it safe. Changes nothing. |
| `testis prd prompt` | Print (and copy) the prompt that gets your coding assistant to write `PRD.md`: what your app should do, which the tester checks against. `--no-copy` only prints it. |
| `testis doctor` | Check that this machine is ready (Node, browser, project). |
| `testis install-browsers` | Download the browser used for web apps (once, about 150 MB). The first test does it by itself. |
| `testis update [--check] [--disable] [--enable]` | Update the CLI; check only; turn update notices off or on. |

## Testing

| Command | What it does |
| --- | --- |
| `testis test [focus...]` | The AI tester reads your PRD, writes its own to-do list and uses your app like a person: it clicks, types, signs in with your test logins, uploads files it makes, calls your API and runs your programs. It records what works and what is broken, with the text it saw and a screenshot. Give a focus to test one part: `testis test "the checkout"`. Options: `--web`, `--api`, `--cli` (only that side), `--minutes <n>` (stop after this long, default 90), `--headed` (show the browser), `--no-open` (do not open the report), `-e <env>`, `--base-url <url>`, `--no-start`, `--no-sync`, `--max-credits <n>`. Ctrl-C stops after the current step and still writes the report. |
| `testis report [runId]` | Show the latest report (or another run's) and open it. `-f html\|md\|json`, `--no-open`. See [Reading a report](/docs/reports). |
| `testis issue <bug>` | File bug number `<bug>` of the latest report in GitHub Issues, Jira or Linear (set up under `integrations`). `--print` shows the text only; `--to <github\|jira\|linear>`. See [Issue trackers and Slack](/docs/integrations). |

`--max-credits` caps hosted-AI spend for the run (10,000 credits = $1).

## Chat and coding agents

| Command | What it does |
| --- | --- |
| `testis` | Open the chat. Say "test my app", or type `/` for shortcuts. |
| `testis -p "<request>"` | Answer one request and exit. `--yes`, `--allow <tool>` (repeatable). |
| `testis menu` | A simple menu of actions, no chat. |
| `testis mcp` | Serve Testis to a coding agent over MCP. |
| `testis agent install` | Connect Claude Code and Cursor. `--agent claude\|cursor\|agents`, `--dry-run`, `--force`. |

## AI models

| Command | What it does |
| --- | --- |
| `testis models list` | Providers, key status, and which model serves each role. |
| `testis models add <name>` | Add a provider (DeepSeek, Groq, OpenRouter, Ollama, or anthropic/openai/google). |
| `testis models use --all <provider/model>` | Choose models. Or per role: `judge=...` (the tester) and `planner=...` (writes the to-do list). `--global` saves for all projects. |
| `testis models fallback <provider/model>` | Switch to this model if credits or quota run out. `--off` removes it. |
| `testis models test [target]` | Check that a model answers and returns structured output. |
| `testis models remove <name>` | Remove a provider and its stored key. |

## Cloud

| Command | What it does |
| --- | --- |
| `testis login [--api-url <url>] [--no-browser]` | Sign in. Opens your browser; nothing to paste. |
| `testis logout` | Sign out on this machine. |
| `testis whoami` | Who you are, your plan and AI credit. |
| `testis credits` | Credit balance, this month's use and recent activity. |
| `testis link [project]` | Link this project to a dashboard project. |
| `testis sync [runId]` | Upload a saved run (default: the latest). |

## Exit codes

`0` no bugs found · `1` bugs found · `2` configuration problem · `3` environment problem (the app or the AI could not be reached) · `4` internal error.

## Environment variables

| Variable | Effect |
| --- | --- |
| `TESTIS_TOKEN` | Sign in with an access token (for CI). |
| `TESTIS_API_URL` | Use a different cloud address. |
| `TESTIS_PROJECT` | The dashboard project to upload to. |
| `TESTIS_NO_UPDATE_CHECK=1` | Never check for a newer CLI version. |
| `TESTIS_HOME` | Where Testis keeps your settings and keys (default `~/.testis`). |
