Skip to main content

Create

Create a custom image.

Usage:

mgc virtual-machine images custom create [flags]

Flags:

    --architecture enum             Architecture (must be "x86/64") (required)
--cli.list-links enum[=table] List all available links for this command (one of "json", "table" or "yaml")
--description string Description
-h, --help help for create
--license enum License (one of "licensed" or "unlicensed") (required)
--name string Name (required)
--platform enum Platform (one of "linux" or "windows") (required)
--requirements object CustomImageRequirements (properties: disk, ram and vcpu)
Use --requirements=help for more details
--requirements.disk integer CustomImageRequirements: Disk
This is the same as '--requirements=disk:integer'.
--requirements.ram integer CustomImageRequirements: Ram
This is the same as '--requirements=ram:integer'.
--requirements.vcpu integer CustomImageRequirements: Vcpu
This is the same as '--requirements=vcpu:integer'.
--uefi Uefi
--url string Url (required)
--version string Version

Global Flags:

    --api-key string           Use your API key to authenticate with the API
-U, --cli.retry-until string Retry the action with the same parameters until the given condition is met. The flag parameters
use the format: 'retries,interval,condition', where 'retries' is a positive integer, 'interval' is
a duration (ex: 2s) and 'condition' is a 'engine=value' pair such as "jsonpath=expression"
-t, --cli.timeout duration If > 0, it's the timeout for the action execution. It's specified as numbers and unit suffix.
Valid unit suffixes: ns, us, ms, s, m and h. Examples: 300ms, 1m30s
--debug Display detailed log information at the debug level
--env enum Environment to use (one of "pre-prod" or "prod") (default "prod")
--no-confirm Bypasses confirmation step for commands that ask a confirmation from the user
-o, --output string Change the output format. Use '--output=help' to know more details.
-r, --raw Output raw data, without any formatting or coloring
--region enum Region to reach the service (one of "br-mgl1", "br-ne1" or "br-se1") (default "br-se1")
--server-url uri Manually specify the server to use