> > reference > compute > volume

doctl compute volume

Go to Navigation

Usage

doctl compute volume [flags]

Description

The sub-commands of doctl compute volume manage your block storage volumes.

Block storage volumes provide expanded storage capacity for your Droplets, ranging in size from 1GiB to 16TiB.

Volumes function as raw block devices, meaning they appear to the operating system as locally attached storage which can be formatted using any filesystem supported by the OS. They can be moved between Droplets located in the same region as the volume.

Flags

OptionDescription
--help, -hHelp for this command
CommandDescription
doctl computeDisplay commands that manage infrastructure
doctl compute volume createCreate a block storage volume
doctl compute volume deleteDelete a block storage volume
doctl compute volume getRetrieve an existing block storage volume
doctl compute volume listList block storage volumes by ID
doctl compute volume snapshotCreate a block storage volume snapshot

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