Create a deployment from a Git branch, container image, or existing deployment.
Usage#
Flags#
Project identifier or slug.
Application identifier or slug.
Environment identifier or slug.
Git source with branch, commitSha, and repository.
Show JSON schemaHide JSON schema
The JSON object uses the properties and constraints listed above.
Image source with dockerImage.
Show JSON schemaHide JSON schema
The JSON object uses the properties and constraints listed above.
Existing source with deploymentId.
Show JSON schemaHide JSON schema
The JSON object uses the properties and constraints listed above.
Global Flags#
| Flag | Type | Description |
|---|---|---|
--root-key | string | Override root key ($UNKEY_ROOT_KEY) |
--api-url | string | Override API base URL (default: https://api.unkey.com) |
--config | string | Path to config file (default: ~/.unkey/config.toml) |
--output | string | Output format - use json for raw JSON |
--body | string | Send this JSON string as the request body. You cannot combine it with request-building flags. |
Examples#
See the Create deployment API reference.