Functions Reference

Functions are blocks of code that run on demand without the need to manage any infrastructure. Develop on your local machine, test your code from the command line (using doctl), then deploy to a production namespace or App Platform — no servers required. Learn more about functions.


The DigitalOcean API

The DigitalOcean API lets you manage DigitalOcean resources programmatically using conventional HTTP requests. All the functionality available in the DigitalOcean Control Panel is also available through the API.

You can use the API to manage your Functions namespaces.

The DigitalOcean Command Line Client, doctl

doctl supports a command line workflow for developing functions locally and managing their deployment to Functions. See the doctl serverless documentation or use doctl serverless --help for more information.

The sub-commands of doctl serverless manage local and cloud functions during development and deployment.

Other Reference Material

Each activation of a function creates an activation record, which you can retrieve to learn more about the process. Activation records are a JSON object, the structure of which is documented here.
The project.yml file is a YAML configuration file in the root directory of a project which lets you define environment variables, parameters, and other properties for the project and the packages and functions within it.
Functions currently has five different runtimes, representing four different programming languages: Go 1.17 Node.js 14 Node.js 18 PHP 8 Python 3.9 You can also view the list of supported runtimes with doctl serverless status –languages.