Doctl is command-line utility like aws cli to manage resources in digitalocean.
Installation instructions: https://github.com/digitalocean/doctl#installing-doctl
Getting started: https://www.digitalocean.com/community/tutorials/how-to-use-doctl-the-official-digitalocean-command-line-client
DOCTL cheatsheet.
doctl compute droplet list
doctl compute droplet list 'test*
doctl compute image list-distribution
Use Slug
name to create droplet.
doctl compute region list
doctl compute ssh-key list
doctl compute ssh-key create sumit-mbp --public-key="<ssh-public-key>"
doctl compute tag create <tag-name>
doctl compute tag create sumit
doctl compute droplet create sumit-master-1 --size 512mb --image ubuntu-16-04-x64 --region blr1 --ssh-keys 22432270 --tag-name sumit
doctl compute droplet create sumit-master-2 --size 4gb --image ubuntu-16-04-x64 --region blr1 --ssh-keys 22432270 --enable-private-networking --tag-name sumit
doctl compute load-balancer create --name sumit-master-lb --region blr1 --forwarding-rules entry_protocol:tcp,entry_port:5521,target_protocol:tcp,target_port:8443 --tag-name sumit
doctl compute droplet delete test-sumit
doctl compute droplet delete sumit-master-0 sumit-master-1 sumit-master-2 sumit-worker-1