browse
doctl/

DigitalOcean CLI

DigitalOcean

Command line interface for interacting with the DigitalOcean API and managing cloud resources.

Cloud ProvidersJSON
01Agent Notes

doctl follows `doctl <resource> <action>` pattern. Pass `-o json` for structured output. Resources include: compute, databases, kubernetes, apps, registry. Use `doctl compute droplet list -o json` for VM listing.


02Global Flags
FlagTypeDescription
--contextstringNamed authentication context to use
--output/-oenum [text, json]Output format
--access-tokenstringDigitalOcean API access token

03Authentication
Methods
access-tokenconfig-file
Env vars
DIGITALOCEAN_ACCESS_TOKEN
Config files
~/.config/doctl/config.yaml
Setupdoctl auth init

04Install
brew install doctl

05Capabilities
Reference
binarydoctl
checkdoctl version
authaccess-token, config-file
formatstext, json
json flag-o json
version1.151.0