doctl serverless

Go to Navigation

Aliases

sandbox, sbx, sls

Description

The doctl serverless commands provide an environment for developing and testing serverless functions. One or more local file system areas are employed, along with a ‘functions namespace’ in the cloud. A one-time install of the serverless software is needed (use doctl serverless install to install the software, then doctl serverless connect to connect to a functions namespace provided with your account). Other doctl serverless commands are used to develop and test.

Flags

Option Description
--help , -h Help for this command
Command Description
doctl doctl is a command line interface (CLI) for the DigitalOcean API.
doctl serverless activations Work with activation records
doctl serverless connect Connects local serverless support to your functions namespace
doctl serverless deploy Deploy a functions project to your functions namespace
doctl serverless functions Work with the functions in your namespace
doctl serverless get-metadata Obtain metadata of a functions project
doctl serverless init Initialize a 'functions project' directory in your local file system
doctl serverless install Installs the serverless support
doctl serverless status Provide information about serverless support
doctl serverless undeploy Removes resources from your functions namespace
doctl serverless uninstall Removes the serverless support
doctl serverless upgrade Upgrades serverless support to match this version of doctl
doctl serverless watch Watch a functions project directory, deploying incrementally on change

Global Flags

Option Description
--access-token, -t API V2 access token
--api-url, -u Override default API endpoint
--config, -c Specify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--context Specify a custom authentication context name
--output, -o Desired output format [text|json]
Default: text
--trace Show a log of network activity while performing a command
Default: false
--verbose, -v Enable verbose output
Default: false