Docs

zitadel invitation create

Invite someone into the project with a link to share.

Usage

npx @zitadel/cli@latest invitation create [flags]

Flags

FlagDescription
--name <value>Who the invitation is for, shown to other administrators. Never matched.
--relation <value>The project role whoever accepts receives. One of viewer, editor, admin.
--replaces <value>The invitation this one replaces; the new one keeps its journey.
-s, --server <value>Override the resolved server URL.
-e, --env <value>Environment to run against, e.g. production. Defaults to ZITADEL_ENV, then the hosting platform's build (VERCEL_ENV, or Netlify's CONTEXT), then development.
--env-file <value>Read ZITADEL_* values from this file ahead of the process environment. A relative path is read from the current directory, not from --cwd. Cannot be combined with --env.
--dry-runPreview without mutating files or the platform.

It also takes the global flags.

Examples

npx @zitadel/cli@latest invitation create
npx @zitadel/cli@latest invitation create --name "John Doe" --relation editor
npx @zitadel/cli@latest invitation create --replaces inv_01JCQK5R7T9V1X3Z5B7D9F1H3J --relation editor

API

It calls Create an invitation, POST /invitations, in the Invitations API.

Was this helpful?