Skip to content

metalcloud-cli variable

Manage variables for infrastructure configuration

Manage variables that can be used across your infrastructure configurations. Variables store key-value pairs that can be referenced in templates, scripts, and other configurations.

Available Commands: list List all variables get Get details of a specific variable create Create a new variable update Update an existing variable delete Delete a variable config-example Show example configuration format

Examples:

metalcloud-cli variable list

metalcloud-cli variable get 123

metalcloud-cli variable create —config-source /path/to/config.json

echo ’{“name”:“my-var”,“value”:{“key1”:“value1”}}’ | metalcloud-cli variable create —config-source pipe

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