metalcloud-cli site

Manage sites (datacenters) and their configurations

Synopsis

Manage sites (datacenters) including creation, configuration updates, agent management, and decommissioning.

Sites represent physical datacenters or locations where infrastructure is deployed. Each site can contain multiple servers, agents, and has its own configuration parameters.

Available Commands: list List all sites with their basic information get Retrieve detailed information about a specific site create Create a new site with the specified name update Update site properties like label/name decommission Archive a site and mark it as inactive agents List all agents deployed in a specific site get-config Retrieve the configuration settings for a site update-config Update site configuration using JSON input

Examples:

List all sites

metalcloud-cli site list

Get details for a specific site

metalcloud-cli site get “site-01” metalcloud-cli site get 12345

Create a new site

metalcloud-cli site create “new-datacenter”

Update site configuration from file

metalcloud-cli site update-config site-01 –config-source config.json

Options

  -h, --help   help for site

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