metalcloud-cli logical-network-profile create

Create a new logical network profile from configuration

Synopsis

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:

Create profile from JSON file

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

Create profile from stdin

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

Create profile using alias

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

Get example configuration first, then create

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

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]

Options

      --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

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

Auto generated by spf13/cobra on 11-Aug-2025