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)
14 articles

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

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.

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.

28 April 2020

  • Released v1.43.0 of doctl, the official DigitalOcean CLI. This release updates container registry features from beta to early access.

23 April 2020

  • Released v1.42.0 of doctl, the official DigitalOcean CLI. This release includes a number of small UI improvements and support for additional container registry beta features.

For more information, see the full release notes.