Documentation for scw container

April 15, 2026 ยท View on GitHub

This API allows you to manage your Serverless Containers.

Container management commands

Container management commands.

Create a new container

Create a new container in the specified region.

When creating a container, the created status is no longer used. The deployment process is started and the status is set to pending accordingly.

Usage:

scw container container create [arg=value ...]

Args:

NameDescription
namespace-idUUID of the namespace the container belongs to
nameName of the container
environment-variables.{key}Environment variables of the container
min-scaleMinimum number of instances to scale the container to
max-scaleMaximum number of instances to scale the container to
memory-limitMemory limit of the container in MB
cpu-limitCPU limit of the container in mvCPU
timeoutProcessing time limit for the container
privacyOne of: unknown_privacy, public, privatePrivacy setting of the container
descriptionDescription of the container
registry-imageName of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
max-concurrencyDeprecatedNumber of maximum concurrent executions of the container
protocolOne of: unknown_protocol, http1, h2cProtocol the container uses
portPort the container listens on
secret-environment-variables.{index}.key
secret-environment-variables.{index}.value
http-optionDefault: enabled
One of: unknown_http_option, enabled, redirected
Configure how HTTP and HTTPS requests are handled
sandboxOne of: unknown_sandbox, v1, v2Execution environment of the container
local-storage-limitLocal storage limit of the container (in MB)
scaling-option.concurrent-requests-threshold
scaling-option.cpu-usage-threshold
scaling-option.memory-usage-threshold
health-check.http.pathPath to use for the HTTP health check.
health-check.failure-thresholdNumber of consecutive health check failures before considering the container unhealthy.
health-check.intervalPeriod between health checks.
tags.{index}Tags of the Serverless Container
private-network-idID of the Private Network the container is connected to.
command.{index}Container command
args.{index}Container arguments
deployDefault: trueDeploy container after creation
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Delete a container

Delete the container associated with the specified ID.

Usage:

scw container container delete <container-id ...> [arg=value ...]

Args:

NameDescription
container-idRequiredUUID of the container to delete
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Deploy a container

Deploy a container associated with the specified ID.

Since updating a container now always deploys it (and passes its status to pending), this call becomes superfluous.

Moreover, calling DeployContainer immediately after UpdateContainer can cause 409 - resource is in a transient state errors, so it is better to not use it when updating a container.

Usage:

scw container container deploy <container-id ...> [arg=value ...]

Args:

NameDescription
container-idRequiredUUID of the container to deploy
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Get a container

Get the container associated with the specified ID.

Usage:

scw container container get <container-id ...> [arg=value ...]

Args:

NameDescription
container-idRequiredUUID of the container to get
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

List all your containers

List all containers for a specified region.

Usage:

scw container container list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_desc, name_asc, name_descOrder of the containers
namespace-idUUID of the namespace the container belongs to
nameName of the container
project-idUUID of the Project the container belongs to
organization-idUUID of the Organization the container belongs to
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all
Region to target. If none is passed will use default region from the config

Update an existing container

Update the container associated with the specified ID.

When updating a container, the container is automatically redeployed to apply the changes.

Warning: The redeploy field has been deprecated. An update now always redeploys the container.

Usage:

scw container container update <container-id ...> [arg=value ...]

Args:

NameDescription
container-idRequiredUUID of the container to update
environment-variables.{key}Environment variables of the container
min-scaleMinimum number of instances to scale the container to
max-scaleMaximum number of instances to scale the container to
memory-limitMemory limit of the container in MB
cpu-limitCPU limit of the container in mvCPU
timeoutProcessing time limit for the container
redeployDeprecatedDefines whether to redeploy failed containers
privacyOne of: unknown_privacy, public, privatePrivacy settings of the container
descriptionDescription of the container
registry-imageName of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
max-concurrencyDeprecatedNumber of maximum concurrent executions of the container
protocolOne of: unknown_protocol, http1, h2cProtocol the container uses
portPort the container listens on
secret-environment-variables.{index}.key
secret-environment-variables.{index}.value
http-optionOne of: unknown_http_option, enabled, redirectedConfigure how HTTP and HTTPS requests are handled
sandboxOne of: unknown_sandbox, v1, v2Execution environment of the container
local-storage-limitLocal storage limit of the container (in MB)
scaling-option.concurrent-requests-threshold
scaling-option.cpu-usage-threshold
scaling-option.memory-usage-threshold
health-check.http.pathPath to use for the HTTP health check.
health-check.failure-thresholdNumber of consecutive health check failures before considering the container unhealthy.
health-check.intervalPeriod between health checks.
tags.{index}Tags of the Serverless Container
private-network-idID of the Private Network the container is connected to.
command.{index}Container command
args.{index}Container arguments
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Cron management commands

