I stand with the people of Ukraine during this heinous assault on their freedoms, their independence, and their very lives.

2021-09-26

DigitalOcean CLI

 26 Sep 2021  Snippets

DigitalOcean CLI

Droplets

List droplets:

doctl compute droplet list --format "ID,Name,PublicIPv4,Status"

Delete droplets:

doctl compute droplet delete DROPLET_ID
Snapshots

List snapshots:

# List Snapshots
doctl compute snapshot list --format "ID,Name"

Delete snapshot:

doctl compute snapshot delete SNAPSHOT_ID

Create snapshot from droplet:

doctl compute droplet-action snapshot DROPLET_ID --snapshot-name SNAPSHOT_NAME

Create Droplet from Snapshot:

doctl compute droplet create DROPLET_NAME --size s-2vcpu-2gb-amd --image SNAPSHOT_ID --region nyc3 --ssh-keys "SSH_KEY_ID1,SSH_KEY_ID2,SSH_KEY_ID3"
Shell Aliases & Functions
alias do-droplets='doctl compute droplet list --format "ID,Name,PublicIPv4,Status"' 
alias do-snapshots='doctl compute snapshot list --format "ID,Name"'

do-droplet-delete() { doctl compute droplet delete "[email protected]" }
do-snapshot-delete() { doctl compute snapshot delete "[email protected]" }
Webmentions & Comments

ETH Deposit Address

BTC Deposit Address

Copyright © Paramdeo Singh. Made with ☕️ in Guyana. All Rights Reserved.

Last Site Build on 18 Mar 2022

1MB Club Badge

Paramdeo Singh Guyana

Riding the wave of consciousness in this treacherous mortal sea.

Technology Design Strategy Literature Personal Blogs