Skip to content

metalcloud-cli logical-network-profile update

Update an existing logical network profile

Update an existing logical network profile with new configuration.

This command modifies an existing logical network profile by applying the provided configuration changes. The profile ID must be valid and the configuration must match the schema for the profile’s kind.

Required Arguments: logical_network_profile_id The unique identifier of the profile to update

Required Flags: —config-source Source of configuration data (required) - ‘pipe’ to read from stdin - path to JSON file containing updated profile configuration

Examples:

metalcloud-cli logical-network-profile update 12345 —config-source updated-profile.json

cat updated-config.json | metalcloud-cli lnp update 12345 —config-source pipe

metalcloud-cli network-profile edit 12345 —config-source ./configs/new-settings.json

metalcloud-cli lnp get 12345 —output json > current-profile.json

Edit current-profile.json with your changes

Section titled “Edit current-profile.json with your changes”

metalcloud-cli lnp update 12345 —config-source current-profile.json

metalcloud-cli logical-network-profile update logical_network_profile_id [flags]
--config-source string Source of the logical network profile 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”