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

Usage

vastai update instance ID [OPTIONS]

Arguments

id
integer
required
id of instance to update

Options

--template_id
integer
new template ID to associate with the instance
--template_hash_id
string
new template hash ID to associate with the instance
--image
string
new image UUID for the instance
--args
string
new arguments for the instance
--env
loads
new environment variables for the instance
--onstart
string
new onstart script for the instance

Description

Example: vastai update instance 1234 —template_hash_id 661d064bbda1f2a133816b6d55da07c3

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)