Skip to content

metalcloud-cli fabric add-device

Add network device(s) to a fabric

Add one or more network devices to an existing fabric.

This command associates network devices with a fabric, making them part of the fabric’s network topology. Multiple devices can be added in a single command by specifying multiple device IDs.

Arguments: fabric_id The ID or label of the fabric to add devices to device_id… One or more device IDs or labels to add to the fabric

Examples:

metalcloud fabric add-device my-fabric device123

metalcloud fabric add-device 12345 device1 device2 device3

metalcloud fabric join-device my-fabric switch-01

metalcloud-cli fabric add-device fabric_id device_id... [flags]
-h, --help help for add-device
-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”