Skip to main content

crusoe compute vms detach-disks

Detach disks from a VM.

Usage

crusoe compute vms detach-disks <VM name> [flags]

Flags

FlagDescription
--disk stringArray[Required] Disk name or serial number to detach. Repeat for multiple disks. Alphanumeric characters, underscores and dashes are allowed
-f, --format stringOutput format. Supported formats: pretty, json (default: "pretty")
-h, --helpHelp for detach-disks
--jsonOutput in json format. Shorthand for --format json
--project-id stringProject ID. Optional if Project Name is set in CRUSOE_DEFAULT_PROJECT env variable or the config file
--project-name stringProject Name. Optional if set in CRUSOE_DEFAULT_PROJECT env variable or the config file
-y, --yesAutoconfirm selection (skip confirmation prompt)

Examples

Detach a single disk:

crusoe compute vms detach-disks my-vm --disk my-disk

Detach multiple disks:

crusoe compute vms detach-disks my-vm --disk disk1 --disk disk2