DigitalOcean doctl
$ doctl Official High RiskDigitalOcean's official CLI (doctl) manages Droplets, Kubernetes clusters, App Platform, Databases, and Spaces from a single Go binary with --output json (-o json), --format field selection, named --context switching, and --force guards on deletes.
brew install doctl doctl provides fast single-binary --output json coverage of DigitalOcean APIs with trivial shell ergonomics.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean --output json (-o json) and --format column selection across commands, backed by fast Go binary startup.
- Supports
-o jsonand--formatglobally
Named --context isolation and mandatory --force confirmation gate on destructive deletes protect against accidental deletion.
- Destructive
deletecommands prompt unless--forceis passed
Single static Go binary available via Homebrew, Snap, and release tarballs across macOS, Linux, and Windows.
- Single Go binary via
brew install doctl
Covers DigitalOcean Compute, DOKS, App Platform, and Networking cleanly.
- Unified control over DigitalOcean infrastructure
Official digitalocean/doctl repository actively maintained under Apache-2.0.
- First-party
digitalocean/doctlrepository
Consistent --help output and well-organized DigitalOcean reference docs.
- Complete online reference at docs.digitalocean.com
Security, Auth & Guardrails
Stores named context tokens in ~/.config/doctl/config.yaml or reads DIGITALOCEAN_ACCESS_TOKEN.
CLI is free (Apache-2.0); creating Droplets or managed clusters incurs DigitalOcean billing.
# doctl Agent Rules - Always pass `--output json` and verify `doctl account get --output json` first. - Pin `--context` when working across multiple DigitalOcean teams. - Never pass `--force` (`-f`) on `delete` subcommands without user confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
doctl account get --output json
Returns account email, status, and droplet limits as clean JSON.
doctl compute droplet list --output json
Lists active Droplets with IPs, regions, and status in structured JSON.
Strengths for Agents
- + Fast single Go binary with universal
--output jsonsupport. - + Destructive
deletecommands require explicit--forcein non-interactive runs. - + Named
--contextswitching keeps personal and team tokens separated.
Caveats & Pitfalls
- ! Lacks a native
--dry-runflag on resource provisioning commands. - !
--output jsonignores--formatcolumn filters, emitting full resource JSON.