Skip to content

metalcloud-cli vm reboot

Restart a virtual machine

Restart a virtual machine by performing a graceful reboot. The VM will be shutdown gracefully and then started again. This is equivalent to performing a shutdown followed by a start operation.

Arguments: vm_id Required. The unique identifier of the virtual machine to reboot.

Prerequisites:

  • VM must be in ‘running’ state
  • User must have write permissions for the VM
  • VM configuration must be valid

Examples:

metalcloud-cli vm reboot 12345

for vm in 12345 12346 12347; do metalcloud-cli vm reboot $vm; done

metalcloud-cli vm reboot vm_id [flags]
-h, --help help for reboot
-k, --api_key string MetalCloud API key
-c, --config string Config file path
-d, --debug Set to enable debug logging
-e, --endpoint string MetalCloud API endpoint
-f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text")
-i, --insecure_skip_verify Set to allow insecure transport
-l, --log_file string Log file path
-v, --verbosity string Log level verbosity (default "INFO")

Auto generated by spf13/cobra on 11-Aug-2025

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”