In the Chapter 12, Creating And Managing A Docker Swarm Cluster in Amazon Web Services, we installed AWS Command Line Interface (CLI) (https://aws.amazon.com/cli/) that helped us with some of the tasks. DigitalOcean has a similar interface called doctl. Should we install it? I don't think we need a CLI for DigitalOcean. Their API is clean and well defined, and we can accomplish everything a CLI would do with simple curl requests. DigitalOcean proves that a well designed API goes a long way and can be the only entry point into the system, saving us the trouble of dealing with middle-man applications like CLIs.
Before we start using the API, we should generate an access token that will serve as the authentication method.
Please open the DigitalOcean tokens screen (https://cloud.digitalocean.com/settings/api/tokens) and click theGenerate New Token button...