Skip to content

metalcloud-cli drive update-config

Update drive configuration settings

Update drive configuration settings using JSON configuration.

This command updates the configuration of an existing drive. The new configuration must be provided via JSON file or stdin pipe. Only the specified fields will be updated.

Arguments: infrastructure_id_or_label The ID or label of the infrastructure drive_id The unique identifier of the drive

Required Flags: —config-source string Source of the drive configuration updates Can be ‘pipe’ (for stdin input) or path to a JSON file

Examples:

metalcloud-cli drive update-config my-infrastructure 12345 —config-source drive-updates.json

echo ’{“size_bytes”: 2000000000}’ | metalcloud-cli drive update-config my-infrastructure 12345 —config-source pipe

metalcloud-cli drive config-update 1001 67890 —config-source /path/to/config.json

metalcloud-cli drive update-config infrastructure_id_or_label drive_id [flags]
--config-source string Source of the drive configuration updates. Can be 'pipe' or path to a JSON file.
-h, --help help for update-config
-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”