Skip to content

metalcloud-cli server-instance-group create

Create a new server instance group in an infrastructure

Create a new server instance group in an infrastructure.

This command creates a new server instance group with the specified configuration. The group will contain multiple server instances with identical specifications.

Arguments: infrastructure_id_or_label The infrastructure ID (numeric) or label (string) to create the group in label Label for the new instance group server_type_id Server type ID to use for instances in the group instance_count Number of instances to create in the group os_template_id (Optional) OS template ID to use for instances

Examples:

Create instance group with 3 instances using server type 100

Section titled “Create instance group with 3 instances using server type 100”

metalcloud-cli server-instance-group create 1234 web-servers 100 3

Create instance group with specific OS template

Section titled “Create instance group with specific OS template”

metalcloud-cli server-instance-group create prod-env db-cluster 200 2 50

metalcloud-cli ig new 1234 app-servers 150 5

metalcloud-cli server-instance-group create infrastructure_id_or_label label server_type_id instance_count [os_template_id] [flags]
-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”