Docs

zitadel origin add

Add an origin pattern to the project.

Usage

npx @zitadel/cli@latest origin add <pattern> [flags]

Arguments

ArgumentDescription
<pattern>The origin pattern to add. Required.

Flags

FlagDescription
--kind <value>What the pattern is for. Required. One of primary, preview.
-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.

It also takes the global flags.

Examples

npx @zitadel/cli@latest origin add https://app.acme.com --kind primary
npx @zitadel/cli@latest origin add 'https://*-acme.vercel.app' --kind preview

API

It calls Add an origin pattern, POST /projects/{project_id}/origins, in the Projects API.

Was this helpful?