Reference Home

Developer Reference

Learn about DigitalOcean's APIs, CLI, Terraform provider, and open source contributions.

DigitalOcean provides several command-line interfaces (CLIs) and application programming interfaces (APIs) for managing your resources. This section provides the reference materials for these offerings, as well as resources from the open source community.

Programmatically manage your Droplets, Spaces, and other DigitalOcean resources using conventional HTTP requests. You can use our RESTful APIs for any action that you can perform through the control panel.
Manage your DigitalOcean resources from the command line with doctl, our open-source command line interface (CLI).
Deploy and change many resources simultaneously using the open source Terraform tool.
Official and community-created client libraries that let you use the DigitalOcean API in a variety of programming languages.
We use and contribute to open source software.

Latest Updates

28 September 2022

  • Released v1.82.0 of doctl, the official DigitalOcean CLI. This release upgrades godo to v1.86.0 and adds support for building App Platform apps locally.

20 September 2022

  • When you create a Droplet using the API (POST /v2/droplets), you can now specify a region (like NYC) instead of a specific datacenter (like NYC3). The API then creates your Droplet in any available datacenter within your specified region. For example, if you want to create a Droplet in San Francisco, you can use the region sfo to guarantee that the Droplet will be in SFO1, SFO2, or SFO3. Additionally, you can omit the region entirely (or set it to an empty string) to create a Droplet in any available region.

  • Released v1.81.0 of doctl, the official DigitalOcean CLI. This release adds two new pieces of functionality. When creating a reserved IP, you can now specify the project it should be placed in. It also makes the --region flag an optional argument for the compute droplet create sub-command.

  • Released v1.80.0 of doctl, the official DigitalOcean CLI. This release adds support for creating and managing multiple namespaces for serverless functions.

9 September 2022

  • Rocky 9 (rockylinux-9-x64) base image is now available in the control panel and via the API.

For more information, see the full release notes.