Skip to content

metalcloud-cli logical-network-profile create

Create a new logical network profile from configuration

Create a new logical network profile from a JSON configuration.

This command creates a new logical network profile based on the specified kind and configuration provided via file or stdin. The configuration must match the schema for the specified profile kind.

Required Arguments: kind The type of profile to create (e.g., ‘cisco’, ‘juniper’, ‘arista’)

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

Examples:

metalcloud-cli logical-network-profile create cisco —config-source profile.json

cat profile.json | metalcloud-cli lnp create juniper —config-source pipe

metalcloud-cli network-profile new arista —config-source ./configs/arista-profile.json

Get example configuration first, then create

Section titled “Get example configuration first, then create”

metalcloud-cli lnp example cisco > cisco-profile.json

Edit cisco-profile.json with your settings

Section titled “Edit cisco-profile.json with your settings”

metalcloud-cli lnp create cisco —config-source cisco-profile.json

metalcloud-cli logical-network-profile create kind [flags]
--config-source string Source of the new logical network profile configuration. Can be 'pipe' or path to a JSON file.
-h, --help help for create
-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”