Skip to content

metalcloud-cli site

Manage sites (datacenters) and their configurations

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:

metalcloud-cli site list

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

metalcloud-cli site create “new-datacenter”

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

-h, --help help for site
-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”