Docs

zitadel teams update

Update a team by id.

Usage

npx @zitadel/cli@latest teams update <id> [flags]

Arguments

ArgumentDescription
<id>team id Required.

Flags

FlagDescription
-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.

Optional field flags

FlagDescription
--name <value>The name of the team.

Raw body flags

FlagDescription
--data <value>Whole body as a JSON object. Field flags and --set apply over it. Not with --file.
--file <value>Read the body from a JSON file; - reads stdin. Field flags and --set apply over it. Not with --data.
--set <value>Set one field by its dot path: path=value, or path:=json for JSON. Repeatable; applied after the field flags, in order. A key that contains a dot is set through its parent: --set 'parent:={"a.b":"x"}'. Can be given more than once.

It also takes the global flags.

Examples

npx @zitadel/cli@latest teams update <id> --data '{...}' --json
npx @zitadel/cli@latest teams update <id> --file ./team.json

API

It calls Update team, PATCH /teams/{team_id}, in the Teams API.

Was this helpful?