home / cloud / doctl

doctl

Official · DigitalOcean
3.4k

Official DigitalOcean CLI for managing droplets, Kubernetes, apps, DNS, registries, databases, and network resources.

$brew install doctl
Language
Go
Stars
3,402
Category
Cloud & Storage
Agent
Ready
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis

doctl is DigitalOcean's official CLI for managing account, compute, networking, app platform, Kubernetes, database, and registry resources from the shell. It combines direct API-style CRUD operations with workflow helpers like kubeconfig generation, Docker registry login, and app log or console access.

What It Enables
  • Create, inspect, update, and delete DigitalOcean resources such as Droplets, load balancers, firewalls, VPCs, DNS records, databases, apps, and registries.
  • Fetch kubeconfig, manage DOKS clusters and node pools, and log Docker into Container Registry so follow-up tools like kubectl and Docker can operate with the current account context.
  • Tail app logs, start app console sessions, manage deployments or serverless resources, and inspect account, billing, and action history from the terminal.
Agent Fit
  • Global --output json plus a consistent noun-verb command structure make inspect, change, and verify loops straightforward.
  • Most operational commands are usable non-interactively once credentials are in place, and explicit --force, --wait, retry, and context flags help unattended automation.
  • The weakest spots are setup and live-session flows: auth init prompts for a token, some deletes ask for confirmation, and console or streaming commands are less automation-friendly than plain resource CRUD.
Caveats
  • You need a DigitalOcean API token and local auth context; auth init expects a real terminal unless you pass a token via flags or environment.
  • Some commands mainly hand off to other tools or live sessions, such as Docker registry login, kubeconfig setup for kubectl, and app console or log streaming.