Skip to content

metalcloud-cli infrastructure update

Update infrastructure configuration and metadata

Update various properties of an infrastructure including its label and custom variables.

This command allows you to modify infrastructure metadata without affecting the deployed resources. Changes to the infrastructure configuration require a subsequent deploy to take effect on the actual infrastructure.

Arguments: infrastructure_id_or_label The ID (numeric) or label (string) of the infrastructure to update new_label Optional new label for the infrastructure

Flags: —custom-variables JSON string containing custom variables to set on the infrastructure

Examples:

metalcloud-cli infrastructure update 123 “new-cluster-name”

metalcloud-cli infrastructure update web-cluster —custom-variables ’{“env”:“production”,“version”:“1.2.3”}‘

metalcloud-cli infrastructure update 123 “prod-cluster” —custom-variables ’{“tier”:“production”}‘

metalcloud-cli infrastructure edit my-infrastructure new-name

metalcloud-cli infrastructure update infrastructure_id_or_label [new_label] [flags]
--custom-variables string Set of infrastructure custom variables.
-h, --help help for update
-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”