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 App Platform — no servers required. Learn more about functions.

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 14 with AWS Lambda compatibility PHP 8 Python 3.9 You can also view the list of supported runtimes with doctl serverless status –languages.