Documentation for scw jobs

February 17, 2026 ยท View on GitHub

This API allows you to manage your Serverless Jobs.

Create a new job definition in a specified Project

Create a new job definition in a specified Project.

Usage:

scw jobs definition create [arg=value ...]

Args:

NameDescription
nameRequired
Default: <generated>
Name of the job definition
cpu-limitRequiredCPU limit of the job (in mvCPU)
memory-limitRequiredMemory limit of the job (in MiB)
local-storage-capacityLocal storage capacity of the job (in MiB)
image-uriRequiredImage to use for the job
commandDeprecatedStartup command. If empty or not defined, the image's default command is used.
startup-command.{index}Job startup command. Overrides the default defined in the job image.
args.{index}Job arguments. Overrides the default arguments defined in the job image.
project-idProject ID to use. If none is passed the default project ID will be used
environment-variables.{key}Environment variables of the job
descriptionDescription of the job
job-timeoutTimeout of the job in seconds
cron-schedule.schedule
cron-schedule.timezone
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 job definition by its unique identifier

Delete an existing job definition by its unique identifier.

Usage:

scw jobs definition delete <job-definition-id ...> [arg=value ...]

Args:

NameDescription
job-definition-idRequiredUUID of the job definition 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 job definition by its unique identifier

Get a job definition by its unique identifier.

Usage:

scw jobs definition get <job-definition-id ...> [arg=value ...]

Args:

NameDescription
job-definition-idRequiredUUID of the job definition 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 job definitions with filters

List all your job definitions with filters.

Usage:

scw jobs definition list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_desc
project-id
organization-id
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

Run an existing job definition using its unique identifier and create a new job run

Run an existing job definition using its unique identifier and create a new job run.

Usage:

scw jobs definition start <job-definition-id ...> [arg=value ...]

Args:

NameDescription
job-definition-idRequiredUUID of the job definition to start
commandDeprecatedContextual startup command for this specific job run.
startup-command.{index}Contextual startup command for this specific job run.
args.{index}Contextual arguments for this specific job run.
environment-variables.{key}Contextual environment variables for this specific job run
replicasNumber of jobs to run
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

Update an existing job definition associated with the specified unique identifier

Update an existing job definition associated with the specified unique identifier.

Usage:

scw jobs definition update <job-definition-id ...> [arg=value ...]

Args:

NameDescription
job-definition-idRequiredUUID of the job definition to update
nameName of the job definition
cpu-limitCPU limit of the job (in mvCPU)
memory-limitMemory limit of the job (in MiB)
local-storage-capacityLocal storage capacity of the job (in MiB)
image-uriImage to use for the job
commandDeprecatedStartup command. If empty or not defined, the image's default command is used.
startup-command.{index}Job startup command. Overrides the default defined in the job image.
args.{index}Job arguments. Overrides the default arguments defined in the job image.
environment-variables.{key}Environment variables of the job
descriptionDescription of the job
job-timeoutTimeout of the job in seconds
cron-schedule.schedule
cron-schedule.timezone
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 job run by its unique identifier

Get a job run by its unique identifier.

Usage:

scw jobs run get <job-run-id ...> [arg=value ...]

Args:

NameDescription
job-run-idRequiredUUID of the job run 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 job runs with filters

List all job runs with filters.

Usage:

scw jobs run list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_desc
job-definition-id
project-id
stateOne of: unknown_state, initialized, validated, queued, running, succeeded, failed, interrupting, interrupted, retrying
states.{index}One of: unknown_state, initialized, validated, queued, running, succeeded, failed, interrupting, interrupted, retrying
reasons.{index}One of: unknown_reason, invalid_request, timeout, cancellation, technical_error, image_not_found, invalid_image, memory_usage_exceeded, storage_usage_exceeded, exited_with_error, secret_disabled, secret_not_found, quota_exceeded
organization-id
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

Stop a job run using its unique identifier

Stop a job run using its unique identifier.

Usage:

scw jobs run stop [arg=value ...]

Args:

NameDescription
job-run-idRequiredUUID of the job run to stop
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

Wait for a job run to reach a stable state

Wait for a job run to reach a stable state. This is similar to using --wait flag.

Usage:

scw jobs run wait <job-run-id ...> [arg=value ...]

Args:

NameDescription
job-run-idRequired
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

Create a secret reference within a job definition

Create a secret reference within a job definition.

Usage:

scw jobs secret create [arg=value ...]

Args:

NameDescription
job-definition-idRequiredUUID of the job definition
secrets.{index}.secret-manager-id
secrets.{index}.secret-manager-version
secrets.{index}.path
secrets.{index}.env-var-name
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 secret reference within a job definition

Delete a secret reference within a job definition.

Usage:

scw jobs secret delete [arg=value ...]

Args:

NameDescription
secret-idRequiredUUID of the secret reference within the job
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 secret references within a job definition

Get a secret references within a job definition.

Usage:

scw jobs secret get [arg=value ...]

Args:

NameDescription
secret-idRequiredUUID of the secret reference within the job
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 secrets references within a job definition

List secrets references within a job definition.

Usage:

scw jobs secret list [arg=value ...]

Args:

NameDescription
job-definition-idRequiredUUID of the job definition
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

Update a secret reference within a job definition

Update a secret reference within a job definition.

Usage:

scw jobs secret update [arg=value ...]

Args:

NameDescription
secret-idRequiredUUID of the secret reference within the job
secret-manager-versionVersion of the secret in Secret Manager
pathPath of the secret to mount inside the job (either path or env_var_name must be set)
env-var-nameEnvironment variable name used to expose the secret inside the job (either path or env_var_name must be set)
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