Skip to content

metalcloud-cli vm

Manage virtual machines lifecycle and configuration

Comprehensive virtual machine management commands for controlling VM power states, configuration updates, and monitoring. Supports operations like start, stop, reboot, status checking, and configuration updates through JSON files or pipes.

Available Commands: get Retrieve detailed VM information and configuration power-status Check current power state of a VM start Power on a VM shutdown Gracefully shutdown or force stop a VM
reboot Restart a VM update Update VM configuration from JSON file or pipe console-info Get remote console connection details

Examples: metalcloud-cli vm get 12345 metalcloud-cli vm start 12345 metalcloud-cli vm update 12345 —config-source config.json cat vm-config.json | metalcloud-cli vm update 12345 —config-source pipe

-h, --help help for vm
-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”