Cron management commands.

Create a new cron

Create a new cron.

Usage:

scw container cron create [arg=value ...]

Args:

NameDescription
container-idUUID of the container to invoke by the cron
scheduleUNIX cron schedule
argsArguments to pass with the cron
nameName of the cron to create
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Delete an existing cron

Delete the cron associated with the specified ID.

Usage:

scw container cron delete <cron-id ...> [arg=value ...]

Args:

NameDescription
cron-idRequiredUUID of the cron to delete
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Get a cron

Get the cron associated with the specified ID.

Usage:

scw container cron get <cron-id ...> [arg=value ...]

Args:

NameDescription
cron-idRequiredUUID of the cron to get
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

List all your crons

List all your crons.

Usage:

scw container cron list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_descOrder of the crons
container-idUUID of the container invoked by the cron
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all
Region to target. If none is passed will use default region from the config

Update an existing cron

Update the cron associated with the specified ID.

Usage:

scw container cron update <cron-id ...> [arg=value ...]

Args:

NameDescription
cron-idRequiredUUID of the cron to update
container-idUUID of the container invoked by the cron
scheduleUNIX cron schedule
argsArguments to pass with the cron
nameName of the cron
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Deploy a container

Automatically build and deploy a container.

Automatically build and deploy a container.

Usage:

scw container deploy [arg=value ...]

Args:

