Function

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.


A function is a block of code that encapsulates logic to respond to an event or perform a task.

Each function has one or more source files and can belong to a package.

In a project’s project.yml configuration, functions are called actions.