metalcloud-cli site
Manage sites (datacenters) and their configurations
Synopsis
Section titled “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
Section titled “List all sites”metalcloud-cli site list
Get details for a specific site
Section titled “Get details for a specific site”metalcloud-cli site get “site-01” metalcloud-cli site get 12345
Create a new site
Section titled “Create a new site”metalcloud-cli site create “new-datacenter”
Update site configuration from file
Section titled “Update site configuration from file”metalcloud-cli site update-config site-01 —config-source config.json
Options
Section titled “Options” -h, --help help for siteOptions inherited from parent commands
Section titled “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
Section titled “SEE ALSO”- metalcloud-cli - MetalCloud CLI
- metalcloud-cli site agents - List all agents deployed in a specific site
- metalcloud-cli site create - Create a new site with the specified name
- metalcloud-cli site decommission - Archive a site and mark it as inactive
- metalcloud-cli site get - Retrieve detailed information about a specific site
- metalcloud-cli site get-config - Retrieve the configuration settings for a site
- metalcloud-cli site list - List all sites with their basic information
- metalcloud-cli site update - Update site properties like label/name
- metalcloud-cli site update-config - Update site configuration using JSON input