Skip to main content

crusoe compute vms attach-disks

Attach disks to a VM.

Usage

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

Flags

FlagDescription
--disk stringArray[Required] Disk to attach as name=<name>,mode=<mode> or id=<id>,mode=<mode>. Repeat for multiple disks. Mode must be read-only or read-write
-f, --format stringOutput format. Supported formats: pretty, json (default: "pretty")
-h, --helpHelp for attach-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

Attach a single disk in read-write mode:

crusoe compute vms attach-disks my-vm --disk name=my-disk,mode=read-write

Attach multiple disks:

crusoe compute vms attach-disks my-vm \
--disk name=disk1,mode=read-only \
--disk name=disk2,mode=read-write