resources

Setup

brew install doctl

Auth

Log into digitalocean.com, select the API tab, generate a new token, and copy to clipboard

doctl auth init

Paste your API key and hit enter

Request

doctl compute droplet list

Request with json output

doctl compute droplet list -o json

References