Skip to content

metalcloud-cli network-device update

Update configuration of an existing network device

Update the configuration of an existing network device using JSON configuration provided via file or pipe. Only the specified fields will be updated; other configuration will remain unchanged.

Arguments: network_device_id The unique identifier of the network device to update

Required Flags: —config-source Source of configuration updates (required) Values: ‘pipe’ for stdin input, or path to JSON file

Examples:

metalcloud-cli network-device update 12345 —config-source updates.json

cat updates.json | metalcloud-cli network-device update 12345 —config-source pipe

echo ’{“management_ip”:“10.0.1.101”}’ | metalcloud-cli nd update 12345 —config-source pipe

metalcloud-cli network-device update <network_device_id> [flags]
--config-source string Source of the network device configuration updates. Can be 'pipe' or path to a JSON file.
-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”