Skip to content

metalcloud-cli infrastructure create

Create a new infrastructure in a specific site

Create a new infrastructure with the specified label in the given site.

The infrastructure will be created in an “ordered” state and must be deployed to provision actual resources. After creation, you can add compute instances, drives, and networks to the infrastructure before deploying it.

Arguments: site_id The numeric ID of the site where the infrastructure will be created label A unique label (name) for the infrastructure

Examples:

metalcloud-cli infrastructure create 1 “web-cluster”

Create infrastructure with a descriptive name

Section titled “Create infrastructure with a descriptive name”

metalcloud-cli infrastructure create 2 “production-database-cluster”

metalcloud-cli infrastructure new 1 “test-environment”

metalcloud-cli infrastructure create site_id label [flags]
-h, --help help for create
-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”