APIs and CLIs

DigitalOcean provides several command-line interfaces (CLIs) and application programming interfaces (APIs) for managing your DigitalOcean resources.

DigitalOcean Command-Line Interface (doctl)

The doctl CLI enables you to manage your DigitalOcean resources from the command line.

Resource Description
How-Tos Guides on topics like how to install and configure doctl.
Reference A complete reference for every command provided by doctl.

DigitalOcean API

This API lets you programmatically manage your Droplets and other resources using conventional HTTP requests.

Resource Description
Tutorials A few tutorials on how to authenticate with and use the DigitalOcean API
Reference A reference for the DigitalOcean API
Libraries Client libraries for the DigitalOcean API for various programming languages

Spaces API

Programmatically manage your data with Spaces’ AWS S3-compatible object storage API.

Resource Description
Reference A reference for the Spaces API

Droplet Metadata API

The Droplet Metadata API Allows a Droplet to access data about itself, and can be queried by sending a request to the Droplet's metadata endpoint.

Resource Description
Reference A reference for the Droplet Metadata API

OAuth API

The DigitalOcean OAuth API enables third-party applications to obtain limited access to DigitalOcean user accounts.

Resource Description
Reference A reference for the OAuth API

Latest Updates

15 June 2020

  • v1.20.0 of the DigitalOcean Terraform Provider is now available. This release includes the addition of a digitalocean_tags data source and improvements to other tag-related resources.

10 June 2020

  • Released v1.45.1 of doctl, the official DigitalOcean CLI. This release updates doctl's Snap packaging that allow Snap users to log in to DigitalOcean Container Registry using the doctl registry login command. To grant access doctl access to your Docker configuration, run snap connect doctl:dot-docker.

3 June 2020

  • v1.19.0 of the DigitalOcean Terraform Provider is now available. This release includes initial support the DigitalOcean Container Registry.

2 June 2020

  • Released v1.45.0 of doctl, the official DigitalOcean CLI. This release includes new doctl kubernetes 1-click list and doctl compute droplet 1-click list subcommands.

  • Released v1.44.0 of doctl, the official DigitalOcean CLI. This release includes support for specifying a non-default VPC when creating Droplets, load balancers, and Kubernetes clusters. It also adds the ability to set an expiration time for container registry credentials. This can be useful when calling doctl registry login as part of a CI/CD process. A new doctl 1-click list subcommand is now also available.

For more information, see the full release notes.