Command reference
The Cofactor CLI commands, grouped by job. Sign in, run tests and suites, schedules and alerts, workflows, browser sessions, environments, sandboxes, credentials, issues, tickets, proofs, product map, Slack, Teams, GitHub, agent skills and utilities.
This page lists the main cofactor commands by job, one line each. Run cofactor <command> --help for all flags and sub-commands. Run cofactor --help for the commands your account can use.
Conventions
- Put global flags after the command:
--org <name|id>,--env <prod|dev|local>,--token <key>,--api-url <url>. See Authentication. - Add
--jsonfor JSON output on commands that print data. cofactor guidelists every built-in guide, for example the onecofactor workflow guideprints. See also the CLI guides.
Sign in and set up
| Command | What it does |
|---|---|
cofactor login | Signs in through the browser. |
cofactor signup | Signs in or signs up with an emailed code. signup verify --code <8 digits> finishes it. |
cofactor whoami | Prints your user, organization and API environment. |
cofactor open [path] | Opens your organization in the browser, signed in with a single-use link that works for 5 minutes. --no-open prints the link. |
cofactor orgs | Lists organizations. Sub-commands: use, members, invite, invites. |
cofactor api-key | Manages API keys: create, list, revoke, scopes. |
cofactor auth doctor | Diagnoses sign-in, token and proxy problems. |
cofactor billing | Manages billing: subscribe, portal, budget set <dollars>, budget clear. See Plans and limits. |
cofactor setup | status reports setup progress and the next command. guide [section] prints the setup procedure. |
cofactor install | Registers the MCP server in your coding agents. --all-detected also installs skills. See Install the CLI. |
cofactor upgrade | Upgrades the CLI. |
cofactor --version | Prints the version. |
See Authentication for login, signup, orgs and api-key.
Tests and suites
test-suite
Runs suites and reads their results. For CI use, see Using the CLI in CI.
| Sub-command | What it does |
|---|---|
run | Runs a suite and streams the results. |
suites | Lists named suites. suites get <id|name> shows one. |
executions | Lists recent runs. |
get <executionId> | Shows one run. --failures-only keeps failing and degraded tests. |
cancel <executionId> | Cancels a running execution. |
diagnostics <workflowId> <runId> | Prints the failure diagnosis. |
steps <workflowId> <runId> | Prints the steps of a run. |
create | Creates a named suite. --name is required. |
update <id|name> | Changes a suite. |
delete <id|name> --yes | Deletes a suite. |
members <id|name> | Shows a suite's members by layer. |
set-members <id|name> | Replaces a suite's members. --layer repeats, one per layer, and layer order is flag order. --yes is required when the suite already has members. |
For your own Playwright tests, run also takes --area, --external-spec, --external-grep and --external-test. See Bring your own suite.
triage
Reads the AI grouping of a run's failures. Each command takes an execution id or latest.
| Sub-command | What it does |
|---|---|
get | Prints the headline, verdict and findings. |
failures | Lists the failing tests. --new-only keeps tests that started failing in this run. |
wait [--timeout <seconds>] | Waits for triage to finish. Default timeout 1200. |
workflow
Creates and manages tests (workflows). Run cofactor workflow guide for the authoring reference.
| Sub-command | What it does |
|---|---|
list | Lists tests. |
get <workflowId> | Prints a test and its steps. |
create | Creates a test from JSON, from --from-file <path> or --from-stdin. |
sync <workflowId> | Replaces all steps from JSON. |
patch <workflowId> | Updates --name, --description, --tags and other properties. |
add-to-regression / remove-from-regression <workflowId> | Adds the test to Regression, or removes it. |
status <workflowId> [--set <status>] | Shows or changes the status: active, paused, blocked, under_construction or deprecated. |
pause / unpause <workflowId> | Stops or resumes automatic runs. |
archive / unarchive <workflowId> | Hides a test from lists and suites, or restores it. |
run <workflowId> | Runs a test. |
cancel <runId> | Cancels a run. |
runs list <workflowId> | Lists the runs of a test. |
debug <runId> | Debugs a run. |
revisions list|get|restore <workflowId> | Reads or restores earlier definitions. |
record and browser sessions
| Command | What it does |
|---|---|
cofactor record | Records browser interactions to author a test. Press Ctrl+C to stop. |
cofactor session | Manages local browser sessions: start, list, status, stop, then actions like navigate, click, snapshot and screenshot. Run cofactor session guide. |
cofactor local | Sets up and manages local testing: init, start, list, login. |
schedule and alert
| Command | What it does |
|---|---|
cofactor schedule suite | Schedules recurring suite runs: list, get, create, edit, pause, resume, delete, run, runs. |
cofactor schedule exploratory-test | Schedules an exploratory test: list, create, pause, resume, run, delete. |
cofactor alert | Manages notify-only alerts: list, get, create, edit, pause, resume, delete, run, runs, deliveries. |
For schedules and alerts in practice, see Suites and schedules.
visual, external-run, exploratory tests
| Command | What it does |
|---|---|
cofactor visual | list shows visual checkpoints. get <captureId> prints one capture. flag-regression <changeId> marks a change as a regression. |
cofactor external-run | Reads and diagnoses runs of your own test suites: get, failures, triage, rerun, cancel. Run cofactor external-run guide. |
cofactor exploratory-test | Starts and reads exploratory tests: run, get, list, guide. |
cofactor exploration | Runs exploration cycles: run, cycles, cycle, cancel. |
tag and attachment
| Command | What it does |
|---|---|
cofactor tag | Manages tags: list, create, update, delete, assign. |
cofactor attachment | Manages attachments: list, upload, get, delete. |
Environments and sandboxes
| Command | What it does |
|---|---|
cofactor application | Manages applications: list, create, update. create needs --name and --base-url. |
cofactor environment | Manages the environments of an application: list, create, update, set-default, set-var. |
cofactor sandbox | Pushes, claims and runs copies of your app. See Sandbox guide. |
cofactor api-catalog | Manages the API sources and endpoints your API tests use: sources and endpoints. See API testing. |
cofactor credential | Manages login credentials: list, get, create, update, test, delete. |
cofactor persona | Manages personas and their credential bindings. |
cofactor deploy | Works with the deploy graph. Run cofactor deploy guide first. See the deploy guide. |
For test sign-in credentials, see Seed data and logins.
Issues and reports
| Command | What it does |
|---|---|
cofactor issues | Searches, files and manages issues: list, get, create, comment, close, reopen, tag, merge. Run cofactor issues guide for the triage guide. |
cofactor tickets | Works with your connected ticket tracker. Run cofactor tickets --help for the sub-commands. |
See Issues and the issues guide.
Product map and proofs
cofactor product-map prints and edits an application's product map: get, coverage, show <code|id>, history, changes, guide, and area, capability and rule to edit. See the product map guide.
cofactor proofs connects a pull request's criteria to test evidence:
| Command | What it does |
|---|---|
proofs guide | Prints the guide to proving a change with tests. |
proofs attach | Attaches evidence to a pull request criterion. |
proofs detach | Removes a criterion or one piece of evidence. |
proofs render --pr <n> | Prints the proof block for the pull request. --none "<reason>" prints it for a change with nothing to prove. |
proofs status --repo <owner/repo> --pr <n> | Lists the proofs on a pull request. |
proofs check --pr <n> --sha <sha> | Evaluates the pull request's proofs. |
cofactor trigger pr-merged --pr <n> enqueues proof promotion when a pull request merges. See Release gates and the proofs guide.
Integrations
| Command | What it does |
|---|---|
cofactor github connect | Connects your organization's GitHub App installation. |
cofactor slack connect / slack disconnect | Connects or disconnects Slack. Organization admins only. |
cofactor teams | status and channels show the connection and its channels. install (organization admins) and disconnect --yes connect and disconnect. |
See Slack, GitHub, Jira, Linear and Azure DevOps.
Agent tooling
| Command | What it does |
|---|---|
cofactor mcp | Starts the MCP server on stdio. Your agent runs it after install. |
cofactor skill | Manages skill templates: list, install <name>, sync, diff <name>, versions <name>. |
cofactor prompts | Starter prompts for coding agents: list, get <slug|id>. |
cofactor guide | Lists every guide, its sections and docs URLs. No sign-in needed. |
cofactor feedback "<text>" | Tells the Cofactor team what confused you or what you needed. |
Utilities and tasks
These commands are listed in cofactor --help only when your organization has the feature.
| Command | What it does |
|---|---|
cofactor utilities | Hosts files and reports: object to upload and share files, gist for reports. |
cofactor task | Manages agent tasks: create, list, get, update, complete, cancel. |