doctl compute volume create

Go to Navigation

Usage

doctl compute volume create <volume-name> [flags]

Aliases

c

Description

Use this command to create a block storage volume on your account.

You can use flags to specify the volume size, region, description, filesystem type, tags, and to create a volume from an existing volume snapshot.

Flags

OptionDescription
--descVolume description
--formatColumns for output in a comma-separated list. Possible values: ID, Name, Size, Region, Filesystem Type, Filesystem Label, DropletIDs, Tags
--fs-labelVolume filesystem label
--fs-typeVolume filesystem type (ext4 or xfs)
--help, -hHelp for this command
--no-headerReturn raw data with no headers
Default: false
--regionVolume region; should not be specified with a snapshot
--sizeVolume size (required)
Default: 4TiB
--snapshotVolume snapshot; should not be specified with a region
--tagTags to apply to the volume; comma separate or repeat --tag to add multiple tags at once
CommandDescription
doctl compute volumeDisplay commands to manage block storage volumes

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