Sign inGet Started

bird auth create-org

Usage

Codevoorbeeld
bird auth create-org <org_name> [flags]

Description

Create your organization and workspace and mint your credential

Creates the organization and workspace from the onboarding_ticket, then stores the minted credential so "bird" and the MCP server authenticate as you. The ticket is required even when the CLI already has a bearer credential. Creation consumes it. If creation commits but the response is lost, use "bird auth login --device" to access the existing organization. A consumed ticket cannot issue another credential. When the response carries an offer, tell the customer its outcome: a granted offer is already in force and a refusal is final.

--accept-terms states that the owner agreed to the Terms on behalf of the new organization. Show the owner the page from "bird auth terms" and pass its version only once they agree. Without it the API returns E02100 when acceptance is required.

Build the request from the <org_name> argument and flags, a JSON OnboardingRequest body via --body-file ("-" reads stdin), or both — an inline value overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Procedure

Step 4 of 4 of "Sign up and create your organization". Previous: bird auth terms.

Examples

Codevoorbeeld
# print the body shape (no credentials needed)
bird auth create-org --example

# the body it prints:
Codevoorbeeld
{
  "onboarding_ticket": "obt_9mP2wR5tY8uI1oL4nJ",
  "org_name": "Acme Corp",
  "region": "us1",
  "terms_acceptance": {
    "surface": "cli",
    "terms_version": "2024-11-21",
    "ui_copy_version": "onboarding-cli-v1"
  },
  "workspace_name": "Production"
}
Codevoorbeeld
# finish signup and store the credential
bird auth create-org Acme --workspace-name Prod --region us1 --onboarding-ticket obt_... --accept-terms 2024-11-21

Options

Organization

NameDescription
--workspace-nameName of the workspace under the organization
--regionRegion the new account and its data live in (e.g. us1 or eu1)
--onboarding-ticketThe single-use onboarding ticket returned by verify-email
--partner-codePartner code, if a partner gave you one. Omit it for no offer
--accept-termsTerms of Service version the owner agrees to on behalf of this organization, from "bird auth terms"

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird auth loginAuthenticate with Bird through your browser (OAuth)
bird auth logoutRevoke the OAuth grant (if any) and remove the stored credentials file
bird auth signupStart a passwordless Bird signup and email a six-digit code
bird auth statusShow current authentication state and validate the token against the API
bird auth termsGet the current Terms of Service
bird auth verify-emailConfirm the emailed six-digit code and sign in

Ga verder met de documentatie, handleidingen en voorbeelden voor dit onderwerp.