Install and configure doctl, the official DigitalOcean command-line client (CLI).
doctl Command Line Interface (CLI)
Last verified 15 Apr 2020
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. You can also manage AI resources, like agents and knowledge bases, and run serverless inference requests against hosted models.
Official doctl builds are available for Windows, macOS, and Linux.
Documentation
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 in our documentation and on the DigitalOcean community site:
- How to Work with DigitalOcean Load Balancers Using doctl
- How To Secure Web Server Infrastructure With DigitalOcean Cloud Firewalls Using doctl
- How To Work with DigitalOcean Block Storage Using doctl
Limits
doctlsupports managing Spaces access keys withdoctl spaces keys, but does not support object storage operations, like uploading or downloading files. Because the Spaces API is S3-compatible, you can use S3-compatible command line tools likes3cmdto manage the contents of your buckets.
Latest Updates
19 November 2026
-
Released v2.7.0 of doctl, the official DigitalOcean CLI. This release adds an
--enable-insights-logsflag todoctl registries createanddoctl kubernetes cluster createfor sending a new registry’s or cluster’s logs to Insights, and a--turn-typeflag todoctl evaluation metric listanddoctl evaluation custom-metric createfor single-turn and multi-turn metrics.
17 November 2026
-
Released v2.6.0 of doctl, the official DigitalOcean CLI. This release adds a
doctl compute microvm updatecommand for changing a running or paused MicroVM’s name, tags, and auto-pause idle timeout.
13 November 2026
-
Released v2.5.0 of doctl, the official DigitalOcean CLI. This release adds a
doctl harness-runtime regions listcommand, support for the MiniMax Code harness, and a--specflag fordoctl harness-runtime updatethat changes an existing session’s tools, environment variables, and secrets.
For more information, see the full release notes.