# metalcloud-cli variable Manage variables for infrastructure configuration ## Synopsis 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: ## List all variables metalcloud-cli variable list ## Get details of a specific variable metalcloud-cli variable get 123 ## Create a new variable from a JSON file metalcloud-cli variable create --config-source /path/to/config.json ## Create a new variable from stdin echo '{"name":"my-var","value":{"key1":"value1"}}' | metalcloud-cli variable create --config-source pipe ### Options ``` -h, --help help for variable ``` ### 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](/content/configuration/cli/metalcloud-cli.md) - MetalCloud CLI * [metalcloud-cli variable config-example](/content/configuration/cli/metalcloud-cli_variable_config-example.md) - Show variable configuration example * [metalcloud-cli variable create](/content/configuration/cli/metalcloud-cli_variable_create.md) - Create a new variable * [metalcloud-cli variable delete](/content/configuration/cli/metalcloud-cli_variable_delete.md) - Delete a variable * [metalcloud-cli variable get](/content/configuration/cli/metalcloud-cli_variable_get.md) - Get details of a specific variable * [metalcloud-cli variable list](/content/configuration/cli/metalcloud-cli_variable_list.md) - List all variables * [metalcloud-cli variable update](/content/configuration/cli/metalcloud-cli_variable_update.md) - Update an existing variable #### Auto generated by spf13/cobra on 11-Aug-2025