Update selected build and runtime settings for an environment.
Usage#
Flags#
Project identifier or slug.
Application identifier or slug.
Environment identifier or slug.
Dockerfile path.
Build root directory.
Command used to build the app.
Paths that trigger a deployment. Pass an empty value to clear the current paths.
Whether pushes deploy automatically.
Container port.
CPU allocation in vCPUs.
Memory allocation in MiB.
Storage allocation in MiB.
Container command. Pass an empty value to clear the current command.
Show JSON schemaHide JSON schema
Container shutdown signal. Valid choices are SIGTERM, SIGINT, SIGQUIT, and SIGKILL.
Protocol used to reach the container. Valid choices are http1 and h2c.
OpenAPI specification path.
Show JSON schemaHide JSON schema
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#
The current Go SDK can't represent explicit null values for dockerfile, buildCommand, healthcheck, or openapiSpecPath. Use the HTTP API directly to clear these settings.
See the Update settings API reference.