doctl Command Line Interface (CLI)

doctl is the official DigitalOcean command line interface (CLI).


doctl allows you to interact with the DigitalOcean API via the command line. It supports most functionality found in the control panel. You can create, configure, and destroy DigitalOcean resources like Droplets, Kubernetes clusters, firewalls, load balancers, database clusters, domains, and more.

Official doctl builds are available for Windows, macOS, and Linux.


Install and configure doctl, the official DigitalOcean command-line client (CLI).
A complete reference for every command provided by the doctl command line interface (CLI).


doctl is open source software. Find the source code or report issues at the digitalocean/doctl repository on GitHub.

Find additional tutorials on the DigitalOcean community site:


  • doctl does not support the DigitalOcean Spaces API. However, because the Spaces API is S3-compatible, you can use S3-compatible command line tools like s3cmd to manage Spaces.

Latest Updates

15 November 2022

  • Released v1.86.0 of doctl, the official DigitalOcean CLI. This release includes new doctl apps list-buildpacks and doctl apps upgrade-buildpack subcommands allowing you to manually upgrade an app’s buildpacks to their latest major versions.

18 October 2022

  • Released v1.84.0 of doctl, the official DigitalOcean CLI. This release adds a --wait flag to the doctl database create subcommand.

7 October 2022

  • Released v1.83.0 of doctl, the official DigitalOcean CLI. This release adds updated confirmation dialogs and a --wait flag to the doctl compute load-balancer create subcommand.

For more information, see the full release notes.