metalcloud-cli infrastructure create¶
Create a new infrastructure in a specific site
Synopsis¶
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:
Create a new infrastructure in site 1¶
metalcloud-cli infrastructure create 1 “web-cluster”
Create infrastructure with a descriptive name¶
metalcloud-cli infrastructure create 2 “production-database-cluster”
Using the alias¶
metalcloud-cli infrastructure new 1 “test-environment”
metalcloud-cli infrastructure create site_id label [flags]
Options¶
-h, --help help for create
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 infrastructure - Manage infrastructure resources and configurations