browse
doctl/DigitalOcean CLI
DigitalOceanCommand 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
| Flag | Type | Description |
|---|---|---|
--context | string | Named authentication context to use |
--output/-o | enum [text, json] | Output format |
--access-token | string | DigitalOcean API access token |
03Authentication
Methods
access-tokenconfig-file
Env vars
DIGITALOCEAN_ACCESS_TOKENConfig files
~/.config/doctl/config.yamlSetup
doctl auth init04Install
brew install doctl05Capabilities
Reference
binary
doctlcheck
doctl versionauth
access-token, config-fileformats
text, jsonjson flag
-o jsonversion
1.151.0