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 - MetalCloud CLI
metalcloud-cli variable config-example - Show variable configuration example
metalcloud-cli variable create - Create a new variable
metalcloud-cli variable delete - Delete a variable
metalcloud-cli variable get - Get details of a specific variable
metalcloud-cli variable list - List all variables
metalcloud-cli variable update - Update an existing variable