Docs/Organization
#

Organization

Organization

An organization is the account that owns the application, sandboxes and tests.

No organization yet

signup verify needs a name for the new organization, which account asks for before the code is sent and passes to signup. If it was missed and the error code is CLI_SIGNUP_WORKSPACE_REQUIRED (printed as Error (CLI_SIGNUP_WORKSPACE_REQUIRED): ..., or code in --json), propose a name from the product (the repository's or app's name) and ask: "Name the organization Acme?" Then:

bash
cofactor signup verify --code <8 digits> --organization "<name>" --json

The code is still valid for this retry unless it expired or was locked.

Existing account with several organizations

With --json and no --organization (or a name that matches none of the account's organizations), signup verify exits 1 and prints {code: "CLI_SIGNUP_WORKSPACE_CHOICE_REQUIRED", error, workspaces: [{id, name, slug}], next}. Without --json the same code is in the printed Error (CLI_SIGNUP_WORKSPACE_CHOICE_REQUIRED): ... and the organizations are listed. Ask the human which one, then re-run with --organization <id|slug|name>. A name that matches several organizations asks again: use the id.

Existing account with one organization

It is used automatically when no other name is passed. No new organization is created.

Confirm

bash
cofactor setup status --json
cofactor whoami --json

The first proves the session (a 401 means it is dead); the second reads the identity offline. Check organization.name is the organization the human expects. Another saved organization: add --org <name|id> to later commands.

Browser login (MFA accounts, and accounts that must use cofactor login)

bash
cofactor login

Show the human the URL and code it prints and ask: "Approve the sign-in in your browser." Then cofactor setup status --json must succeed.

Next: cofactor setup guide source