---
title: "The terminal"
description: "What npx xovris does from your terminal - Xovris reviews a change before you push, with every fix proven by your own tests; fixes only what you accept, with an undo or on a branch of its own; and serves as an MCP server for your coding agent."
url: https://xovris.ai/docs/start/terminal/
---

# The terminal

Run any command with `npx xovris@latest <command>` - there is nothing to install first.

## Review and fix before you push

`npx xovris review` reviews the change you have not committed yet (`--staged` only what is staged, `--committed` the commits since your branch began). `--prove` proves every fix it found with your repository's own tests on a copy and writes nothing, so you see the exact patch first.

`npx xovris fix` writes the fixes only when your tests pass with all of them, and keeps the undo inside `.git`. `--finding <id>` fixes only the findings you accept. `--branch` puts the proven fixes in a commit on a branch of their own and leaves your checkout as it is. A patch that would weaken the code - a check removed, an error hidden - is refused, and nothing is written.

## Xovris beside your coding agent

`npx xovris mcp` runs Xovris as an MCP server on your machine, for the repository your agent works in - see [Install with your coding agent](/docs/connect/coding-agent/#on-your-own-machine).

## Every command

The terminal has 34 commands, each run as `npx xovris@latest <command>` with nothing to install first. It also answers `languages`, which its own help does not describe yet.

| Command | What it does |
| --- | --- |
| `init` | Detect your stack, sign in through your browser, write the configuration and verify (default) |
| `agents` | Connect the coding agents on this computer to Xovris: every one found is named with its own add, one question for all of them, and each is read back once added (init offers the same; --agents offers it with no terminal); agents remove takes Xovris out of each again by its own remove, every other server of theirs kept |
| `discover` | Read this project - versions, what already watches it, where it is hosted - and say the setup path; changes nothing (--json for a script) |
| `receipt verify <file>` | Check a fix's signed receipt is genuine and unchanged (--key <pem>) |
| `sourcemaps <folder>` | After a build: mark each built file and send its source map, so errors read as your own code (--project <id>) |
| `mapping <mapping.txt>` | After an Android or JVM release build: send its R8 or ProGuard mapping, so crashes read as your own code (--uuid <id>, --project <id>) |
| `symbols <path>` | After an iOS, macOS, Android NDK or Linux build: send every debug file under it (each .dSYM, each unstripped library), so native crashes read as your own code (--project <id>) |
| `scan <address>` | Read a site from the outside - its stack, host, DNS and mail - and show the whole setup in one screen |
| `verify` | Check that events from this app are stored |
| `secrets` | Read what is about to be committed for keys and passwords, or the files named; exit 1 holds the commit (--history reads every commit on every branch and tag; --install-hook puts it in this repository's pre-commit hook, the one there kept; --json) |
| `deploy-guard` | Before a release: exit 0 to ship, 1 to hold, read from every promised journey's error budget (--change fix\|security, --json) |
| `remove` | Revoke this app's key and undo every change the wizard made |
| `pr` | Open the setup as a pull request through the Xovris GitHub App (--repo owner/name) |
| `review` | Review your changes before you push: uncommitted (default), --staged, or --committed --base <ref>; --agent prints JSON for a coding agent; --fix applies only fixes your tests prove (--test "<command>"), undone with --undo-review <id> |
| `fix` | Fix every finding the review made in one pass, written only when your own tests prove the whole (undo: --undo-review <id>); --json for an editor, --sarif for a code host; the exit code is 0 when nothing is left to fix; --take-back <id> takes one fix back alone, the rest proved again before anything is written --live <file\|url> also checks the change against what is true where the code runs (variables set, tables and columns, flags, names that answer, what the service account may do, limits nearly reached) |
| `tests <module>` | Write tests for a module's exported functions, each kept only when it passes on your code and an executed mutant of the function makes it fail; --write adds them through the gate, --json for a script |
| `touches <module>` | Documentation, safe simplifications and your team's recipes, one at a time, each kept only when --test <file> still passes on it and still catches a mutant; --write makes the first, the rest are worked out again on the new code |
| `merge <pr\|branch>...` | A merge queue: each pull request (by number, fetched from the remote) or branch merged on top of the ones ahead of it, the tests run on that exact commit before the base moves; one that conflicts or goes red is taken out with why and the rest carry on (--base <branch>, --test "<command>", --push moves the remote's base under a lease, --remote <name>, --json) |
| `review --prove` | Prove every fix the review found with the repository's own tests on a copy, and write nothing |
| `fix --finding <id>` | Fix only the findings you accept (repeatable), proven together before anything is written |
| `fix --branch` | Put the proven fixes in a commit on a branch of their own (xovris/fixes-<commit>); this checkout stays as it is |
| `mcp [--allow off\|prove\|branch\|apply]` | Xovris as an MCP server for a coding agent on this machine (the agent starts it with npx xovris mcp): review_change with every fix proven, fix_change, undo_fix and fix_audit; what it may write is the narrower of --allow and .xovris.yaml fixes:, and every call is kept in .git/xovris-audit.jsonl |
| `review --stack` | Show the stack of branches this one sits in, each layer's own change against the one below |
| `review --team <dir>` | Also hold a change to what a package exports to another repository that uses it (repeatable); the repositories beside this one whose package.json depends on it are found and checked without being named |
| `resolve [file...]` | After a merge stops on conflicts: each hunk resolved only where both sides' intent provably survives, the --test <file> run on the result, and written (--write) and staged only when every file resolves and the test passes |
| `trace` | From an error where your code runs to its line, the commit it came in with and that commit's pull request: --error <file\|-> the error as it was seen (a stack, or an event with its request); --fix proves a fix against the request that failed and writes it; --passing <file> requests that were served and must stay so; --open opens it as a pull request; --follow <id> --log <file> reads the error back after shipping (--revert takes the fix back) |
| `code "<job>"` | Hand Xovris any coding job in words - in a connected or public repository (--repo owner/name) or, without one, as a new project; each step is shown as it lands, and it ends proven (the pull request, or the change) or with what blocked it |
| `ai` | The models you can pick, each with what a million tokens draw (ai list); the one your code commands use (ai use <model> --effort <level>, or ai use auto); what a piece of work draws before it runs (ai quote <model> --in <n> --out <n> --max <usd>) |
| `connector --relay <address> --host <server>` | Run beside a Git host inside your network: it reads its connection's host kind from Xovris, dials out to Xovris only, puts Xovris's webhook on the repository and makes each review's requests with the host token it holds (XOVRIS_CONNECTOR_TOKEN and XOVRIS_HOST_TOKEN, never printed); --once makes one pass |
| `hunt` | Hunt the whole repository for faults, every file in every language the hunt reads (--class leak,race to narrow, --json for an editor); it reads and never writes, and the exit code is 0 only when nothing was found |
| `findings` | The code review's findings narrowed on every axis at once - --severity, --category, --kind, --effort, --file, --status, --source (values separated by commas) - each value shown with the count choosing it would leave; --save-view <name> keeps the filters, --view <name> uses them, --views lists them, --delete-view <name> (--repo owner/name, --days <n>, --limit <n>, --json) |
| `sbom [folder]` | The repository's bill of materials as CycloneDX 1.6 JSON - every dependency in every ecosystem, each advisory for a version in use told by whether its code is served (--live <file\|url> names the hosts that answer, --out <file>, --format spdx-json or spdx for SPDX 2.3 as JSON or tag-value, --from <bom.json> to scan a CycloneDX or SPDX bill already made) (--gaps only the gaps, --type programming\|data\|markup\|prose, --json for a script) |
| `login` | Sign in through your browser and keep the key on this computer (--with-token reads a key from standard input) |
| `logout` | Delete the key kept on this computer |
| `whoami` | Show who and which workspace this computer is signed in as |
| `limit` | Your monthly limit on AI-fixed issues: what is used, the next point you are told at and what carries on at the limit (limit set <n>, limit remove, --json); nothing is paused at the limit, so nothing is resumed by hand |
| `spend` | Your cloud bill this month, as Xovris read it from each connected account: by service, account or day (--group-by service\|account\|day, --since <n>d up to 31, --json) |
| `api <path>` | Send any request to the Xovris API and print its JSON (-X METHOD, -d json\|@file, -F key=value, -f key=text, -H 'Name: value', -i) |
| `checks test` | Run the checks in xovris.checks.ts now from one location, without alerting |
| `checks deploy` | Ship the checks in xovris.checks.ts as a new version (nothing changes if any is invalid) |
| `checks secrets` | The workspace's secrets by name, never a value (--json); checks secrets set <name> seals the value piped in (set < .env seals each line); checks secrets rm <name>... removes each whole - its name and its sealed value - in one request |

### Options every command reads

| Option | What it does |
| --- | --- |
| `--yes, -y` | Accept the listed changes without asking |
| `--wait` | After install, wait for the first real event from your deployed app |
| `--local-only` | With remove: undo local changes without signing in |
| `--undo` | With remove: put back the files Xovris set aside when it deleted them |
| `--cwd <dir>` | Run in another folder |
| `--api <url>` | Xovris API address (default https://api.xovris.ai) |
| `--check <slug>` | With checks: only this check (repeatable) |
| `--prune` | With checks deploy: remove the project's checks that are no longer in the config |
| `--dry-run` | With checks deploy: show what would change and change nothing |
| `--repo <o/n>` | With pr: the GitHub repository |
| `--connection <id>` | With pr: the connection (default: this folder's) |
