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 whoamiOutput
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" }
}organization_listExample 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" }
]
}- Open the organization switcher in the dashboard sidebar to see every organization your account belongs to.
- 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-pendingIn 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.
--resume-pendingboolean- Resume a pending login started by a previous
endform loginand 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.
- 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 logoutOutput
Deletes the stored local CLI credentials and prints confirmation.
Not available from MCP.
- 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.
--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.
- Open Settings -> API keys in your organization.
- 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 vercelINTEGRATION"github" | "vercel"required- Positional integration to connect:
githuborvercel. --waitboolean- Wait for the integration to finish connecting without opening a browser. Use after a non-interactive
endform connectprinted 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.
- Open Settings -> Integrations in your organization.
- 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.tsinit is an alias for setup.
-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.
- 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-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 fromendform login, orENDFORM_API_KEYwhen 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
organizationIdinendform.config.ts, Endform selects it automatically. When your account belongs to multiple organizations and none is configured, runendform whoami(ororganization_liston MCP) to get the ID and pass--organization-id(organizationId).
Last updated