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

Usage

Flags

string
required
Project ID or slug.
string
required
App ID or slug.
string
New human-readable name. Omit to leave unchanged.
string
New app slug. Omit to leave unchanged.
JSON string
Connect or reconfigure a GitHub repository with repository and defaultBranch fields. Set the value to null to disconnect the repository.
JSON string
Change the default image reference for an OCI-sourced app. The JSON object must contain image with an explicit tag or digest. This doesn’t create a deployment or switch the app’s source.
bool
Enable or disable delete protection. Omit to leave unchanged.

Global Flags

Examples

OCI image
See the API reference.
Last modified on September 18, 2026