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 test

You 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 endform

To scaffold a new project or connect an existing Playwright suite, run the interactive setup flow:

npx endform@latest setup

Global options

FlagDescription
--debugPrint verbose diagnostic logs (upload steps, tunnel activity, and API requests)
-h, --helpPrint usage help for the CLI or a specific subcommand
-V, --versionPrint the installed CLI version

Authentication and organizations

The CLI resolves credentials in this order:

  1. ENDFORM_API_KEY environment variable: Used when set. Recommended for non-GitHub CI and headless automation. See API keys.
  2. GitHub Actions OIDC: Used automatically in GitHub Actions jobs with id-token: write when the Endform GitHub App is installed. Applies to suite runs (endform test). See CI authentication.
  3. 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.

CommandWhat it doesReference
testRun your Playwright suite on Endform and stream live resultsSuite runs
live-testStart, evaluate code in, inspect, and stop a paused remote browser test (start, run, status, stop)Live tests
test-attemptInspect a recorded test attempt, drill into step spans, or open a replay (inspect, step, replay)Test attempt info
analyticsQuery aggregated pass rates, counts, and durations (suite-runs, test-runs)Analytics
samplesQuery concrete recent suite runs and test runs with errors and attempt IDs (suite-runs, test-runs)Samples
quarantineList, create, update, and deactivate quarantine rules (list, create, update, deactivate)Quarantine
setup (init)Guided setup to connect a Playwright project to EndformManagement and access
login / logoutSign in to or out of Endform on your local machineManagement and access
whoamiShow the active account and available organization IDsManagement and access
api-keyCreate an organization API key for CI or automation (create)Management and access
connectInstall and connect the GitHub App or Vercel integration (github, vercel)Management and access
migrate-configConvert a legacy endform.jsonc file to endform.config.tsManagement and access
mcpStart Endform's local stdio MCP server for coding agentsMCP server

Last updated