whitelist IP in digital ocean firewall

doctl compute firewall add-rules rulesID --inbound-rules protocol:tcp,ports:6969,address:192.168.3.1/32 

list all

#list firewall
doctl compute firewall list
### list all droplet
doctl compute droplet list
#list all ssh-key
doctl compute ssh-key list
#list snapshot
doctl compute snapshot list
#list spaces
doctl compute cdn list
#list volumes
doctl compute volume list
#list vpc network
doctl vpcs list
#droplet detail
doctl compute droplet get id_droplet

create new droplet from snapshot

#list snapshot
doctl compute snapshot list
#list vpc
doctl vpcs list

#then
doctl compute droplet create \
    --image snapshot_id \
    --size s-4vcpu-8gb \
    --region sgp1 \
    --vpc-uuid vpc_id \
    droplet-name

list all compute with billing with doctl

#first, export to json file
doctl compute droplet ls --output json > droplet.json

#then convert it into csv using jq
cat droplet.json | jq -r '.[] | [ .id, .name, .memory, .vcpus, .disk, .region.slug, .image.name, .size.slug, .size.memory, .size.vcpus, .size.disk, .size.price_monthly] | @csv' > droplet.csv