Skip to main content

update-project

Update an existing project
1 min read

Update a project by ID or slug. The name, slug, and delete protection can be changed. Omitted fields remain unchanged. Changing the slug affects generated deployment domains.

Usage#

Flags#

--projectstringrequired#
Project ID or slug.
--slugstring#
New project slug. Omit to leave unchanged.
--namestring#
New human-readable project name. Omit to leave unchanged.
--delete-protectionbool#
Enable or disable delete protection. Omit to leave unchanged.

Global Flags#

FlagTypeDescription
--root-keystringOverride root key ($UNKEY_ROOT_KEY)
--api-urlstringOverride API base URL (default: https://api.unkey.com)
--configstringPath to config file (default: ~/.unkey/config.toml)
--outputstringOutput format. Use json for raw JSON
--bodystringSend this JSON string as the request body. You cannot combine it with request-building flags.

Examples#

See the API reference.