metalcloud-cli site update

Update site properties like label/name

Synopsis

Update site properties including the label/name of an existing site.

This command allows you to modify the properties of an existing site. Currently, you can update the site’s label (display name). The site is identified by either its ID (numeric) or current name (string).

Required Arguments: site_id_or_name Site identifier (ID or current name) to update

Optional Arguments: new_label New label/name for the site (if not provided, only other properties are updated)

Required Permissions: sites:write - Permission to modify sites

Examples:

Update site label by name

metalcloud-cli site update “old-datacenter” “new-datacenter-name”

Update site label by ID

metalcloud-cli site update 12345 “production-datacenter”

Update site properties without changing label

metalcloud-cli site update “datacenter-01”

metalcloud-cli site update site_id_or_name [new_label] [flags]

Options

  -h, --help   help for update

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