doctl compute droplet create

Go to Navigation

Usage

doctl compute droplet create <droplet-name>... [flags]

Aliases

c

Description

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

Flags

OptionDescription
--enable-backupsEnables backups for the Droplet
Default: false
--enable-ipv6Enables IPv6 support and assigns an IPv6 address
Default: false
--enable-monitoringInstall the DigitalOcean agent for additional monitoring
Default: false
--enable-private-networkingEnables private networking for the Droplet by provisioning it inside of your account's default VPC for the region
Default: false
--formatColumns 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, -hHelp for this command
--imageAn 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-headerReturn raw data with no headers
Default: false
--regionA 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)
--sizeA 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-keysA list of SSH key fingerprints or IDs of the SSH keys to embed in the Droplet's root account upon creation
--tag-nameA tag name to be applied to the Droplet
--tag-namesA list of tag names to be applied to the Droplet
--user-dataUser-data to configure the Droplet on first boot
--user-data-fileThe path to a file containing user-data to configure the Droplet on first boot
--volumesA list of block storage volume IDs to attach to the Droplet
--vpc-uuidThe UUID of a non-default VPC to create the Droplet in
--waitWait for Droplet creation to complete before returning
Default: false
CommandDescription
doctl compute dropletManage virtual machines (Droplets)

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false