production and preview environments.
Set exactly one source. Use git to create a GitHub-sourced app and connect its repository. Use oci to create an app from a prebuilt OCI image.
The slug you provide is the stable, caller-defined handle used to reference this app. It must be unique within the project.
Usage
Flags
string
required
Project ID or slug.
string
required
Human-readable name for this app. Use a descriptive name like ‘Payments API’ to identify its purpose.
string
required
App slug. Accepts a resource ID or slug format.
JSON string
Connect a GitHub repository with a required
repository field and optional
defaultBranch field.JSON string
Configure an OCI image source with a required
image field. The image must include an explicit tag or digest.Global Flags
Examples
OCI image