# Functions How-Tos Generated on 17 Mar 2026 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. ## Create [How to Create Functions](https://docs.digitalocean.com/products/functions/how-to/create-functions/index.html.md): Create and deploy a function using the command line or control panel. [How to Develop Functions](https://docs.digitalocean.com/products/functions/how-to/develop-functions/index.html.md): Improve your serverless development with this guidance on invoking, iterating on, and observing DigitalOcean Functions. [How to Destroy Functions](https://docs.digitalocean.com/products/functions/how-to/destroy/index.html.md): You can destroy individual functions at any time. You can also destroy all functions in a namespace at once by resetting the namespace. [How to Include Static Files](https://docs.digitalocean.com/products/functions/how-to/include-files/index.html.md): Node.js, Python, and PHP functions include all the files in their directory when deployed. Functions written in Go must use the [embed package](https://pkg.go.dev/embed) to refer to these files. [How to Set Custom CORS Headers](https://docs.digitalocean.com/products/functions/how-to/set-custom-cors-headers/index.html.md): Set custom CORS headers. [How to Structure Projects](https://docs.digitalocean.com/products/functions/how-to/structure-projects/index.html.md): Projects contain functions that are grouped into packages and configured by a project.yml file. ## Configure [How to Configure Functions](https://docs.digitalocean.com/products/functions/how-to/configure-functions/index.html.md): Configure the resource limits, runtime, and environment of your DigitalOcean Functions. [How to Schedule Functions](https://docs.digitalocean.com/products/functions/how-to/schedule-functions/index.html.md): Schedule functions to run periodically. [How to Forward Logs](https://docs.digitalocean.com/products/functions/how-to/forward-logs/index.html.md): You can configure functions to forward console and error logs from the function to a third-party logging service. Functions supports Papertrail, Datadog, and Logtail. ## Deploy and Use [How to Call Long-running Functions Asynchronously](https://docs.digitalocean.com/products/functions/how-to/async-functions/index.html.md): You can invoke long-running functions asynchronously using the `doctl` command line tool or the Functions REST API. You cannot run functions invoked as web functions asynchronously. [How to Deploy Functions to App Platform](https://docs.digitalocean.com/products/functions/how-to/deploy-to-app-platform/index.html.md): Use App Platform to deploy your Functions as a component of a production app. ## Namespaces [How to Create Namespaces to Organize DigitalOcean Functions](https://docs.digitalocean.com/products/functions/how-to/create-namespaces/index.html.md): Namespaces are a level of isolation and organization for functions and their settings. All functions and projects must be created in a namespace. [How to Destroy Namespaces](https://docs.digitalocean.com/products/functions/how-to/destroy-namespaces/index.html.md): Namespaces are a level of isolation and organization for functions and their settings. All functions and projects must be created in a namespace. Destroying a namespace permanently destroys all of its projects and functions. ## Security [How to Manage Namespace Access Keys](https://docs.digitalocean.com/products/functions/how-to/manage-namespace-access/index.html.md): Create and manage user-specific authentication credentials for Functions namespaces.