doctl compute droplet-action resize

Go to Navigation

Usage

doctl compute droplet-action resize <droplet-id> [flags]

Description

Use this command to resize a Droplet to a different plan.

By default, this command will only increase or decrease the CPU and RAM of the Droplet, not its disk size. This can be reversed.

To also increase the Droplet’s disk size, pass the --resize-disk flag. This is a permanent change and cannot be reversed as a Droplet’s disk size cannot be decreased.

In order to resize a Droplet, it must first be powered off.

Flags

OptionDescription
--formatColumns for output in a comma-separated list. Possible values: ID, Status, Type, StartedAt, CompletedAt, ResourceID, ResourceType, Region
--help, -hHelp for this command
--no-headerReturn raw data with no headers
Default: false
--resize-diskResize the Droplet’s disk size in addition to its RAM and CPU.
Default: false
--sizeA slug indicating the new size for the Droplet (e.g. s-2vcpu-2gb). Run doctl compute size list for a list of valid sizes. (required)
--waitWait for action to complete
Default: false
CommandDescription
doctl compute droplet-actionDisplay Droplet action commands

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