doctl Command Line Interface (CLI)

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

Features

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.

Documentation

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).

Resources

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:

Limits

  • 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

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

  • 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.

15 August 2022

  • Released v1.79.0 of doctl, the official DigitalOcean CLI. This release adds several databases options sub-commands you can use to look up create-time options for database clusters, such as supported engines and versions.

For more information, see the full release notes.