Install and configure doctl, the official DigitalOcean command-line client (CLI).
doctl Command Line Interface (CLI)
Last verified 29 Jul 2026
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
29 September 2026
-
Released v1.175.0 of doctl, the official DigitalOcean CLI. This release deprecates the
doctl gradientcommands.doctl gradient agentcommands have no CLI replacement. To manage agents, use the control panel or API.doctl gradient knowledge-basecommands work but will be removed in a future release. Usedoctl knowledge-baseinstead.To list models, regions, and OpenAI keys, use the
doctl serverless-inferencecommands.
23 July 2026
-
Released v1.164.0 of doctl, the official DigitalOcean CLI. This release adds commands for managing Secrets Manager secrets and Network File Storage access points.
25 June 2026
-
Released v1.163.0 of doctl, the official DigitalOcean CLI. This release adds a
vector-databasescommand group for managing vector databases.
For more information, see the full release notes.