Docs/Command reference
#

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 --json for JSON output on commands that print data.
  • cofactor guide lists every built-in guide, for example the one cofactor workflow guide prints. See also the CLI guides.

Sign in and set up

CommandWhat it does
cofactor loginSigns in through the browser.
cofactor signupSigns in or signs up with an emailed code. signup verify --code <8 digits> finishes it.
cofactor whoamiPrints 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 orgsLists organizations. Sub-commands: use, members, invite, invites.
cofactor api-keyManages API keys: create, list, revoke, scopes.
cofactor auth doctorDiagnoses sign-in, token and proxy problems.
cofactor billingManages billing: subscribe, portal, budget set <dollars>, budget clear. See Plans and limits.
cofactor setupstatus reports setup progress and the next command. guide [section] prints the setup procedure.
cofactor installRegisters the MCP server in your coding agents. --all-detected also installs skills. See Install the CLI.
cofactor upgradeUpgrades the CLI.
cofactor --versionPrints 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-commandWhat it does
runRuns a suite and streams the results.
suitesLists named suites. suites get <id|name> shows one.
executionsLists 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.
createCreates a named suite. --name is required.
update <id|name>Changes a suite.
delete <id|name> --yesDeletes 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-commandWhat it does
getPrints the headline, verdict and findings.
failuresLists 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-commandWhat it does
listLists tests.
get <workflowId>Prints a test and its steps.
createCreates 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

CommandWhat it does
cofactor recordRecords browser interactions to author a test. Press Ctrl+C to stop.
cofactor sessionManages local browser sessions: start, list, status, stop, then actions like navigate, click, snapshot and screenshot. Run cofactor session guide.
cofactor localSets up and manages local testing: init, start, list, login.

schedule and alert

CommandWhat it does
cofactor schedule suiteSchedules recurring suite runs: list, get, create, edit, pause, resume, delete, run, runs.
cofactor schedule exploratory-testSchedules an exploratory test: list, create, pause, resume, run, delete.
cofactor alertManages 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

CommandWhat it does
cofactor visuallist shows visual checkpoints. get <captureId> prints one capture. flag-regression <changeId> marks a change as a regression.
cofactor external-runReads and diagnoses runs of your own test suites: get, failures, triage, rerun, cancel. Run cofactor external-run guide.
cofactor exploratory-testStarts and reads exploratory tests: run, get, list, guide.
cofactor explorationRuns exploration cycles: run, cycles, cycle, cancel.

tag and attachment

CommandWhat it does
cofactor tagManages tags: list, create, update, delete, assign.
cofactor attachmentManages attachments: list, upload, get, delete.

Environments and sandboxes

CommandWhat it does
cofactor applicationManages applications: list, create, update. create needs --name and --base-url.
cofactor environmentManages the environments of an application: list, create, update, set-default, set-var.
cofactor sandboxPushes, claims and runs copies of your app. See Sandbox guide.
cofactor api-catalogManages the API sources and endpoints your API tests use: sources and endpoints. See API testing.
cofactor credentialManages login credentials: list, get, create, update, test, delete.
cofactor personaManages personas and their credential bindings.
cofactor deployWorks 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

CommandWhat it does
cofactor issuesSearches, files and manages issues: list, get, create, comment, close, reopen, tag, merge. Run cofactor issues guide for the triage guide.
cofactor ticketsWorks 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:

CommandWhat it does
proofs guidePrints the guide to proving a change with tests.
proofs attachAttaches evidence to a pull request criterion.
proofs detachRemoves 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

CommandWhat it does
cofactor github connectConnects your organization's GitHub App installation.
cofactor slack connect / slack disconnectConnects or disconnects Slack. Organization admins only.
cofactor teamsstatus 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

CommandWhat it does
cofactor mcpStarts the MCP server on stdio. Your agent runs it after install.
cofactor skillManages skill templates: list, install <name>, sync, diff <name>, versions <name>.
cofactor promptsStarter prompts for coding agents: list, get <slug|id>.
cofactor guideLists 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.

CommandWhat it does
cofactor utilitiesHosts files and reports: object to upload and share files, gist for reports.
cofactor taskManages agent tasks: create, list, get, update, complete, cancel.

Next steps