DigitalOcean CLI (doctl) for managing cloud infrastructure. Use for: Droplets, container registries, Spaces storage, firewalls, load balancers, VPCs, reserved IPs, domains, or DNS. Triggers on 'doctl' or any DigitalOcean resource request.
DigitalOcean CLI. Already installed and configured; invoke as doctl.
doctl commands via Bash-o json for machine-readable output; default text is fine for
display-o json # JSON output
--no-header # suppress column headers
--format <cols> # comma-separated column names to display
--context <name> # auth context (multiple accounts)
Load the appropriate file before working with a resource:
| Domain | File |
|---|---|
| Droplets | references/droplets.md |
| Container Registries |
references/registries.md |
| Spaces (object storage) | references/spaces.md |
| Firewalls, LBs, VPCs, IPs | references/networking.md |
| Domains / DNS | references/dns.md |
doctl compute region list # region slugs (nyc3, sfo3, etc.)
doctl compute size list # Droplet size slugs
doctl compute image list --public # OS image slugs
doctl account get # current auth account
doctl auth list # all configured auth contexts