| name | doctl |
| description | 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. |
doctl
DigitalOcean CLI. Already installed and configured; invoke as doctl.
Workflow
- Read the relevant reference file for the resource type
- Run
doctl commands via Bash
- Use
-o json for machine-readable output; default text is fine for
display
Global flags
-o json # JSON output
--no-header # suppress column headers
--format <cols> # comma-separated column names to display
--context <name> # auth context (multiple accounts)
Reference files
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 |
Common lookups
doctl compute region list
doctl compute size list
doctl compute image list --public
doctl account get
doctl auth list