doctl-compute-droplet
manage DigitalOcean Droplet virtual machines
TLDR
SYNOPSIS
doctl compute droplet command [options]
DESCRIPTION
doctl compute droplet manages DigitalOcean Droplets (virtual machines). It provides full lifecycle control including creation, configuration, monitoring, and deletion of cloud servers.Droplets can be created with various configurations specifying size, region, image, and networking options. The command supports actions like reboot, power cycle, resize, and snapshot creation.Integration with SSH keys enables secure access, and the ssh subcommand provides convenient direct connection to droplets by name.
PARAMETERS
COMMAND
Operation: list, create, get, delete, ssh, etc.list
List all droplets.create NAME
Create new droplet.--size SLUG
Droplet size slug.--image IMAGE
OS image slug or ID.--region REGION
Data center region.--ssh-keys IDS
SSH key IDs or fingerprints.--vpc-uuid UUID
UUID of a non-default VPC to create the Droplet in.--enable-backups
Enable automatic daily backups.--enable-monitoring
Install the DigitalOcean monitoring agent.--tag-name TAG
Apply a tag to the Droplet.--user-data DATA
Shell script or cloud-init data to run on first boot.--wait
Wait for Droplet creation to complete before returning.delete ID
Delete droplet.ssh NAME
SSH into droplet.--help
Display help information.
CAVEATS
Droplet creation incurs charges immediately. Deletion is irreversible. Some actions require droplet power-off. Region availability varies for sizes and images.
HISTORY
doctl compute droplet is a core component of the doctl CLI, providing command-line management of DigitalOcean's primary compute service since the tool's initial release.
