Skip to main content
Create a new template

Usage

vastai create template

Options

--name
string
name of the template
--image
string
docker container image to launch
--image_tag
string
docker image tag
--href
string
link you want to provide
--repo
string
link to repository
--login
string
docker login arguments for private repo authentication, surround with ”
--env
string
Contents of the ‘Docker options’ field
--ssh
boolean
Launch as an ssh instance type
--jupyter
boolean
Launch as a jupyter instance instead of an ssh instance
--direct
boolean
Use (faster) direct connections for jupyter & ssh
--jupyter-dir
string
For runtype ‘jupyter’, directory in instance to use to launch jupyter
--jupyter-lab
boolean
For runtype ‘jupyter’, Launch instance with jupyter lab
--onstart-cmd
string
contents of onstart script as single argument
--search_params
string
search offers filters
--no-default
boolean
Disable default search param query args
--disk_space
string
disk storage space, in GB
--readme
string
readme string
--hide-readme
boolean
hide the readme from users
--desc
string
description string
--public
boolean
make template available to public

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)