Provisions a new virtual machine instance on Vultrs cloud platform with customizable configuration options.
Creates a new cloud compute instance on Vultr by specifying parameters such as region, plan, and operating system, then provisions and deploys the virtual machine to your account.
$ vultr-cli instance create [flags]# Full example
$ vultr-cli instance create --region="ewr" --plan="vc2-2c-4gb" --os=1743
You must pass one of these in addition to the required --region and --plan flags:
--os
--snapshot
--iso
--app
--image
# Shortened example with aliases
$ vultr-cli instance c -r="ewr" -p="vc2-2c-4gb" -o=1743
# Full example with attached VPCs
$ vultr-cli instance create --region="ewr" --plan="vc2-2c-4gb" --os=1743 \
--vpc-ids="08422775-5be0-4371-afba-64b03f9ad22d,13a45caa-9c06-4b5d-8f76-f5281ab172b7"
# Full example with assigned ssh keys
$ vultr-cli instance create --region="ewr" --plan="vc2-2c-4gb" --os=1743 \
--ssh-keys="a14b6539-5583-41e8-a035-c07a76897f2b,be624232-56c7-4d5c-bf87-9bdaae7a1fbd"
# Block devices options
The --block-devices option allows you to pass in options for any number of
block storage devices when creating an instance with a VX1 plan. The options
are passed in a delimited string. Different block devices are delimited by a
slash (/). The options for each device are delimited by a comma (,) and each
option is defined by colon (:).
For example:
Local Only
--block-devices="block-id:local,bootable:true"
Local Boot + New Block
--block-devices="block-id:local,bootable:true/disk-size:50,label:new-block-label"
New Bootable Block
--block-devices="disk-size:50,label:new-bootable-block,bootable:true"
Existing Bootable Block
--block-devices="block-id:BLOCK_DEVICE_ID,bootable:true"
Existing Bootable Block + Local NVMe
--block-devices="block-id:local/block-id:BLOCK_DEVICE_ID,bootable:true"| Shorthand | Long Version | Description |
|---|---|---|
| -a | --app | application ID you want this instance to have |
| -b | --auto-backup | enable auto backups (true or false) |
| - | --block-devices | a comma-separated, key-value pair list of block devices. At least one block is required for VX1 plans. |
| -d | --ddos | enable ddos protection (true or false) |
| - | --firewall-group | The firewall group to assign to this instance |
| - | --host | The hostname to assign to this instance |
| - | --image | image ID of the application that will be installed on the server. |
| - | --ipv6 | enable ipv6 (true or false) |
| - | --ipxe | if you've selected the custom operating system, this can be set to chainload the specified URL on bootup |
| - | --iso | iso ID you want to create the instance with |
| -l | --label | label you want to give this instance |
| -n | --notify | notify when instance has been created (true or false) |
| - | --os | os id you wish the instance to have |
| -p | --plan | The plan ID with which to create the instance |
| -r | --region | The ID of the region in which to create the instance |
| - | --reserved-ipv4 | ID of the floating IP to use as the main IP for this instance |
| - | --script-id | script id of the startup script |
| - | --snapshot | snapshot ID you want to create the instance with |
| -s | --ssh-keys | ssh keys you want to assign to the instance |
| - | --tags | A comma-separated list of tags to assign to this instance |
| -u | --userdata | plain text userdata you want to give to this instance |
| - | --userdata-file | file path to read in for the userdata you want to give to this instance |
| - | --vpc-enable | enable VPC (true or false) |
| - | --vpc-ids | VPC IDs you want to assign to the instance |
| - | --vpc-only | deploy with no public networking. A --vpc-ids ID with NAT gateway attached is required (true or false) |
0 Comments
Be the first to comment and share your perspective with the community.