Skip to content

metalcloud-cli site list

List all sites with their basic information

List all sites (datacenters) available in the system with their basic information.

This command displays a table containing site details including ID, name, label, status, and creation date. Sites are physical datacenters or locations where infrastructure is deployed.

Required Permissions: sites:read - Permission to view site information

Optional Flags: Common output flags are available (—format, —output, etc.)

Examples:

metalcloud-cli site list

metalcloud-cli site list —format json

metalcloud-cli site list —output ”{{.ID}} {{.Label}}“

metalcloud-cli site list [flags...] [flags]
-h, --help help for list
-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”