NameDescription
nameName of the application (defaults to build-source's directory name)
builderDefault: paketobuildpacks/builder-jammy-base:latestBuilder image to use
run-imageDefault: paketobuildpacks/run-jammy-base:latestRun image to use
dockerfileDefault: DockerfilePath to the Dockerfile
force-builderDefault: falseForce the use of the builder image (even if a Dockerfile is present)
build-sourceDefault: .Path to the build context
cacheDefault: trueUse cache when building the image
build-args.{key}Build-time variables
portDefault: 8080Port to expose
namespace-idContainer Namespace ID to deploy to
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all
Region to target. If none is passed will use default region from the config

Domain management commands

Domain management commands.

Create a custom domain

Create a custom domain for the container with the specified ID.

Usage:

scw container domain create [arg=value ...]

Args:

NameDescription
hostnameDomain to assign
container-idUUID of the container to assign the domain to
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Delete a custom domain

Delete the custom domain with the specific ID.

Usage:

scw container domain delete <domain-id ...> [arg=value ...]

Args:

NameDescription
domain-idRequiredUUID of the domain to delete
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Get a custom domain

Get a custom domain for the container with the specified ID.

Usage:

scw container domain get <domain-id ...> [arg=value ...]

Args:

NameDescription
domain-idRequiredUUID of the domain to get
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

List all custom domains

List all custom domains in a specified region.

Usage:

scw container domain list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_desc, hostname_asc, hostname_descOrder of the domains
container-idUUID of the container the domain belongs to
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all
Region to target. If none is passed will use default region from the config

Namespace management commands

Namespace management commands.

Create a new namespace

Create a new namespace in a specified region.

Usage:

scw container namespace create [arg=value ...]

Args:

NameDescription
nameDefault: <generated>Name of the namespace to create
environment-variables.{key}Environment variables of the namespace to create
project-idProject ID to use. If none is passed the default project ID will be used
descriptionDescription of the namespace to create
secret-environment-variables.{index}.key
secret-environment-variables.{index}.value
tags.{index}Tags of the Serverless Container Namespace
activate-vpc-integrationDeprecated[DEPRECATED] By default, as of 2025/08/20, all namespaces are now compatible with VPC.
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Delete an existing namespace

Delete the namespace associated with the specified ID.

Usage:

scw container namespace delete <namespace-id ...> [arg=value ...]

Args:

NameDescription
namespace-idRequiredUUID of the namespace to delete
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Get a namespace

Get the namespace associated with the specified ID.

Usage:

scw container namespace get <namespace-id ...> [arg=value ...]

Args:

NameDescription
namespace-idRequiredUUID of the namespace to get
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

List all your namespaces

List all namespaces in a specified region.

Usage:

scw container namespace list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_desc, name_asc, name_descOrder of the namespaces
nameName of the namespaces
project-idUUID of the Project the namespace belongs to
organization-idUUID of the Organization the namespace belongs to
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all
Region to target. If none is passed will use default region from the config

Update an existing namespace

Update the space associated with the specified ID.

Usage:

scw container namespace update <namespace-id ...> [arg=value ...]

Args:

NameDescription
namespace-idRequiredUUID of the namespace to update
environment-variables.{key}Environment variables of the namespace to update
descriptionDescription of the namespace to update
secret-environment-variables.{index}.key
secret-environment-variables.{index}.value
tags.{index}Tags of the Serverless Container Namespace
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Token management commands

Token management commands.

Create a new revocable token

Deprecated in favor of IAM authentication.

Usage:

scw container token create [arg=value ...]

Args:

NameDescription
container-idUUID of the container to create the token for
namespace-idUUID of the namespace to create the token for
descriptionDescription of the token
expires-atExpiry date of the token
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Delete a token

Delete a token with a specified ID.

Usage:

scw container token delete <token-id ...> [arg=value ...]

Args:

NameDescription
token-idRequiredUUID of the token to delete
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Get a token

Get a token with a specified ID.

Usage:

scw container token get <token-id ...> [arg=value ...]

Args:

NameDescription
token-idRequiredUUID of the token to get
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

List all tokens

List all tokens belonging to a specified Organization or Project.

Usage:

scw container token list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_descOrder of the tokens
container-idUUID of the container the token belongs to
namespace-idUUID of the namespace the token belongs to
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all
Region to target. If none is passed will use default region from the config

Trigger management commands

Trigger management commands.

Create a trigger

Create a new trigger for a specified container.

Usage:

scw container trigger create [arg=value ...]

Args:

NameDescription
nameRequiredName of the trigger
container-idRequiredID of the container to trigger
descriptionDescription of the trigger
scw-sqs-config.queueName of the SQS queue the trigger should listen to
scw-sqs-config.mnq-project-idID of the Messaging and Queuing project
scw-sqs-config.mnq-regionRegion in which the Messaging and Queuing project is activated.
scw-nats-config.subjectName of the NATS subject the trigger should listen to
scw-nats-config.mnq-nats-account-idID of the Messaging and Queuing NATS account
scw-nats-config.mnq-project-idID of the Messaging and Queuing project
scw-nats-config.mnq-regionRegion in which the Messaging and Queuing project is activated.
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Delete a trigger

Delete a trigger with a specified ID.

Usage:

scw container trigger delete <trigger-id ...> [arg=value ...]

Args:

NameDescription
trigger-idRequiredID of the trigger to delete
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

Get a trigger

Get a trigger with a specified ID.

Usage:

scw container trigger get <trigger-id ...> [arg=value ...]

Args:

NameDescription
trigger-idRequiredID of the trigger to get
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config

List all triggers

List all triggers belonging to a specified Organization or Project.

Usage:

scw container trigger list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_descOrder in which to return results
container-idID of the container the triggers belongs to
namespace-idID of the namespace the triggers belongs to
project-idProject ID to use. If none is passed the default project ID will be used
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all
Region to target. If none is passed will use default region from the config

Update a trigger

Update a trigger with a specified ID.

Usage:

scw container trigger update <trigger-id ...> [arg=value ...]

Args:

NameDescription
trigger-idRequiredID of the trigger to update
nameName of the trigger
descriptionDescription of the trigger
regionDefault: fr-par
One of: fr-par, nl-ams, pl-waw
Region to target. If none is passed will use default region from the config