Docs

zitadel env add

Bind an environment to a project, creating the project if needed.

Usage

npx @zitadel/cli@latest env add <name> [flags]

Arguments

ArgumentDescription
<name>The environment name, e.g. production. Required.

Flags

FlagDescription
--project <value>Bind this existing project instead of creating one. Its secrets come from ZITADEL_PROJECT_SECRET and ZITADEL_PREVIEW_TOKEN in the process environment.
--app-url <value>The URL this environment's app is served from. It becomes ZITADEL_ISSUER and is registered with a new project.
--forceOverwrite an existing .env.<name>.local.

It also takes the global flags.

Examples

npx @zitadel/cli@latest env add production --server https://api.zitadel.cloud --app-url https://app.acme.com
npx @zitadel/cli@latest env add staging --server https://api.zitadel.cloud --project proj_01K9AA9M3K7E2QX8VB4T

Was this helpful?