Skip to main content

update-app

Update an existing app
1 min read

Update an app by ID or slug. You can change its name, slug, GitHub repository configuration, and delete protection. Omitted fields remain unchanged. A new slug must not collide with another app in the project.

Usage#

Flags#

--projectstringrequired#
Project ID or slug.
--appstringrequired#
App ID or slug.
--namestring#
New human-readable name. Omit to leave unchanged.
--slugstring#
New app slug. Omit to leave unchanged.
--gitJSON string#

Connect or reconfigure a GitHub repository with repository and defaultBranch fields. Set the value to null to disconnect the repository.

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