Skip to content

metalcloud-cli server power

Control server power state

Control server power state.

This command allows you to control the power state of a server by sending power management commands to the server’s BMC/IPMI interface.

Required Arguments: server_id The ID of the server to control

Required Flags: —action Power action to perform

Valid Actions: on Power on the server off Hard power off the server reset Hard reset the server cycle Power cycle the server (off then on) soft Soft power off the server (graceful shutdown)

Examples:

metalcloud-cli server power 123 —action on

metalcloud-cli server power 123 —action off

metalcloud-cli server power 123 —action reset

metalcloud-cli server power 123 —action cycle

metalcloud-cli server power 123 —action soft

metalcloud-cli server power server_id [flags]
--action string Power action: on, off, reset, cycle, soft
-h, --help help for power
-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”