Skip to main content
Create default jobs for a machine
This is a host command, used for managing machines you are renting out on Vast.ai.

Usage

vastai set defjob id [--api-key API_KEY] [--price_gpu PRICE_GPU] [--price_inetu PRICE_INETU] [--price_inetd PRICE_INETD] [--image IMAGE] [--args ...]

Arguments

id
integer
required
id of machine to launch default instance on

Options

--price_gpu
number
per gpu rental price in $/hour
--price_inetu
number
price for internet upload bandwidth in $/GB
--price_inetd
number
price for internet download bandwidth in $/GB
--image
string
docker container image to launch
--args
string
list of arguments passed to container launch

Description

Performs the same action as creating a background job at https://cloud.vast.ai/host/create.

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)