Last active
September 11, 2019 09:26
-
-
Save ahmed-abdelazim/50cdec47bd2f14e4532b4fb8adec26d0 to your computer and use it in GitHub Desktop.
Install doctl (Digital Ocean official command line utility) on Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install doctl | |
| sudo apt update | |
| sudo apt -y install snapd | |
| sudo snap install doctl | |
| ln -s /snap/bin/doctl /usr/local/bin | |
| # initiate doctl | |
| # Generate access token herer https://cloud.digitalocean.com/account/api/tokens | |
| doctl auth init | |
| # list current droplets in json format | |
| doctl compute droplet list -o json | |
| # note that full config is herer /root/.config/doctl/config.yaml | |
| # create droplet | |
| doctl compute droplet create python --size s-1vcpu-1gb --image docker-18-04 --region nyc1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment