metalcloud-cli vm-instance-group update

Update VM instance group configuration

Synopsis

Update VM instance group configuration.

This command allows you to modify the configuration of an existing VM instance group. You can update the label or custom variables associated with the group. At least one of the available flags must be specified.

ARGUMENTS: infrastructure_id The ID of the infrastructure containing the group vm_instance_group_id The ID of the VM instance group to update

FLAGS: –label string Set or update the VM instance group label –custom-variables-source string Source of custom variables to apply Can be ‘pipe’ for stdin or path to a JSON file

FLAG DEPENDENCIES: At least one of –label or –custom-variables-source must be provided

EXAMPLES:

Update the label of a VM instance group

metalcloud-cli vm-instance-group update 12345 67890 –label “Web Servers”

Update custom variables from a JSON file

metalcloud-cli vmg edit 12345 67890 –custom-variables-source /path/to/vars.json

Update custom variables from stdin

echo ‘{“env”: “production”}’ | metalcloud-cli vm-group update 12345 67890 –custom-variables-source pipe

Update both label and custom variables

metalcloud-cli vm-instance-group update 12345 67890 –label “Production Web” –custom-variables-source vars.json

metalcloud-cli vm-instance-group update infrastructure_id vm_instance_group_id [flags]

Options

      --custom-variables-source string   Source of the custom variables. Can be 'pipe' or path to a JSON file.
  -h, --help                             help for update
      --label string                     Set the VM instance group label.

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