Skip to content

Instantly share code, notes, and snippets.

@ahmed-abdelazim
Last active September 11, 2019 09:26
Show Gist options
  • Select an option

  • Save ahmed-abdelazim/50cdec47bd2f14e4532b4fb8adec26d0 to your computer and use it in GitHub Desktop.

Select an option

Save ahmed-abdelazim/50cdec47bd2f14e4532b4fb8adec26d0 to your computer and use it in GitHub Desktop.
Install doctl (Digital Ocean official command line utility) on Debian
# 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