Skip to main content
Update recreate an instance from a new/updated template

Usage

Arguments

integer
required
id of instance to update

Options

integer
new template ID to associate with the instance
string
new template hash ID to associate with the instance
string
new image UUID for the instance
string
new arguments for the instance
object
new environment variables for the instance
string
new onstart script for the instance
number
new disk size for the instance, in GB. Disk can only be grown, not shrunk, and the new size must be available on the host machine.

Description

Example: vastai update instance 1234 --template_hash_id 661d064bbda1f2a133816b6d55da07c3 Use --disk to dynamically grow the container disk on a running or stopped instance without recreating it. The change is applied in place; existing data is preserved.

Examples

Grow an instance’s disk to 80 GB:

Global Options

The following options are available for all commands: