# 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 * [metalcloud-cli](/content/configuration/cli/metalcloud-cli.md) - MetalCloud CLI * [metalcloud-cli site agents](/content/configuration/cli/metalcloud-cli_site_agents.md) - List all agents deployed in a specific site * [metalcloud-cli site create](/content/configuration/cli/metalcloud-cli_site_create.md) - Create a new site with the specified name * [metalcloud-cli site decommission](/content/configuration/cli/metalcloud-cli_site_decommission.md) - Archive a site and mark it as inactive * [metalcloud-cli site get](/content/configuration/cli/metalcloud-cli_site_get.md) - Retrieve detailed information about a specific site * [metalcloud-cli site get-config](/content/configuration/cli/metalcloud-cli_site_get-config.md) - Retrieve the configuration settings for a site * [metalcloud-cli site list](/content/configuration/cli/metalcloud-cli_site_list.md) - List all sites with their basic information * [metalcloud-cli site update](/content/configuration/cli/metalcloud-cli_site_update.md) - Update site properties like label/name * [metalcloud-cli site update-config](/content/configuration/cli/metalcloud-cli_site_update-config.md) - Update site configuration using JSON input #### Auto generated by spf13/cobra on 11-Aug-2025