metalcloud-cli infrastructure deploy¶
Deploy infrastructure changes to physical resources
Synopsis¶
Deploy an infrastructure configuration to provision and configure physical resources.
This command applies all pending changes to the infrastructure including creating, modifying, or destroying compute instances, drives, and network configurations. The deployment process may take several minutes depending on the complexity of changes.
Arguments: infrastructure_id_or_label The ID (numeric) or label (string) of the infrastructure to deploy
Flags: –allow-data-loss Allow deployment even if data loss is expected (default: false) –attempt-soft-shutdown Attempt ACPI power off before deployment (default: true) –attempt-hard-shutdown Force hard power off after timeout if soft shutdown fails (default: true) –soft-shutdown-timeout Timeout in seconds for soft shutdown before forcing hard shutdown (default: 180) –force-shutdown Force immediate shutdown of all servers (default: false)
Examples:
Deploy infrastructure with default settings¶
metalcloud-cli infrastructure deploy 123
Deploy with custom shutdown settings¶
metalcloud-cli infrastructure deploy web-cluster –soft-shutdown-timeout 300
Deploy allowing data loss (dangerous)¶
metalcloud-cli infrastructure deploy test-env –allow-data-loss
Force deployment with immediate shutdown¶
metalcloud-cli infrastructure deploy emergency-fix –force-shutdown
Using the alias¶
metalcloud-cli infrastructure apply production-cluster
metalcloud-cli infrastructure deploy infrastructure_id_or_label [flags]
Options¶
--allow-data-loss If set, deploy will not throw error if data loss is expected.
--attempt-hard-shutdown If set, force a hard power off after timeout expired and the server is not powered off (default true)
--attempt-soft-shutdown If set, attempt a soft (ACPI) power off of all the servers in the infrastructure before the deploy. (default true)
--force-shutdown If set, deploy will force shutdown of all servers in the infrastructure.
-h, --help help for deploy
--soft-shutdown-timeout int Timeout to wait for soft shutdown before forcing hard shutdown. (default 180)
Options inherited from parent commands¶
-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")
SEE ALSO¶
metalcloud-cli infrastructure - Manage infrastructure resources and configurations