Skip to main content
Change the bid price for a spot/interruptible instance

Usage

vastai change bid id [--price PRICE]

Arguments

id
integer
required
id of instance type to change bid

Options

--price
number
per machine bid price in $/hour
--schedule
string
try to schedule a command to run hourly, daily, or monthly. Valid values are HOURLY, DAILY, WEEKLY For ex. --schedule DAILY Choices: HOURLY, DAILY, WEEKLY
--start_date
string
Start date/time in format ‘YYYY-MM-DD HH:MM:SS PM’ (UTC). Default is now. (optional)
--end_date
string
End date/time in format ‘YYYY-MM-DD HH:MM:SS PM’ (UTC). Default is 7 days from now. (optional)
--day
integer
default:"0"
Day of week you want scheduled job to run on (0-6, where 0=Sunday) or ”*”. Default will be 0. For ex. --day 0
--hour
integer
default:"0"
Hour of day you want scheduled job to run on (0-23) or ”*” (UTC). Default will be 0. For ex. --hour 16

Description

Change the current bid price of instance id to PRICE. If PRICE is not specified, then a winning bid price is used as the default.

Examples

vastai change bid <ID>

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)