ReferenceActions

Management and access

Check your account and organizations, log in or out, create CI API keys, connect integrations, and set up or migrate Playwright projects.

Management and access actions handle authentication, organization selection, CI API keys, GitHub and Vercel integrations, and project setup. Most of these actions run on the CLI and the dashboard; MCP exposes organization_list so agents can resolve which organization to query.

Check account and list organizations

Check account and list organizations

Shows the active identity, available Endform organizations with their IDs, and which organization the current project uses.

$ npx endform@latest whoami

Output

Prints JSON with endformUrl, credentialSource, identity, organizations, and currentOrganization.

{
  "endformUrl": "https://endform.dev",
  "credentialSource": "login",
  "identity": { "email": "dev@example.com" },
  "organizations": [
    { "id": "org_01J...", "name": "Acme" }
  ],
  "currentOrganization": { "id": "org_01J...", "name": "Acme" }
}
Toolorganization_list
Example promptWhich Endform organizations do I have access to?

Agents call organization_list first when a login belongs to multiple organizations so they can pass organizationId to data and quarantine tools.

Output

Returns { organizations: [{ id, name }] } for every organization available to the active login.

{
  "organizations": [
    { "id": "org_01J...", "name": "Acme" }
  ]
}
  1. Open the organization switcher in the dashboard sidebar to see every organization your account belongs to.
  2. Open Account to view your signed-in profile.

Log in to Endform

Log in to Endform

Authenticates the Endform CLI on your machine using your Endform account.

$ npx endform@latest login
$ npx endform@latest login --resume-pending

In non-interactive terminals (such as agent shells), endform login prints an authorization URL and exits so the user can approve it in a browser, then resumes with --resume-pending.

Parameters
--resume-pendingboolean
Resume a pending login started by a previous endform login and wait until browser authorization completes.

Output

Saves credentials locally for the CLI and the local MCP server (endform mcp), and reports the signed-in account and organization.

Not available from MCP.

  1. Sign in at endform.dev.

Log out of Endform

Log out of Endform

Removes the saved Endform login credentials from your machine.

$ npx endform@latest logout

Output

Deletes the stored local CLI credentials and prints confirmation.

Not available from MCP.

  1. Open your account menu in the dashboard and select Sign out.

Create an organization API key

Create an organization API key

Creates an organization API key for running Endform from CI via ENDFORM_API_KEY.

$ npx endform@latest api-key create --name 'GitHub Actions'

Requires an interactive user login created with endform login. API keys cannot create other API keys.

Parameters
--namestringrequired
Display name for the key in the dashboard, such as GitHub Actions.
--organization-idstring
Organization ID. Inferred from your repository config or active login when omitted.

Output

Prints the newly generated API key once to standard output so it can be stored in your CI secret manager.

Not available from MCP.

  1. Open Settings -> API keys in your organization.
  2. Select Create API key, give it a name, and copy the key (it is shown once).

Connect an integration

Connect an integration

Connects GitHub or Vercel to your Endform organization so CI authentication and preview deployments work automatically.

$ npx endform@latest connect github
$ npx endform@latest connect vercel
Parameters
INTEGRATION"github" | "vercel"required
Positional integration to connect: github or vercel.
--waitboolean
Wait for the integration to finish connecting without opening a browser. Use after a non-interactive endform connect printed the install URL.
--organization-idstring
Organization ID. Inferred from your repository config or active login when omitted.

Output

Opens the integration install page in your browser (or prints the URL in non-interactive shells) and confirms once the connection is active.

Not available from MCP.

  1. Open Settings -> Integrations in your organization.
  2. Select Connect next to GitHub or Vercel and complete the authorization flow.

Set up a Playwright project

Set up a Playwright project

Guides you through authenticating, linking your organization, checking your Playwright setup, and running your first suite on Endform.

$ npx endform@latest setup
$ npx endform@latest init --config e2e/playwright.config.ts

init is an alias for setup.

Parameters
-c, --configstring
Playwright config file to set up when the repository has more than one.
--organization-idstring
Organization ID. Inferred from your repository config or active login when omitted.

Output

Completes first-time project setup, runs a verification test run on Endform, and prints the CI snippet for your repository.

Not available from MCP.

  1. Open Get started in your Endform organization to follow the onboarding checklist.

Migrate legacy config

Migrate legacy config

Converts a legacy endform.jsonc or endform.json file to a script config (endform.config.ts, .mts, .mjs, .js, or .cjs) and deletes the legacy JSON file.

$ npx endform@latest migrate-config
Parameters
-c, --configstring
Playwright config file or test directory to locate the legacy Endform config from.

Output

Writes the replacement script config (.ts, .mts, .mjs, .js, or .cjs, matching your Playwright config), removes the original endform.jsonc or endform.json file, and prints the source and destination paths.

Not available from MCP.

Not available from the dashboard.

How Endform resolves credentials and organizations

  • Credential sources: Locally, the CLI and local MCP server (endform mcp) use your login from endform login, or ENDFORM_API_KEY when set. The hosted MCP server authenticates through OAuth in your agent host. In GitHub Actions, Endform can authenticate through the Endform GitHub App without a static API key (see CI authentication).
  • Organization selection: If your account belongs to a single organization, or your project sets organizationId in endform.config.ts, Endform selects it automatically. When your account belongs to multiple organizations and none is configured, run endform whoami (or organization_list on MCP) to get the ID and pass --organization-id (organizationId).

Last updated