Usage
Arguments
id of instance type to launch (returned from search offers)
Options
Create instance from template info
User to use with docker create. This breaks some images, so only use this if you are certain you need it.
size of local disk partition in GB
docker container image to launch
docker login arguments for private repo authentication, surround with ”
label to set on the instance
filename to use as onstart script
contents of onstart script as single argument
override entrypoint for args launch instance
Launch as an ssh instance type
Launch as a jupyter instance instead of an ssh instance
Use (faster) direct connections for jupyter & ssh
For runtype ‘jupyter’, directory in instance to use to launch jupyter. Defaults to image’s working directory
For runtype ‘jupyter’, Launch instance with jupyter lab
Workaround for images with locale problems: install and generate locales before instance launch, and set locale to C.UTF-8
Workaround for images with locale problems: set python’s locale to C.UTF-8
env variables and port mapping options, surround with ”
list of arguments passed to container ENTRYPOINT. Onstart is recommended for this purpose. (must be last argument)
Skip sanity checks when creating from an existing instance
Return error if scheduling fails (rather than creating a stopped instance)
(OPTIONAL) create an INTERRUPTIBLE instance with per machine bid price in $/hour
Create a new local volume using an ID returned from the “search volumes” command and link it to the new instance
ID of an existing rented volume to link to the instance during creation. (returned from “show volumes” cmd)
Size of the volume to create in GB. Only usable with —create-volume (default 15GB)
The path to the volume from within the new instance container. e.g. /root/volume
(optional) A name to give the new volume. Only usable with —create-volume
Description
Performs the same action as pressing the “RENT” button on the website at https://console.vast.ai/create/ Creates an instance from an offer ID (which is returned from “search offers”). Each offer ID can only be used to create one instance. Besides the offer ID, you must pass in an ‘—image’ argument as a minimum. If you use args/entrypoint launch mode, we create a container from your image as is, without attempting to inject ssh and or jupyter. If you use the args launch mode, you can override the entrypoint with —entrypoint, and pass arguments to the entrypoint with —args. If you use —args, that must be the last argument, as any following tokens are consumed into the args string. For ssh/jupyter launch types, use —onstart-cmd to pass in startup script, instead of —entrypoint and —args.Examples
Global Options
The following options are available for all commands:| Option | Description |
|---|---|
--url URL | Server REST API URL |
--retry N | Retry limit |
--raw | Output machine-readable JSON |
--explain | Verbose explanation of API calls |
--api-key KEY | API key (defaults to ~/.config/vastai/vast_api_key) |