doctl compute droplet create <droplet-name>... [flags]
c
Use this command to create a new Droplet. Required values are name, region, size, and image. For example, to create an Ubuntu 20.04 with 1 vCPU and 1 GB of RAM in the NYC1 datacenter region, run:
doctl compute droplet create --image ubuntu-20-04-x64 --size s-1vcpu-1gb --region nyc1 example.com
Option | Description |
---|---|
--enable-backups | Enables backups for the Droplet Default: false |
--enable-ipv6 | Enables IPv6 support and assigns an IPv6 address Default: false |
--enable-monitoring | Install the DigitalOcean agent for additional monitoring Default: false |
--enable-private-networking | Enables private networking for the Droplet by provisioning it inside of your account's default VPC for the region Default: false |
--format | Columns for output in a comma-separated list. Possible values: ID , Name , PublicIPv4 , PrivateIPv4 , PublicIPv6 , Memory , VCPUs , Disk , Region , Image , VPCUUID , Status , Tags , Features , Volumes |
--help , -h | Help for this command |
--image | An ID or slug indicating the image the Droplet will be based-on (e.g. ubuntu-20-04-x64 ). Use the commands under doctl compute image to find additional images. (required) |
--no-header | Return raw data with no headers Default: false |
--region | A slug indicating the region where the Droplet will be created (e.g. nyc1 ). Run doctl compute region list for a list of valid regions. (required) |
--size | A slug indicating the size of the Droplet (e.g. s-1vcpu-1gb ). Run doctl compute size list for a list of valid sizes. (required) |
--ssh-keys | A list of SSH key fingerprints or IDs of the SSH keys to embed in the Droplet's root account upon creation |
--tag-name | A tag name to be applied to the Droplet |
--tag-names | A list of tag names to be applied to the Droplet |
--user-data | User-data to configure the Droplet on first boot |
--user-data-file | The path to a file containing user-data to configure the Droplet on first boot |
--volumes | A list of block storage volume IDs to attach to the Droplet |
--vpc-uuid | The UUID of a non-default VPC to create the Droplet in |
--wait | Wait for Droplet creation to complete before returning Default: false |
Command | Description |
---|---|
doctl compute droplet | Manage virtual machines (Droplets) |
Option | Description |
---|---|
--access-token , -t | API V2 access token |
--api-url , -u | Override default API endpoint |
--config , -c | Specify a custom config file Default:
|
--context | Specify a custom authentication context name |
--output , -o | Desired output format [text|json] Default: text |
--trace | Show a log of network activity while performing a command Default: false |
--verbose , -v | Enable verbose output Default: false |