Documentation for scw function

November 27, 2025 ยท View on GitHub

Function as a Service API.

Cron management commands

Cron management commands.

Create a new cron

Create a new cronjob for a function with the specified ID.

Usage:

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

Args:

NameDescription
function-idUUID of the function to use the cron with
scheduleSchedule of the cron in UNIX cron format
argsArguments to use 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

Delete an existing cron

Delete the cron associated with the specified ID.

Usage:

scw function 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 function 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 crons

List all the cronjobs in a specified region.

Usage:

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

Args:

NameDescription
order-byOne of: created_at_asc, created_at_descOrder of the crons
function-idUUID of the function
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 function cron update <cron-id ...> [arg=value ...]

Args:

NameDescription
cron-idRequiredUUID of the cron to update
function-idUUID of the function to use the cron with
scheduleSchedule of the cron in UNIX cron format
argsArguments to use 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 function

Create or fetch, upload and deploy your function

Create or fetch, upload and deploy your function

Usage:

scw function deploy [arg=value ...]

Args:

NameDescription
namespace-idFunction Namespace ID to deploy to
nameRequiredName of the function to deploy, will be used in namespace's name if no ID is provided
runtimeRequired
One of: unknown_runtime, golang, python, python3, node8, node10, node14, node16, node17, python37, python38, python39, python310, go113, go117, go118, node18, rust165, go119, python311, php82, node19, go120, node20, go121, node22, python312, php83, go122, rust179, go123, go124, python313, rust185, php84
zip-fileRequiredPath of the zip file that contains your code
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

Domain management commands

Domain management commands.

Create a domain name binding

Create a domain name binding for the function with the specified ID.

Usage:

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

Args:

NameDescription
hostnameHostname to create
function-idUUID of the function to associate the domain with
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 domain name binding

Delete a domain name binding for the function with the specified ID.

Usage:

scw function 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 domain name binding

Get a domain name binding for the function with the specified ID.

Usage:

scw function 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 domain name bindings

List all domain name bindings in a specified region.

Usage:

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

Args:

NameDescription
order-byOne of: created_at_asc, created_at_desc, hostname_asc, hostname_descOrder of the domains
function-idUUID of the function the domain is associated with
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

Function management commands

Function management commands.

Create a new function

Create a new function in the specified region for a specified Organization or Project.

Usage:

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

Args:

NameDescription
nameDefault: <generated>Name of the function to create
namespace-idUUID of the namespace the function will be created in
environment-variables.{key}Environment variables of the function
min-scaleMinimum number of instances to scale the function to
max-scaleMaximum number of instances to scale the function to
runtimeOne of: unknown_runtime, golang, python, python3, node8, node10, node14, node16, node17, python37, python38, python39, python310, go113, go117, go118, node18, rust165, go119, python311, php82, node19, go120, node20, go121, node22, python312, php83, go122, rust179, go123, go124, python313, rust185, php84Runtime to use with the function
memory-limitMemory limit of the function in MB
timeoutRequest processing time limit for the function
handlerHandler to use with the function
privacyOne of: unknown_privacy, public, privatePrivacy setting of the function
descriptionDescription of the function
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 function
tags.{index}Tags of the Serverless Function
private-network-idID of the Private Network the function is connected 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 function

Delete the function associated with the specified ID.

Usage:

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

Args:

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

Deploy a function associated with the specified ID.

Usage:

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

Args:

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

Get the function associated with the specified ID.

Usage:

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

Args:

NameDescription
function-idRequiredUUID of the function
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 download URL of a function

Get a download URL for a function associated with the specified ID.

Usage:

scw function function get-download-url <function-id ...> [arg=value ...]

Args:

NameDescription
function-idRequiredUUID of the function to get the download URL for
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 an upload URL of a function

Get an upload URL of a function associated with the specified ID.

Usage:

scw function function get-upload-url <function-id ...> [arg=value ...]

Args:

NameDescription
function-idRequiredUUID of the function to get the upload URL for
content-lengthRequiredSize of the archive to upload in bytes
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 functions

List all your functions.

Usage:

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

Args:

NameDescription
order-byOne of: created_at_asc, created_at_desc, name_asc, name_descOrder of the functions
namespace-idUUID of the namespace the function belongs to
nameName of the function
project-idUUID of the Project the function belongs to
organization-idUUID of the Organization the function 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 function

Update the function associated with the specified ID.

When updating a function, the function is automatically redeployed to apply the changes. This behavior can be changed by setting the redeploy field to false in the request.

Usage:

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

Args:

NameDescription
function-idRequiredUUID of the function to update
environment-variables.{key}Environment variables of the function to update
min-scaleMinimum number of instances to scale the function to
max-scaleMaximum number of instances to scale the function to
runtimeOne of: unknown_runtime, golang, python, python3, node8, node10, node14, node16, node17, python37, python38, python39, python310, go113, go117, go118, node18, rust165, go119, python311, php82, node19, go120, node20, go121, node22, python312, php83, go122, rust179, go123, go124, python313, rust185, php84Runtime to use with the function
memory-limitMemory limit of the function in MB
timeoutProcessing time limit for the function
redeployRedeploy failed function
handlerHandler to use with the function
privacyOne of: unknown_privacy, public, privatePrivacy setting of the function
descriptionDescription of the function
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 function
tags.{index}Tags of the Serverless Function
private-network-idID of the Private Network the function is connected 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

Function namespace management commands

Function namespace management commands.

Create a new namespace

Create a new namespace in a specified Organization or Project.

Usage:

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

Args:

NameDescription
nameDefault: <generated>
environment-variables.{key}Environment variables of the namespace
project-idProject ID to use. If none is passed the default project ID will be used
descriptionDescription of the namespace
secret-environment-variables.{index}.key
secret-environment-variables.{index}.value
tags.{index}Tags of the Serverless Function 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 function namespace delete <namespace-id ...> [arg=value ...]

Args:

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

Get a namespace

Get the namespace associated with the specified ID.

Usage:

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

Args:

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

List all your namespaces

List all existing namespaces in the specified region.

Usage:

scw function 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 namespace
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 namespace associated with the specified ID.

Usage:

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

Args:

NameDescription
namespace-idRequiredUUID of the namespapce
environment-variables.{key}Environment variables of the namespace
descriptionDescription of the namespace
secret-environment-variables.{index}.key
secret-environment-variables.{index}.value
tags.{index}Tags of the Serverless Function 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

Runtime management commands

Runtime management commands.

List function runtimes

List available function runtimes.

Usage:

scw function runtime list [arg=value ...]

Args:

NameDescription
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 function token create [arg=value ...]

Args:

NameDescription
function-idUUID of the function to associate the token with
namespace-idUUID of the namespace to associate the token with
descriptionDescription of the token
expires-atDate on which the token expires
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.

Usage:

scw function 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.

Usage:

scw function 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.

Usage:

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

Args:

NameDescription
order-byOne of: created_at_asc, created_at_descSort order for the tokens
function-idUUID of the function the token is associated with
namespace-idUUID of the namespace the token is associated with
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 function.

Usage:

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

Args:

NameDescription
nameRequiredName of the trigger
function-idRequiredID of the function 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 function 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 function 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 function trigger list [arg=value ...]

Args:

NameDescription
order-byOne of: created_at_asc, created_at_descOrder in which to return results
function-idID of the function 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 function 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