ReferenceSurfaces
CLI
How to run the Endform CLI, its requirements, global options, authentication, and command reference.
The Endform CLI runs Playwright suites on Endform's remote runners, starts interactive live tests, queries historical analytics and recorded attempts, manages quarantine rules, and exposes Endform's local MCP server.
Run or install
Run the latest version directly without installing it globally (requires Node.js 22.15 or newer):
npx endform@latest testYou can also use pnpm dlx endform@latest or yarn dlx endform@latest, or add endform as a devDependency in your project if you want to pin a specific version in package.json:
npm install --save-dev endformTo scaffold a new project or connect an existing Playwright suite, run the interactive setup flow:
npx endform@latest setupGlobal options
| Flag | Description |
|---|---|
--debug | Print verbose diagnostic logs (upload steps, tunnel activity, and API requests) |
-h, --help | Print usage help for the CLI or a specific subcommand |
-V, --version | Print the installed CLI version |
Authentication and organizations
The CLI resolves credentials in this order:
ENDFORM_API_KEYenvironment variable: Used when set. Recommended for non-GitHub CI and headless automation. See API keys.- GitHub Actions OIDC: Used automatically in GitHub Actions jobs with
id-token: writewhen the Endform GitHub App is installed. Applies to suite runs (endform test). See CI authentication. - Saved local login: Created by
npx endform@latest login. Disabled automatically in CI environments.
If your account belongs to multiple organizations and organizationId is not set in endform.config.ts, run npx endform@latest whoami to inspect your organizations and pass --organization-id on commands that require it.
Commands
Full flags, examples, and output details live in the Actions reference pages.
| Command | What it does | Reference |
|---|---|---|
test | Run your Playwright suite on Endform and stream live results | Suite runs |
live-test | Start, evaluate code in, inspect, and stop a paused remote browser test (start, run, status, stop) | Live tests |
test-attempt | Inspect a recorded test attempt, drill into step spans, or open a replay (inspect, step, replay) | Test attempt info |
analytics | Query aggregated pass rates, counts, and durations (suite-runs, test-runs) | Analytics |
samples | Query concrete recent suite runs and test runs with errors and attempt IDs (suite-runs, test-runs) | Samples |
quarantine | List, create, update, and deactivate quarantine rules (list, create, update, deactivate) | Quarantine |
setup (init) | Guided setup to connect a Playwright project to Endform | Management and access |
login / logout | Sign in to or out of Endform on your local machine | Management and access |
whoami | Show the active account and available organization IDs | Management and access |
api-key | Create an organization API key for CI or automation (create) | Management and access |
connect | Install and connect the GitHub App or Vercel integration (github, vercel) | Management and access |
migrate-config | Convert a legacy endform.jsonc file to endform.config.ts | Management and access |
mcp | Start Endform's local stdio MCP server for coding agents | MCP server |
Related pages
Last updated