diff --git a/cli/reference/accept-price-increase.mdx b/cli/reference/accept-price-increase.mdx
new file mode 100644
index 0000000..663ca78
--- /dev/null
+++ b/cli/reference/accept-price-increase.mdx
@@ -0,0 +1,56 @@
+---
+title: "vastai accept price-increase"
+sidebarTitle: "accept price-increase"
+---
+
+Accept one or more pending host price increases
+
+## Usage
+
+```bash
+vastai accept price-increase ID [ID ...] [--yes]
+```
+
+## Arguments
+
+
+ instance IDs to accept (one or more).
+
+
+## Options
+
+
+ skip the interactive prompt; required when stdin is not a TTY
+
+
+## Description
+
+Review pending price increases with `vastai show pending-price-increases`
+before accepting. The CLI fans out one PUT per instance ID (no batch
+endpoint exists on the backend), and the new rate applies only after
+each contract's current end_date — your remaining time on the current
+term is billed at the original price.
+
+## Examples
+
+```bash
+vastai accept price-increase 123 --yes
+ vastai accept price-increase 1 2 3 --yes
+
+Exit codes:
+ 0 — every requested row was accepted
+ 1 — at least one row failed (non-stale)
+ 2 — at least one row was stale (re-run `show pending-price-increases`)
+```
+
+## 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`) |
diff --git a/cli/reference/cancel-maint.mdx b/cli/reference/cancel-maint.mdx
index 91670b3..11e73f0 100644
--- a/cli/reference/cancel-maint.mdx
+++ b/cli/reference/cancel-maint.mdx
@@ -1,9 +1,35 @@
---
title: "vastai cancel maint"
sidebarTitle: "cancel maint"
-description: "Host command"
---
-import CancelMaintCLI from '/snippets/host/cli/cancel-maint.mdx';
+[Host] Cancel maint window
-
+## Usage
+
+```bash
+vastai cancel maint id
+```
+
+## Arguments
+
+
+ id of machine to cancel maintenance(s) for
+
+
+## Description
+
+For deleting a machine's scheduled maintenance window(s), use this cancel maint command.
+Example: vastai cancel maint 8207
+
+## 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`) |
diff --git a/cli/reference/change-bid.mdx b/cli/reference/change-bid.mdx
index e446a0b..279e744 100644
--- a/cli/reference/change-bid.mdx
+++ b/cli/reference/change-bid.mdx
@@ -24,23 +24,24 @@ vastai change bid id [--price PRICE]
- 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`
+ try to schedule a command to run hourly, daily, or weekly. Valid values are HOURLY, DAILY, WEEKLY For ex. --schedule DAILY
+ Allowed values: HOURLY, DAILY, WEEKLY
-
+
Start date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is now. (optional)
-
+
End date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is 7 days from now. (optional)
-
- Day of week you want scheduled job to run on (0-6, where 0=Sunday) or "*". Default will be 0. For ex. `--day` 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 of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. `--hour` 16
+
+ Hour of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. --hour 16
## Description
@@ -48,12 +49,6 @@ vastai change bid id [--price PRICE]
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
-
-```bash
-vastai change bid
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/cleanup-machine.mdx b/cli/reference/cleanup-machine.mdx
index 7e7d13b..8397b40 100644
--- a/cli/reference/cleanup-machine.mdx
+++ b/cli/reference/cleanup-machine.mdx
@@ -1,9 +1,37 @@
---
title: "vastai cleanup machine"
sidebarTitle: "cleanup machine"
-description: "Host command"
---
-import CleanupMachineCLI from '/snippets/host/cli/cleanup-machine.mdx';
+[Host] Remove all expired storage instances from the machine, freeing up space
-
+## Usage
+
+```bash
+vastai cleanup machine ID [options]
+```
+
+## Arguments
+
+
+ id of machine to cleanup
+
+
+## Description
+
+Instances expire on their end date. Expired instances still pay storage fees, but can not start.
+Since hosts are still paid storage fees for expired instances, we do not auto delete them.
+Instead you can use this CLI/API function to delete all expired storage instances for a machine.
+This is useful if you are running low on storage, want to do maintenance, or are subsidizing storage, etc.
+
+## 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`) |
diff --git a/cli/reference/clone-volume.mdx b/cli/reference/clone-volume.mdx
index 448cba6..0e6064b 100644
--- a/cli/reference/clone-volume.mdx
+++ b/cli/reference/clone-volume.mdx
@@ -23,12 +23,12 @@ vastai clone volume [options]
## Options
-
- Size of new volume contract, in GB. Must be greater than or equal to the source volume, and less than or equal to the destination offer. (alias: `--size`)
+
+ Size of new volume contract, in GB. Must be greater than or equal to the source volume, and less than or equal to the destination offer.
-
- Do not compress volume data before copying. (alias: `--disable_compression`)
+
+ Do not compress volume data before copying.
## Description
@@ -36,12 +36,6 @@ vastai clone volume [options]
Create a new volume with the given offer, by copying the existing volume.
Size defaults to the size of the existing volume, but can be increased if there is available space.
-## Examples
-
-```bash
-vastai clone volume
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/cloud-copy.mdx b/cli/reference/cloud-copy.mdx
index 19f2da8..f6700ed 100644
--- a/cli/reference/cloud-copy.mdx
+++ b/cli/reference/cloud-copy.mdx
@@ -8,7 +8,7 @@ Copy files/folders to and from cloud providers
## Usage
```bash
-vastai cloud copy --src SRC --dst DST --instance INSTANCE_ID -connection CONNECTION_ID --transfer TRANSFER_TYPE
+vastai cloud copy --src SRC --dst DST --instance INSTANCE_ID --connection CONNECTION_ID --transfer TRANSFER_TYPE
```
## Options
@@ -54,10 +54,11 @@ vastai cloud copy --src SRC --dst DST --instance INSTANCE_ID -connection CONNECT
- 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`
+ try to schedule a command to run hourly, daily, or weekly. Valid values are HOURLY, DAILY, WEEKLY For ex. --schedule DAILY
+ Allowed values: HOURLY, DAILY, WEEKLY
-
+
Start date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is now. (optional)
@@ -65,12 +66,12 @@ vastai cloud copy --src SRC --dst DST --instance INSTANCE_ID -connection CONNECT
End date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is contract's end. (optional)
-
- Day of week you want scheduled job to run on (0-6, where 0=Sunday) or "*". Default will be 0. For ex. `--day` 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 of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. `--hour` 16
+
+ Hour of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. --hour 16
## Description
diff --git a/cli/reference/copy.mdx b/cli/reference/copy.mdx
index 0b831e8..d82eb02 100644
--- a/cli/reference/copy.mdx
+++ b/cli/reference/copy.mdx
@@ -23,8 +23,8 @@ vastai copy SRC DST
## Options
-
- Location of ssh private key (alias: `--identity`)
+
+ Location of ssh private key
## Description
diff --git a/cli/reference/create-api-key.mdx b/cli/reference/create-api-key.mdx
index 6a2d9f2..3fee55c 100644
--- a/cli/reference/create-api-key.mdx
+++ b/cli/reference/create-api-key.mdx
@@ -30,12 +30,6 @@ vastai create api-key --name NAME --permission_file PERMISSIONS
In order to create api keys you must understand how permissions must be sent via json format.
You can find more information about permissions here: https://vast.ai/docs/cli/roles-and-permissions
-## Examples
-
-```bash
-vastai create api-key
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/create-cluster.mdx b/cli/reference/create-cluster.mdx
deleted file mode 100644
index fdde9d9..0000000
--- a/cli/reference/create-cluster.mdx
+++ /dev/null
@@ -1,44 +0,0 @@
----
-title: "vastai create cluster"
-sidebarTitle: "create cluster"
----
-
-Create Vast cluster
-
-## Usage
-
-```bash
-vastai create cluster SUBNET MANAGER_ID
-```
-
-## Arguments
-
-
- local subnet for cluster, ex: '0.0.0.0/24'
-
-
-
- Machine ID of manager node in cluster. Must exist already.
-
-
-## Description
-
-Create Vast Cluster by defining a local subnet and manager id.
-
-## Examples
-
-```bash
-vastai create cluster
-```
-
-## 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`) |
diff --git a/cli/reference/create-endpoint.mdx b/cli/reference/create-endpoint.mdx
index 79bd945..ae1e29d 100644
--- a/cli/reference/create-endpoint.mdx
+++ b/cli/reference/create-endpoint.mdx
@@ -13,11 +13,11 @@ vastai create endpoint [OPTIONS]
## Options
-
+
minimum floor load in perf units/s (token/s for LLms)
-
+
minimum floor load in perf units/s (token/s for LLms), but allow handling with cold workers
@@ -57,13 +57,7 @@ vastai create endpoint [OPTIONS]
Create a new endpoint group to manage many autoscaling groups
-Example: vastai create endpoint `--target_util` 0.9 `--cold_mult` 2.0 `--endpoint_name` "LLama"
-
-## Examples
-
-```bash
-vastai create endpoint
-```
+Example: vastai create endpoint --target_util 0.9 --cold_mult 2.0 --endpoint_name "LLama"
## Global Options
diff --git a/cli/reference/create-env-var.mdx b/cli/reference/create-env-var.mdx
index 847b549..be13ffd 100644
--- a/cli/reference/create-env-var.mdx
+++ b/cli/reference/create-env-var.mdx
@@ -21,12 +21,6 @@ vastai create env-var
Environment variable value
-## Examples
-
-```bash
-vastai create env-var
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/create-instance.mdx b/cli/reference/create-instance.mdx
index faf04d2..16d698b 100644
--- a/cli/reference/create-instance.mdx
+++ b/cli/reference/create-instance.mdx
@@ -36,7 +36,7 @@ vastai create instance ID [OPTIONS] [--args ...]
- docker login arguments for private repo authentication, surround with ''
+ docker login arguments for private repo authentication, surround with ''
@@ -84,7 +84,7 @@ vastai create instance ID [OPTIONS] [--args ...]
- env variables and port mapping options, surround with ''
+ env variables and port mapping options, surround with ''
@@ -112,7 +112,7 @@ vastai create instance ID [OPTIONS] [--args ...]
- Size of the volume to create in GB. Only usable with `--create-volume` (default 15GB)
+ Size of the volume to create in GB. Only usable with --create-volume (default 15GB)
@@ -120,19 +120,19 @@ vastai create instance ID [OPTIONS] [--args ...]
- (optional) A name to give the new volume. Only usable with `--create-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.
+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`.
+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
diff --git a/cli/reference/create-instances.mdx b/cli/reference/create-instances.mdx
new file mode 100644
index 0000000..979269a
--- /dev/null
+++ b/cli/reference/create-instances.mdx
@@ -0,0 +1,136 @@
+---
+title: "vastai create instances"
+sidebarTitle: "create instances"
+---
+
+Create instances from a list of offers
+
+## Usage
+
+```bash
+vastai create instances [OPTIONS] ID0 ID1 ID2... [--args ...]
+```
+
+## Arguments
+
+
+ ids of instance types 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
+
+
+## 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`) |
diff --git a/cli/reference/create-overlay.mdx b/cli/reference/create-overlay.mdx
deleted file mode 100644
index ea201b0..0000000
--- a/cli/reference/create-overlay.mdx
+++ /dev/null
@@ -1,44 +0,0 @@
----
-title: "vastai create overlay"
-sidebarTitle: "create overlay"
----
-
-Creates overlay network on top of a physical cluster
-
-## Usage
-
-```bash
-vastai create overlay CLUSTER_ID OVERLAY_NAME
-```
-
-## Arguments
-
-
- ID of cluster to create overlay on top of
-
-
-
- overlay network name
-
-
-## Description
-
-Creates an overlay network to allow local networking between instances on a physical cluster
-
-## Examples
-
-```bash
-vastai create overlay
-```
-
-## 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`) |
diff --git a/cli/reference/create-ssh-key.mdx b/cli/reference/create-ssh-key.mdx
index e147a08..d5699c8 100644
--- a/cli/reference/create-ssh-key.mdx
+++ b/cli/reference/create-ssh-key.mdx
@@ -19,8 +19,8 @@ vastai create ssh-key [ssh_public_key] [-y]
## Options
-
- automatically answer yes to prompts (alias: `--yes`)
+
+ automatically answer yes to prompts
## Description
@@ -40,12 +40,6 @@ The public key will be added to your Vast account.
All ssh public keys are stored in your Vast account and can be used to connect to instances they've been added to.
-## Examples
-
-```bash
-vastai create ssh-key
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/create-subaccount.mdx b/cli/reference/create-subaccount.mdx
index 9f45232..1953654 100644
--- a/cli/reference/create-subaccount.mdx
+++ b/cli/reference/create-subaccount.mdx
@@ -33,15 +33,9 @@ vastai create subaccount --email EMAIL --username USERNAME --password PASSWORD -
Creates a new account that is considered a child of your current account as defined via the API key.
-vastai create subaccount `--email` bob@gmail.com `--username` bob `--password` password `--type` host
+vastai create subaccount --email bob@gmail.com --username bob --password password --type host
-vastai create subaccount `--email` vast@gmail.com `--username` vast `--password` password `--type` host
-
-## Examples
-
-```bash
-vastai create subaccount
-```
+vastai create subaccount --email vast@gmail.com --username vast --password password --type host
## Global Options
diff --git a/cli/reference/create-team-role.mdx b/cli/reference/create-team-role.mdx
index 19eb4c4..6e3c72c 100644
--- a/cli/reference/create-team-role.mdx
+++ b/cli/reference/create-team-role.mdx
@@ -26,12 +26,6 @@ vastai create team-role --name NAME --permissions PERMISSIONS
Creating a new team role involves understanding how permissions must be sent via json format.
You can find more information about permissions here: https://vast.ai/docs/cli/roles-and-permissions
-## Examples
-
-```bash
-vastai create team-role
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/create-team.mdx b/cli/reference/create-team.mdx
index 8a24058..0ca9f6d 100644
--- a/cli/reference/create-team.mdx
+++ b/cli/reference/create-team.mdx
@@ -8,7 +8,7 @@ Create a new team
## Usage
```bash
-vastai create team [OPTIONS]
+vastai create-team --team-name TEAM_NAME [--transfer-credit AMOUNT]
```
## Options
@@ -17,7 +17,7 @@ vastai create team [OPTIONS]
name of the team
-
+
amount of personal credit to transfer to the new team
@@ -36,8 +36,8 @@ When you create a team:
Optional:
You can transfer a portion of your existing personal credits to the team by using
- the `--transfer_credit` flag. Example:
- vastai create-team `--team_name` myteam `--transfer_credit` 25
+ the `--transfer-credit` flag. Example:
+ vastai create-team --team-name myteam --transfer-credit 25
Notes:
- You cannot create a team from within another team account.
@@ -45,12 +45,6 @@ Notes:
For more details, see:
https://vast.ai/docs/teams-quickstart
-## Examples
-
-```bash
-vastai create team
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/create-template.mdx b/cli/reference/create-template.mdx
index bde973b..30bf250 100644
--- a/cli/reference/create-template.mdx
+++ b/cli/reference/create-template.mdx
@@ -22,7 +22,7 @@ vastai create template
- docker image tag (can also be appended to end of image_path)
+ docker image tag
@@ -54,7 +54,7 @@ vastai create template
- For runtype 'jupyter', directory in instance to use to launch jupyter. Defaults to image's working directory
+ For runtype 'jupyter', directory in instance to use to launch jupyter
@@ -69,8 +69,8 @@ vastai create template
search offers filters
-
- Disable default search param query args (alias: `--no-default`)
+
+ Disable default search param query args
@@ -93,20 +93,6 @@ vastai create template
make template available to public
-## Description
-
-Create a template that can be used to create instances with
-
-## Examples
-
-```bash
-vastai create template --name "tgi-llama2-7B-quantized" --image "ghcr.io/huggingface/text-generation-inference:1.0.3"
- --env "-p 3000:3000 -e MODEL_ARGS='--model-id TheBloke/Llama-2-7B-chat-GPTQ --quantize gptq'"
- --onstart-cmd 'wget -O - https://raw.githubusercontent.com/vast-ai/vast-pyworker/main/scripts/launch_tgi.sh | bash'
- --search_params "gpu_ram>=23 num_gpus=1 gpu_name=RTX_3090 inet_down>128 direct_port_count>3 disk_space>=192 driver_version>=535086005 rented=False"
- --disk_space 8.0 --ssh --direct
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/create-volume.mdx b/cli/reference/create-volume.mdx
index 3bee47d..cb0b860 100644
--- a/cli/reference/create-volume.mdx
+++ b/cli/reference/create-volume.mdx
@@ -19,12 +19,12 @@ vastai create volume ID [options]
## Options
-
- size in GB of volume. Default 15 GB. (alias: `--size`)
+
+ size in GB of volume. Default %(default)s GB.
-
- Optional name of volume. (alias: `--name`)
+
+ Optional name of volume.
## Description
@@ -32,12 +32,6 @@ vastai create volume ID [options]
Creates a volume from an offer ID (which is returned from "search volumes"). Each offer ID can be used to create multiple volumes,
provided the size of all volumes does not exceed the size of the offer.
-## Examples
-
-```bash
-vastai create volume
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/create-workergroup.mdx b/cli/reference/create-workergroup.mdx
index 7a90a91..f9f1fc1 100644
--- a/cli/reference/create-workergroup.mdx
+++ b/cli/reference/create-workergroup.mdx
@@ -21,12 +21,12 @@ vastai create workergroup [OPTIONS]
template id (optional)
-
- Disable default search param query args (alias: `--no-default`)
+
+ Disable default search param query args
- launch args string for create instance ex: "`--onstart` onstart_wget.sh `--env` '-e ONSTART_PATH=https://s3.amazonaws.com/vast.ai/onstart_OOBA.sh' `--image` atinoda/text-generation-webui:default-nightly `--disk` 64"
+ launch args string for create instance ex: "--onstart onstart_wget.sh --env '-e ONSTART_PATH=https://s3.amazonaws.com/vast.ai/onstart_OOBA.sh' --image atinoda/text-generation-webui:default-nightly --disk 64"
@@ -69,13 +69,7 @@ vastai create workergroup [OPTIONS]
Create a new autoscaling group to manage a pool of worker instances.
-Example: vastai create workergroup `--template_hash` HASH `--endpoint_name` "LLama" `--test_workers` 5
-
-## Examples
-
-```bash
-vastai create workergroup
-```
+Example: vastai create workergroup --template_hash HASH --endpoint_name "LLama" --test_workers 5
## Global Options
diff --git a/cli/reference/defrag-machines.mdx b/cli/reference/defrag-machines.mdx
index 1816465..99a6f4d 100644
--- a/cli/reference/defrag-machines.mdx
+++ b/cli/reference/defrag-machines.mdx
@@ -1,9 +1,34 @@
---
title: "vastai defrag machines"
sidebarTitle: "defrag machines"
-description: "Host command"
---
-import DefragMachinesCLI from '/snippets/host/cli/defrag-machines.mdx';
+[Host] Defragment machines
-
+## Usage
+
+```bash
+vastai defragment machines IDs
+```
+
+## Arguments
+
+
+ ids of machines
+
+
+## Description
+
+Defragment some of your machines. This will rearrange GPU assignments to try and make more multi-gpu offers available.
+
+## 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`) |
diff --git a/cli/reference/delete-api-key.mdx b/cli/reference/delete-api-key.mdx
index 3d45bfd..7cb72a4 100644
--- a/cli/reference/delete-api-key.mdx
+++ b/cli/reference/delete-api-key.mdx
@@ -17,12 +17,6 @@ vastai delete api-key ID
id of apikey to remove
-## Examples
-
-```bash
-vastai delete api-key
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/delete-deployment.mdx b/cli/reference/delete-deployment.mdx
index f78142b..6650243 100644
--- a/cli/reference/delete-deployment.mdx
+++ b/cli/reference/delete-deployment.mdx
@@ -20,7 +20,7 @@ vastai delete deployment [ID | --name NAME [--tag TAG]]
## Options
- name of deployment to delete (deletes all tags unless `--tag` is specified)
+ name of deployment to delete (deletes all tags unless --tag is specified)
@@ -31,8 +31,8 @@ vastai delete deployment [ID | --name NAME [--tag TAG]]
```bash
vastai delete deployment 1234
-vastai delete deployment --name my-deployment
-vastai delete deployment --name my-deployment --tag prod
+ vastai delete deployment --name my-deployment
+ vastai delete deployment --name my-deployment --tag prod
```
## Global Options
diff --git a/cli/reference/delete-endpoint.mdx b/cli/reference/delete-endpoint.mdx
index 5bc3307..0b61dcc 100644
--- a/cli/reference/delete-endpoint.mdx
+++ b/cli/reference/delete-endpoint.mdx
@@ -21,12 +21,6 @@ vastai delete endpoint ID
Example: vastai delete endpoint 4242
-## Examples
-
-```bash
-vastai delete endpoint
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/delete-env-var.mdx b/cli/reference/delete-env-var.mdx
index 9b828ce..ba0b45c 100644
--- a/cli/reference/delete-env-var.mdx
+++ b/cli/reference/delete-env-var.mdx
@@ -17,12 +17,6 @@ vastai delete env-var
Environment variable name to delete
-## Examples
-
-```bash
-vastai delete env-var
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/delete-machine.mdx b/cli/reference/delete-machine.mdx
index 74b0654..b9f0c59 100644
--- a/cli/reference/delete-machine.mdx
+++ b/cli/reference/delete-machine.mdx
@@ -1,9 +1,30 @@
---
title: "vastai delete machine"
sidebarTitle: "delete machine"
-description: "Host command"
---
-import DeleteMachineCLI from '/snippets/host/cli/delete-machine.mdx';
+[Host] Delete machine if the machine is not being used by clients. host jobs on their own machines are disregarded and machine is force deleted.
-
+## Usage
+
+```bash
+vastai delete machine
+```
+
+## Arguments
+
+
+ id of machine to delete
+
+
+## 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`) |
diff --git a/cli/reference/delete-scheduled-job.mdx b/cli/reference/delete-scheduled-job.mdx
index 0870cff..b02764a 100644
--- a/cli/reference/delete-scheduled-job.mdx
+++ b/cli/reference/delete-scheduled-job.mdx
@@ -17,12 +17,6 @@ vastai delete scheduled-job ID
id of scheduled job to remove
-## Examples
-
-```bash
-vastai delete scheduled-job
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/delete-ssh-key.mdx b/cli/reference/delete-ssh-key.mdx
index bcbd584..b24e814 100644
--- a/cli/reference/delete-ssh-key.mdx
+++ b/cli/reference/delete-ssh-key.mdx
@@ -17,12 +17,6 @@ vastai delete ssh-key ID
id ssh key to delete
-## Examples
-
-```bash
-vastai delete ssh-key
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/delete-template.mdx b/cli/reference/delete-template.mdx
index 55af1ad..974fb90 100644
--- a/cli/reference/delete-template.mdx
+++ b/cli/reference/delete-template.mdx
@@ -8,7 +8,7 @@ Delete a Template
## Usage
```bash
-vastai delete template --template-id
+vastai delete template [--template-id | --hash-id ]
```
## Options
@@ -17,15 +17,9 @@ vastai delete template --template-id
Template ID of Template to Delete
-## Description
-
-Deleting a template only removes the user's relationship to the template; it is not destroyed.
-
-## Examples
-
-```bash
-vastai delete template --template-id 12345
-```
+
+ Hash ID of Template to Delete
+
## Global Options
diff --git a/cli/reference/delete-volume.mdx b/cli/reference/delete-volume.mdx
index 572cd5f..101874b 100644
--- a/cli/reference/delete-volume.mdx
+++ b/cli/reference/delete-volume.mdx
@@ -21,12 +21,6 @@ vastai delete volume ID
Deletes volume with the given ID. All instances using the volume must be destroyed before the volume can be deleted.
-## Examples
-
-```bash
-vastai delete volume
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/delete-workergroup.mdx b/cli/reference/delete-workergroup.mdx
index 2abf44d..6992785 100644
--- a/cli/reference/delete-workergroup.mdx
+++ b/cli/reference/delete-workergroup.mdx
@@ -22,12 +22,6 @@ vastai delete workergroup ID
Note that deleting a workergroup doesn't automatically destroy all the instances that are associated with your workergroup.
Example: vastai delete workergroup 4242
-## Examples
-
-```bash
-vastai delete workergroup
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/destroy-instance.mdx b/cli/reference/destroy-instance.mdx
index 1bf8eaa..f6ae51b 100644
--- a/cli/reference/destroy-instance.mdx
+++ b/cli/reference/destroy-instance.mdx
@@ -8,7 +8,7 @@ Destroy an instance (irreversible, deletes data)
## Usage
```bash
-vastai destroy instance id [-h] [--api-key API_KEY] [--raw]
+vastai destroy instance id [-h] [-y] [--api-key API_KEY] [--raw]
```
## Arguments
@@ -17,16 +17,17 @@ vastai destroy instance id [-h] [--api-key API_KEY] [--raw]
id of instance to delete
+## Options
+
+
+ Skip confirmation prompt
+
+
## Description
Perfoms the same action as pressing the "DESTROY" button on the website at https://console.vast.ai/instances/
Example: vastai destroy instance 4242
-
-## Examples
-
-```bash
-vastai destroy instance
-```
+Use -y or --yes to skip the confirmation prompt.
## Global Options
diff --git a/cli/reference/destroy-instances.mdx b/cli/reference/destroy-instances.mdx
index b42b7a6..a473afb 100644
--- a/cli/reference/destroy-instances.mdx
+++ b/cli/reference/destroy-instances.mdx
@@ -8,7 +8,7 @@ Destroy a list of instances (irreversible, deletes data)
## Usage
```bash
-vastai destroy instances [--raw]
+vastai destroy instances [--raw] [-y] [ ...]
```
## Arguments
@@ -17,11 +17,11 @@ vastai destroy instances [--raw]
ids of instance to destroy
-## Examples
+## Options
-```bash
-vastai destroy instances
-```
+
+ Skip confirmation prompt
+
## Global Options
diff --git a/cli/reference/destroy-team.mdx b/cli/reference/destroy-team.mdx
index e55c780..8bd868f 100644
--- a/cli/reference/destroy-team.mdx
+++ b/cli/reference/destroy-team.mdx
@@ -11,12 +11,6 @@ Destroy your team
vastai destroy team
```
-## Examples
-
-```bash
-vastai destroy team
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/detach-ssh.mdx b/cli/reference/detach-ssh.mdx
index e2e16c6..9e7d079 100644
--- a/cli/reference/detach-ssh.mdx
+++ b/cli/reference/detach-ssh.mdx
@@ -18,19 +18,13 @@ vastai detach instance_id ssh_key_id
- id of the key to detach to the instance
+ id of the key to detach from the instance
## Description
Example: vastai detach 99999 12345
-## Examples
-
-```bash
-vastai detach ssh
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/dump-logs.mdx b/cli/reference/dump-logs.mdx
new file mode 100644
index 0000000..1616b99
--- /dev/null
+++ b/cli/reference/dump-logs.mdx
@@ -0,0 +1,61 @@
+---
+title: "vastai dump-logs"
+sidebarTitle: "dump-logs"
+---
+
+[Host] Bundle self-test diagnostics for support
+
+## Usage
+
+```bash
+vastai dump-logs [--instance-id INSTANCE_ID] [--output-dir DIR] [--include-local-host-artifacts]
+```
+
+## Arguments
+
+
+ Machine ID
+
+
+## Options
+
+
+ Instance ID to pull Vast instance logs from
+
+
+
+ Directory for the diagnostic bundle (default: /tmp)
+
+
+
+ Include local OS/kaalia artifacts; only use when running on the actual Vast host
+
+
+## Description
+
+Creates a redacted diagnostic tarball containing CLI-visible self-test
+evidence. If --instance-id is provided, the command also pulls container
+and daemon logs from the Vast instance logs API.
+
+Local OS/kaalia artifacts are only collected with
+--include-local-host-artifacts. Use that option only when running this
+command on the actual host machine; from a laptop, it would collect the
+laptop's logs instead.
+
+## Examples
+
+```bash
+vastai dump-logs 12345 --instance-id 67890
+```
+
+## 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`) |
diff --git a/cli/reference/execute.mdx b/cli/reference/execute.mdx
index 50485c6..ed96c7e 100644
--- a/cli/reference/execute.mdx
+++ b/cli/reference/execute.mdx
@@ -24,43 +24,40 @@ vastai execute id COMMAND
## Options
- 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`
+ try to schedule a command to run hourly, daily, or weekly. Valid values are HOURLY, DAILY, WEEKLY For ex. --schedule DAILY
+ Allowed values: HOURLY, DAILY, WEEKLY
-
+
Start date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is now. (optional)
-
+
End date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is 7 days from now. (optional)
-
- Day of week you want scheduled job to run on (0-6, where 0=Sunday) or "*". Default will be 0. For ex. `--day` 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 of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. `--hour` 16
+
+ Hour of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. --hour 16
-## Description
-
-Available commands:
-
-| Command | Description |
-|---------|-------------|
-| `ls` | List directory contents |
-| `rm` | Remove files or directories |
-| `du` | Summarize device usage for a set of files |
-
-Returns the output of the command executed on the instance. May take a few seconds to retrieve results.
-
## Examples
```bash
vastai execute 99999 'ls -l -o -r'
-vastai execute 99999 'rm -r home/delete_this.txt'
-vastai execute 99999 'du -d2 -h'
+ vastai execute 99999 'rm -r home/delete_this.txt'
+ vastai execute 99999 'du -d2 -h'
+
+available commands:
+ ls List directory contents
+ rm Remote files or directories
+ du Summarize device usage for a set of files
+
+Return value:
+Returns the output of the command which was executed on the instance, if successful. May take a few seconds to retrieve the results.
```
## Global Options
diff --git a/cli/reference/get-endpt-logs.mdx b/cli/reference/get-endpt-logs.mdx
index 351a372..4a19751 100644
--- a/cli/reference/get-endpt-logs.mdx
+++ b/cli/reference/get-endpt-logs.mdx
@@ -31,12 +31,6 @@ vastai get endpt-logs ID [--api-key API_KEY]
Example: vastai get endpt-logs 382
-## Examples
-
-```bash
-vastai get endpt-logs
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/get-endpt-workers.mdx b/cli/reference/get-endpt-workers.mdx
new file mode 100644
index 0000000..0aa321b
--- /dev/null
+++ b/cli/reference/get-endpt-workers.mdx
@@ -0,0 +1,34 @@
+---
+title: "vastai get endpt-workers"
+sidebarTitle: "get endpt-workers"
+---
+
+List workers on an endpoint group with status and measured_perf
+
+## Usage
+
+```bash
+vastai get endpt-workers ID [--api-key API_KEY]
+```
+
+## Arguments
+
+
+ id of endpoint group whose workers to list
+
+
+## Description
+
+Example: vastai get endpt-workers 21979
+
+## 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`) |
diff --git a/cli/reference/get-wrkgrp-logs.mdx b/cli/reference/get-wrkgrp-logs.mdx
index 642850e..e19f05f 100644
--- a/cli/reference/get-wrkgrp-logs.mdx
+++ b/cli/reference/get-wrkgrp-logs.mdx
@@ -3,7 +3,7 @@ title: "vastai get wrkgrp-logs"
sidebarTitle: "get wrkgrp-logs"
---
-Fetch logs for a specific serverless worker group group
+Fetch logs for a specific serverless worker group
## Usage
@@ -14,7 +14,7 @@ vastai get wrkgrp-logs ID [--api-key API_KEY]
## Arguments
- id of endpoint group to fetch logs from
+ id of workergroup to fetch logs from
## Options
@@ -31,12 +31,6 @@ vastai get wrkgrp-logs ID [--api-key API_KEY]
Example: vastai get endpt-logs 382
-## Examples
-
-```bash
-vastai get wrkgrp-logs
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/invite-member.mdx b/cli/reference/invite-member.mdx
index c0f43b6..1054659 100644
--- a/cli/reference/invite-member.mdx
+++ b/cli/reference/invite-member.mdx
@@ -21,12 +21,6 @@ vastai invite member --email EMAIL --role ROLE
role of user to be invited
-## Examples
-
-```bash
-vastai invite member
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/join-overlay.mdx b/cli/reference/join-overlay.mdx
deleted file mode 100644
index ee40235..0000000
--- a/cli/reference/join-overlay.mdx
+++ /dev/null
@@ -1,44 +0,0 @@
----
-title: "vastai join overlay"
-sidebarTitle: "join overlay"
----
-
-Adds instance to an overlay network
-
-## Usage
-
-```bash
-vastai join overlay OVERLAY_NAME INSTANCE_ID
-```
-
-## Arguments
-
-
- Overlay network name to join instance to.
-
-
-
- Instance ID to add to overlay.
-
-
-## Description
-
-Adds an instance to a compatible overlay network.
-
-## Examples
-
-```bash
-vastai join overlay
-```
-
-## 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`) |
diff --git a/cli/reference/label-instance.mdx b/cli/reference/label-instance.mdx
index 77d14db..dd2e096 100644
--- a/cli/reference/label-instance.mdx
+++ b/cli/reference/label-instance.mdx
@@ -21,12 +21,6 @@ vastai label instance
label to set
-## Examples
-
-```bash
-vastai label instance
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/launch-instance.mdx b/cli/reference/launch-instance.mdx
index 027c3e1..fd64844 100644
--- a/cli/reference/launch-instance.mdx
+++ b/cli/reference/launch-instance.mdx
@@ -13,36 +13,38 @@ vastai launch instance [--help] [--api-key API_KEY]
- Name of the GPU model, replace spaces with underscores (alias: `--gpu-name`) Choices: `A10`, `A100_PCIE`, `A100_SXM4`, `A100X`, `A10g`, `A40`, `A800_PCIE`, `B200`, `CMP_50HX`, `GTX_1050`, `GTX_1050_Ti`, `GTX_1060`, `GTX_1070`, `GTX_1070_Ti`, `GTX_1080`, `GTX_1080_Ti`, `GTX_1650`, `GTX_1650_S`, `GTX_1660`, `GTX_1660_S`, `GTX_1660_Ti`, `H100_NVL`, `H100_PCIE`, `H100_SXM`, `H200`, `H200_NVL`, `L4`, `L40`, `L40S`, `Q_RTX_4000`, `Q_RTX_5000`, `Q_RTX_6000`, `Q_RTX_8000`, `Quadro_P2000`, `Quadro_P4000`, `RTX_2000Ada`, `RTX_2060`, `RTX_2060S`, `RTX_2070`, `RTX_2070S`, `RTX_2080`, `RTX_2080S`, `RTX_2080_Ti`, `RTX_3050`, `RTX_3060`, `RTX_3060_laptop`, `RTX_3060_Ti`, `RTX_3070`, `RTX_3070_laptop`, `RTX_3070_Ti`, `RTX_3080`, `RTX_3080_Ti`, `RTX_3090`, `RTX_3090_Ti`, `RTX_4000Ada`, `RTX_4060`, `RTX_4060_Ti`, `RTX_4070`, `RTX_4070S`, `RTX_4070S_Ti`, `RTX_4070_Ti`, `RTX_4080`, `RTX_4080S`, `RTX_4090`, `RTX_4090D`, `RTX_4500Ada`, `RTX_5000Ada`, `RTX_5060`, `RTX_5060_Ti`, `RTX_5070`, `RTX_5070_Ti`, `RTX_5080`, `RTX_5090`, `RTX_5880Ada`, `RTX_6000Ada`, `RTX_A2000`, `RTX_A4000`, `RTX_A4500`, `RTX_A5000`, `RTX_A6000`, `RTX_PRO_4000`, `RTX_PRO_4500`, `RTX_PRO_5000`, `RTX_PRO_6000_S`, `RTX_PRO_6000_WS`, `Tesla_P100`, `Tesla_P4`, `Tesla_P40`, `Tesla_T4`, `Tesla_V100`, `Titan_RTX`, `Titan_V`, `Titan_Xp`
+
+ Name of the GPU model, replace spaces with underscores
+ Allowed values: 970, A10, A100_PCIE, A100_SXM4, A40, A800_PCIE, B200, B300, GB10, GTX_1050, GTX_1050_Ti, GTX_1060, GTX_1070, GTX_1070_Ti, GTX_1080, GTX_1080_Ti, GTX_1650, GTX_1650_S, GTX_1660, GTX_1660_S, GTX_1660_Ti, GTX_TITAN_X, H100_NVL, H100_PCIE, H100_SXM, H200, H200_NVL, InstinctMI100, L4, L40, L40S, Q_RTX_4000, Q_RTX_6000, Q_RTX_8000, Quadro_P4000, Quadro_P5000, RTX_2000Ada, RTX_2060, RTX_2060S, RTX_2070, RTX_2070S, RTX_2080, RTX_2080S, RTX_2080_Ti, RTX_3050, RTX_3060, RTX_3060_laptop, RTX_3060_Ti, RTX_3070, RTX_3070_laptop, RTX_3070_Ti, RTX_3080, RTX_3080_Ti, RTX_3090, RTX_3090_Ti, RTX_4000Ada, RTX_4060, RTX_4060_laptop, RTX_4060_Ti, RTX_4070, RTX_4070S, RTX_4070S_Ti, RTX_4070_Ti, RTX_4080, RTX_4080S, RTX_4090, RTX_4090D, RTX_4500Ada, RTX_5000Ada, RTX_5060, RTX_5060_laptop, RTX_5060_Ti, RTX_5070, RTX_5070_Ti, RTX_5080, RTX_5090, RTX_5880Ada, RTX_6000Ada, RTX_A2000, RTX_A4000, RTX_A4500, RTX_A5000, RTX_A6000, RTX_PRO_4000, RTX_PRO_4500, RTX_PRO_5000, RTX_PRO_6000_S, RTX_PRO_6000_WS, Tesla_P100, Tesla_P4, Tesla_P40, Tesla_T4, Tesla_V100, Titan_RTX, Titan_V, Titan_Xp
-
- Number of GPUs required (alias: `--num-gpus`) Choices: `1`, `2`, `4`, `8`, `12`, `14`
+
+ Number of GPUs required
+ Allowed values: 1, 2, 4, 8, 12, 14
-
- Geographical location of the instance (alias: `--region`)
+
+ Geographical location of the instance
-
- Name of the image to use for instance (alias: `--image`)
+
+ Name of the image to use for instance
-
- Disk space required in GB (alias: `--disk`)
+
+ Disk space required in GB
-
- Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'num_gpus,total_flops-'. default='score-' (alias: `--order`)
+
+ Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'num_gpus,total_flops-'. default='score-'
- docker login arguments for private repo authentication, surround with ''
+ docker login arguments for private repo authentication, surround with ''
@@ -90,17 +92,13 @@ vastai launch instance [--help] [--api-key API_KEY]
- env variables and port mapping options, surround with ''
+ 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)
@@ -112,35 +110,35 @@ vastai launch instance [--help] [--api-key API_KEY]
+## Usage
+
+```bash
+vastai list machine ID [options]
+```
+
+## Arguments
+
+
+ id of machine to list
+
+
+## Options
+
+
+ per gpu rental price in $/hour (price for active instances)
+
+
+
+ storage price in $/GB/month (price for inactive instances), default: $0.10/GB/month
+
+
+
+ price for internet upload bandwidth in $/GB
+
+
+
+ price for internet download bandwidth in $/GB
+
+
+
+ per gpu minimum bid price floor in $/hour
+
+
+
+ Max long term prepay discount rate fraction, default: 0.4
+
+
+
+ minimum amount of gpus (default: 1)
+
+
+
+ contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format)
+
+
+
+ Updates end_date daily to be duration from current date. Cannot be combined with end_date. Format is: `n days`, `n weeks`, `n months`, `n years`, or total intended duration in seconds.
+
+
+
+ Size for volume contract offer. Defaults to half of available disk. Set 0 to not create a volume contract offer.
+
+
+
+ Price for disk on volume contract offer. Defaults to price_disk. Invalid if vol_size is 0.
+
+
+## Description
+
+Performs the same action as pressing the "LIST" button on the site https://cloud.vast.ai/host/machines.
+On the end date the listing will expire and your machine will unlist. However any existing client jobs will still remain until ended by their owners.
+Once you list your machine and it is rented, it is extremely important that you don't interfere with the machine in any way.
+If your machine has an active client job and then goes offline, crashes, or has performance problems, this could permanently lower your reliability rating.
+We strongly recommend you test the machine first and only list when ready.
+
+Raising any resource price above the current contract price writes a
+pending row to `pending_price_increases` for each affected client.
+Clients review and accept those rows via the console or
+`vastai show pending-price-increases`; auto-extend stops at the old
+price until they accept.
+
+## 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`) |
diff --git a/cli/reference/list-machines.mdx b/cli/reference/list-machines.mdx
index c746783..8faeda9 100644
--- a/cli/reference/list-machines.mdx
+++ b/cli/reference/list-machines.mdx
@@ -1,9 +1,82 @@
---
title: "vastai list machines"
sidebarTitle: "list machines"
-description: "Host command"
---
-import ListMachinesCLI from '/snippets/host/cli/list-machines.mdx';
+[Host] list machines for rent
-
+## Usage
+
+```bash
+vastai list machines IDs [options]
+```
+
+## Arguments
+
+
+ ids of machines to list
+
+
+## Options
+
+
+ per gpu on-demand rental price in $/hour (base price for active instances)
+
+
+
+ storage price in $/GB/month (price for inactive instances), default: $0.10/GB/month
+
+
+
+ price for internet upload bandwidth in $/GB
+
+
+
+ price for internet download bandwidth in $/GB
+
+
+
+ per gpu minimum bid price floor in $/hour
+
+
+
+ Max long term prepay discount rate fraction, default: 0.4
+
+
+
+ minimum amount of gpus (default: 1)
+
+
+
+ contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format)
+
+
+
+ Updates end_date daily to be duration from current date. Cannot be combined with end_date. Format is: `n days`, `n weeks`, `n months`, `n years`, or total intended duration in seconds.
+
+
+
+ Size for volume contract offer. Defaults to half of available disk. Set 0 to not create a volume contract offer.
+
+
+
+ Price for disk on volume contract offer. Defaults to price_disk. Invalid if vol_size is 0.
+
+
+## Description
+
+This variant can be used to list or update the listings for multiple machines at once with the same args.
+You could extend the end dates of all your machines using a command combo like this:
+./vast.py list machines $(./vast.py show machines -q) -e 12/31/2024 --retry 6
+
+## 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`) |
diff --git a/cli/reference/list-volume.mdx b/cli/reference/list-volume.mdx
index 0f10865..8b68385 100644
--- a/cli/reference/list-volume.mdx
+++ b/cli/reference/list-volume.mdx
@@ -1,12 +1,9 @@
---
title: "vastai list volume"
sidebarTitle: "list volume"
-description: "Host command"
---
-list disk space for rent as a volume on a machine
-
-This is a **host** command, used for managing machines you are renting out on Vast.ai.
+[Host] list disk space for rent as a volume on a machine
## Usage
@@ -22,28 +19,22 @@ vastai list volume ID [options]
## Options
-
- storage price in \$/GB/month, default: \$0.1/GB/month (alias: `--price_disk`)
+
+ storage price in $/GB/month, default: $%(default).2f/GB/month
-
- contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format), default 3 months (alias: `--end_date`)
+
+ contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format), default 3 months
-
- size of disk space allocated to offer in GB, default 15 GB (alias: `--size`)
+
+ size of disk space allocated to offer in GB, default %(default)s GB
## Description
Allocates a section of disk on a machine to be used for volumes.
-## Examples
-
-```bash
-vastai list volume
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/list-volumes.mdx b/cli/reference/list-volumes.mdx
index 818e62d..def57ae 100644
--- a/cli/reference/list-volumes.mdx
+++ b/cli/reference/list-volumes.mdx
@@ -1,12 +1,9 @@
---
title: "vastai list volumes"
sidebarTitle: "list volumes"
-description: "Host command"
---
-list disk space for rent as a volume on machines
-
-This is a **host** command, used for managing machines you are renting out on Vast.ai.
+[Host] list disk space for rent as a volume on machines
## Usage
@@ -22,28 +19,22 @@ vastai list volume IDs [options]
## Options
-
- storage price in \$/GB/month, default: \$0.1/GB/month (alias: `--price_disk`)
+
+ storage price in $/GB/month, default: $%(default).2f/GB/month
-
- contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format), default 3 months (alias: `--end_date`)
+
+ contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format), default 3 months
-
- size of disk space allocated to offer in GB, default 15 GB (alias: `--size`)
+
+ size of disk space allocated to offer in GB, default %(default)s GB
## Description
Allocates a section of disk on machines to be used for volumes.
-## Examples
-
-```bash
-vastai list volumes
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/logs.mdx b/cli/reference/logs.mdx
index de053b9..c7870f3 100644
--- a/cli/reference/logs.mdx
+++ b/cli/reference/logs.mdx
@@ -31,12 +31,6 @@ vastai logs INSTANCE_ID [OPTIONS]
Fetch daemon system logs instead of container logs
-## Examples
-
-```bash
-vastai logs
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/metrics-gpu-locations.mdx b/cli/reference/metrics-gpu-locations.mdx
index 8408313..afc9c6e 100644
--- a/cli/reference/metrics-gpu-locations.mdx
+++ b/cli/reference/metrics-gpu-locations.mdx
@@ -1,9 +1,60 @@
---
title: "vastai metrics gpu-locations"
sidebarTitle: "metrics gpu-locations"
-description: "Host command"
---
-import MetricsGpuLocationsCLI from '/snippets/host/cli/metrics-gpu-locations.mdx';
+[Host] Get GPU location metrics
-
+## Usage
+
+```bash
+vastai metrics gpu-locations [OPTIONS]
+```
+
+## Options
+
+
+ Filter by verification status
+ Allowed values: true, false, all
+
+
+
+ Filter by datacenter hosting type
+ Allowed values: true, false, all
+
+
+
+ Filter by rented status
+ Allowed values: true, false, all
+
+
+
+ Filter by GPU name (comma-separated list). Underscores are accepted in place of spaces.
+
+
+## Description
+
+Show geographic locations of GPUs on the platform. Filtering is applied
+client-side — the endpoint returns one shared dataset and the CLI narrows
+the rows locally. Requires host or admin access.
+
+## Examples
+
+```bash
+vastai metrics gpu-locations
+ vastai metrics gpu-locations --verified true --datacenter true
+ vastai metrics gpu-locations --gpu "RTX 4090,H100_SXM"
+ vastai metrics gpu-locations --rented false --raw
+```
+
+## 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`) |
diff --git a/cli/reference/metrics-gpu-trends.mdx b/cli/reference/metrics-gpu-trends.mdx
index 28295c2..2e79a67 100644
--- a/cli/reference/metrics-gpu-trends.mdx
+++ b/cli/reference/metrics-gpu-trends.mdx
@@ -1,9 +1,76 @@
---
title: "vastai metrics gpu-trends"
sidebarTitle: "metrics gpu-trends"
-description: "Host command"
---
-import MetricsGpuTrendsCLI from '/snippets/host/cli/metrics-gpu-trends.mdx';
+[Host] Get GPU market history
-
+## Usage
+
+```bash
+vastai metrics gpu-trends [NAME] [OPTIONS]
+```
+
+## Arguments
+
+
+ GPU name, comma-separated list, or 'all'. Underscores are accepted in place of spaces.
+
+
+## Options
+
+
+ Filter by verified status
+ Allowed values: true, false, all
+
+
+
+ Filter by datacenter hosting type
+ Allowed values: true, false, all
+
+
+
+ Filter by machine GPU-count bucket (1x, 2x, 4x, 8x)
+ Allowed values: all, 1, 2, 4, 8
+
+
+
+ Start unix timestamp
+
+
+
+ End unix timestamp
+
+
+
+ Time between data points in seconds (e.g. 3600 for hourly). Minimum 60s; step may be raised server-side to cap points returned.
+
+
+## Description
+
+Show GPU supply/demand and pricing trends over time. Defaults to RTX 5090, 4090, 3090
+for the last 24 hours. Requires host or admin access.
+
+## Examples
+
+```bash
+vastai metrics gpu-trends
+ vastai metrics gpu-trends "RTX 4090"
+ vastai metrics gpu-trends "RTX 4090" --full
+ vastai metrics gpu-trends "RTX 4090" --raw
+ vastai metrics gpu-trends all --verified true --datacenter true
+ vastai metrics gpu-trends "RTX 5090" --num-gpus 8
+ vastai metrics gpu-trends "RTX 4090,H100_SXM" --start 1773298800 --end 1773817200 --step 3600
+```
+
+## 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`) |
diff --git a/cli/reference/metrics-gpu.mdx b/cli/reference/metrics-gpu.mdx
index cf6c7eb..8ac3034 100644
--- a/cli/reference/metrics-gpu.mdx
+++ b/cli/reference/metrics-gpu.mdx
@@ -1,9 +1,56 @@
---
title: "vastai metrics gpu"
sidebarTitle: "metrics gpu"
-description: "Host command"
---
-import MetricsGpuCLI from '/snippets/host/cli/metrics-gpu.mdx';
+[Host] Get current GPU market metrics
-
+## Usage
+
+```bash
+vastai metrics gpu [OPTIONS]
+```
+
+## Options
+
+
+ Filter GPUs by verification status
+ Allowed values: true, false, all
+
+
+
+ Filter GPUs by datacenter hosting type
+ Allowed values: true, false, all
+
+
+
+ Filter by machine GPU-count bucket (1x, 2x, 4x, 8x)
+ Allowed values: all, 1, 2, 4, 8
+
+
+## Description
+
+Get current GPU metrics with counts, usage, performance, and pricing.
+For historical metrics, see the `metrics gpu-trends` command.
+Requires host or admin access.
+
+## Examples
+
+```bash
+vastai metrics gpu
+ vastai metrics gpu --verified true --datacenter true
+ vastai metrics gpu --num-gpus 8
+ vastai metrics gpu --raw
+```
+
+## 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`) |
diff --git a/cli/reference/prepay-instance.mdx b/cli/reference/prepay-instance.mdx
index a0a8404..e9a252c 100644
--- a/cli/reference/prepay-instance.mdx
+++ b/cli/reference/prepay-instance.mdx
@@ -21,12 +21,6 @@ vastai prepay instance ID AMOUNT
amount of instance credit prepayment (default discount func of 0.2 for 1 month, 0.3 for 3 months)
-## Examples
-
-```bash
-vastai prepay instance
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/reboot-instance.mdx b/cli/reference/reboot-instance.mdx
index d0bef11..7e032c2 100644
--- a/cli/reference/reboot-instance.mdx
+++ b/cli/reference/reboot-instance.mdx
@@ -20,35 +20,30 @@ vastai reboot instance ID [OPTIONS]
## Options
- 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`
+ try to schedule a command to run hourly, daily, or weekly. Valid values are HOURLY, DAILY, WEEKLY For ex. --schedule DAILY
+ Allowed values: HOURLY, DAILY, WEEKLY
-
+
Start date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is now. (optional)
-
+
End date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is 7 days from now. (optional)
-
- Day of week you want scheduled job to run on (0-6, where 0=Sunday) or "*". Default will be 0. For ex. `--day` 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 of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. `--hour` 16
+
+ Hour of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. --hour 16
## Description
Stops and starts container without any risk of losing GPU priority.
-## Examples
-
-```bash
-vastai reboot instance
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/recycle-instance.mdx b/cli/reference/recycle-instance.mdx
index 9e8b279..7272e23 100644
--- a/cli/reference/recycle-instance.mdx
+++ b/cli/reference/recycle-instance.mdx
@@ -21,12 +21,6 @@ vastai recycle instance ID [OPTIONS]
Destroys and recreates container in place (from newly pulled image) without any risk of losing GPU priority.
-## Examples
-
-```bash
-vastai recycle instance
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/reject-price-increase.mdx b/cli/reference/reject-price-increase.mdx
new file mode 100644
index 0000000..b2caa2e
--- /dev/null
+++ b/cli/reference/reject-price-increase.mdx
@@ -0,0 +1,47 @@
+---
+title: "vastai reject price-increase"
+sidebarTitle: "reject price-increase"
+---
+
+Reject one or more pending host price increases
+
+## Usage
+
+```bash
+vastai reject price-increase ID [ID ...] [--yes]
+```
+
+## Arguments
+
+
+ instance IDs to reject (one or more).
+
+
+## Options
+
+
+ skip the interactive prompt; required when stdin is not a TTY
+
+
+## Description
+
+Tombstones the matching pending rows on the backend (no cutover follows).
+Use `vastai show pending-price-increases` to review the rows first; the
+CLI fans out one PUT per instance ID.
+
+Exit codes mirror `accept price-increase`:
+ 0 — every requested row was rejected
+ 1 — at least one row failed (non-stale)
+ 2 — at least one row was stale
+
+## 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`) |
diff --git a/cli/reference/remove-defjob.mdx b/cli/reference/remove-defjob.mdx
index 78a85f2..7b0ea72 100644
--- a/cli/reference/remove-defjob.mdx
+++ b/cli/reference/remove-defjob.mdx
@@ -1,9 +1,30 @@
---
title: "vastai remove defjob"
sidebarTitle: "remove defjob"
-description: "Host command"
---
-import RemoveDefjobCLI from '/snippets/host/cli/remove-defjob.mdx';
+[Host] Delete default jobs
-
+## Usage
+
+```bash
+vastai remove defjob id
+```
+
+## Arguments
+
+
+ id of machine to remove default instance from
+
+
+## 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`) |
diff --git a/cli/reference/remove-machine-from-cluster.mdx b/cli/reference/remove-machine-from-cluster.mdx
deleted file mode 100644
index 65fecbd..0000000
--- a/cli/reference/remove-machine-from-cluster.mdx
+++ /dev/null
@@ -1,49 +0,0 @@
----
-title: "vastai remove-machine-from-cluster"
-sidebarTitle: "remove-machine-from-cluster"
----
-
-Removes machine from cluster
-
-## Usage
-
-```bash
-vastai remove-machine-from-cluster CLUSTER_ID MACHINE_ID NEW_MANAGER_ID
-```
-
-## Arguments
-
-
- ID of cluster you want to remove machine from.
-
-
-
- ID of machine to remove from cluster.
-
-
-
- ID of machine to promote to manager. Must already be in cluster
-
-
-## Description
-
-Removes machine from cluster and also reassigns manager ID,
-if we're removing the manager node
-
-## Examples
-
-```bash
-vastai remove-machine-from-cluster
-```
-
-## 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`) |
diff --git a/cli/reference/remove-member.mdx b/cli/reference/remove-member.mdx
index 5e329df..c84c4a8 100644
--- a/cli/reference/remove-member.mdx
+++ b/cli/reference/remove-member.mdx
@@ -17,12 +17,6 @@ vastai remove member ID
id of user to remove
-## Examples
-
-```bash
-vastai remove member
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/remove-team-role.mdx b/cli/reference/remove-team-role.mdx
index 1ea80bf..e7a5dbd 100644
--- a/cli/reference/remove-team-role.mdx
+++ b/cli/reference/remove-team-role.mdx
@@ -17,12 +17,6 @@ vastai remove team-role NAME
name of the role
-## Examples
-
-```bash
-vastai remove team-role
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/reports.mdx b/cli/reference/reports.mdx
index 998fcc0..7cc426c 100644
--- a/cli/reference/reports.mdx
+++ b/cli/reference/reports.mdx
@@ -17,12 +17,6 @@ vastai reports ID
machine id
-## Examples
-
-```bash
-vastai reports
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-overlays.mdx b/cli/reference/reset-api-key.mdx
similarity index 62%
rename from cli/reference/show-overlays.mdx
rename to cli/reference/reset-api-key.mdx
index 6cfc074..ef99ea2 100644
--- a/cli/reference/show-overlays.mdx
+++ b/cli/reference/reset-api-key.mdx
@@ -1,24 +1,14 @@
---
-title: "vastai show overlays"
-sidebarTitle: "show overlays"
+title: "vastai reset api-key"
+sidebarTitle: "reset api-key"
---
-Show overlays associated with your account.
+Reset your api-key (get new key from website)
## Usage
```bash
-vastai show overlays
-```
-
-## Description
-
-Show overlays associated with your account.
-
-## Examples
-
-```bash
-vastai show overlays
+vastai reset api-key
```
## Global Options
diff --git a/cli/reference/run-benchmarks.mdx b/cli/reference/run-benchmarks.mdx
index c43e2e4..2445040 100644
--- a/cli/reference/run-benchmarks.mdx
+++ b/cli/reference/run-benchmarks.mdx
@@ -3,7 +3,7 @@ title: "vastai run benchmarks"
sidebarTitle: "run benchmarks"
---
-Benchmark a template against one or more GPUs and report performance per dollar.
+Benchmark a template against one or more GPUs
## Usage
@@ -14,43 +14,54 @@ vastai run benchmarks [OPTIONS]
## Options
- Template hash to benchmark. One of `--template_hash` or `--template_id` is required.
+ (required, one of --template_hash or --template_id) template hash to benchmark
- Template ID to benchmark. Wins over `--template_hash` if both are passed. One of `--template_hash` or `--template_id` is required.
+ (required, one of --template_hash or --template_id) template id
- Comma-separated GPU names, same format as `vastai search offers` (e.g. `RTX_4090,RTX_3090`). An optional `Nx` prefix per token requests a multi-GPU configuration (e.g. `"2x RTX_4090"`). Defaults to `RTX_5090,RTX_4090,RTX_3090,RTX_A6000`.
+ comma-separated GPU names (e.g. RTX_4090,RTX_3090); optional Nx prefix takes precedence over --num_gpus (e.g. "2x RTX_4090")
- GPUs per instance for tokens without an `Nx` prefix. If omitted, the count is auto-sized from the template's `gpu_total_ram` filter so VRAM fits.
+ GPUs per instance for tokens without an Nx prefix (default 1); overridden by inline Nx in --gpus
- Per-GPU safety ceiling in seconds. Each rental is torn down at this point even if no `measured_perf` was reported.
+ max seconds to wait for a benchmark before giving up (default 3600)
-
- Skip the cost confirmation prompt.
+
+ Skip confirmation prompt
+## Description
+
+Rents one instance per GPU in parallel, measures perf, tears down.
+Each rental runs for up to --timeout seconds and costs real money.
+
## Examples
```bash
-# auto-sweep the default GPUs
-vastai run benchmarks --template_hash 79ebdd2ebfb9d42cedf7a221c42d37a5
+# auto-sweep the default GPUs against TGI
+ vastai run benchmarks --template_hash 79ebdd2ebfb9d42cedf7a221c42d37a5
+
+ # specific GPUs against vLLM
+ vastai run benchmarks --template_hash 393fa8572e6c73c927c8275fe4dffd53 --gpus RTX_4090,RTX_3090
+
+ # multi-GPU configurations via inline Nx prefix against ComfyUI
+ vastai run benchmarks --template_hash 40ef49becc953aa910ee05bd4653b9b3 --gpus "2x RTX_4090, 2x RTX_3090"
-# specific GPUs
-vastai run benchmarks --template_hash 393fa8572e6c73c927c8275fe4dffd53 --gpus RTX_4090,RTX_3090
+ # default count for tokens without an Nx prefix
+ vastai run benchmarks --template_hash 79ebdd2ebfb9d42cedf7a221c42d37a5 --gpus RTX_4090,RTX_3090 --num_gpus 2
-# multi-GPU configurations via inline Nx prefix
-vastai run benchmarks --template_hash 40ef49becc953aa910ee05bd4653b9b3 --gpus "2x RTX_4090, 2x RTX_3090"
+ # shorter timeout (30 min), skipping the cost prompt
+ vastai run benchmarks --template_hash 393fa8572e6c73c927c8275fe4dffd53 --timeout 1800 -y
-# raw JSON output for piping into another tool
-vastai run benchmarks --template_hash 40ef49becc953aa910ee05bd4653b9b3 --raw
+ # raw JSON output for piping into another tool
+ vastai run benchmarks --template_hash 40ef49becc953aa910ee05bd4653b9b3 --raw
```
## Global Options
diff --git a/cli/reference/schedule-maint.mdx b/cli/reference/schedule-maint.mdx
index a1ff51c..3a96d40 100644
--- a/cli/reference/schedule-maint.mdx
+++ b/cli/reference/schedule-maint.mdx
@@ -1,9 +1,52 @@
---
title: "vastai schedule maint"
sidebarTitle: "schedule maint"
-description: "Host command"
---
-import ScheduleMaintCLI from '/snippets/host/cli/schedule-maint.mdx';
+[Host] Schedule upcoming maint window
-
+## Usage
+
+```bash
+vastai schedule maintenance id [--sdate START_DATE --duration DURATION --maintenance_category MAINTENANCE_CATEGORY]
+```
+
+## Arguments
+
+
+ id of machine to schedule maintenance for
+
+
+## Options
+
+
+ maintenance start date in unix epoch time (UTC seconds)
+
+
+
+ maintenance duration in hours
+
+
+
+ (optional) can be one of [power, internet, disk, gpu, software, other]
+
+
+## Description
+
+The proper way to perform maintenance on your machine is to wait until all active contracts have expired or the machine is vacant.
+For unplanned or unscheduled maintenance, use this schedule maint command. That will notify the client that you have to take the machine down and that they should save their work.
+You can specify a date, duration, reason and category for the maintenance.
+
+Example: vastai schedule maint 8207 --sdate 1677562671 --duration 0.5 --maintenance_category "power"
+
+## 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`) |
diff --git a/cli/reference/scp-url.mdx b/cli/reference/scp-url.mdx
index e8ea8c7..e3db845 100644
--- a/cli/reference/scp-url.mdx
+++ b/cli/reference/scp-url.mdx
@@ -17,12 +17,6 @@ vastai scp-url ID
id
-## Examples
-
-```bash
-vastai scp-url
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/search-benchmarks.mdx b/cli/reference/search-benchmarks.mdx
index 0e5aa55..6418945 100644
--- a/cli/reference/search-benchmarks.mdx
+++ b/cli/reference/search-benchmarks.mdx
@@ -19,41 +19,42 @@ vastai search benchmarks [--help] [--api-key API_KEY] [--raw]
## Description
-**Query syntax**
+Query syntax:
-```
-query = comparison comparison...
-comparison = field op value
-field =
-op = one of: <, <=, ==, !=, >=, >, in, notin
-value = | 'any' | [value0, value1, ...]
-bool = True | False
-```
+ query = comparison comparison...
+ comparison = field op value
+ field = <name of a field>
+ op = one of: <, <=, ==, !=, >=, >, in, notin
+ value = <bool, int, float, string> | 'any' | [value0, value1, ...]
+ bool: True, False
-- Wrap `>` and `<` in quotes on the command line
-- For string values (e.g. `gpu_name`), replace spaces with underscores: `RTX_3090` not `RTX 3090`
+note: to pass '>' and '<' on the command line, make sure to use quotes
+note: to encode a string query value (ie for gpu_name), replace any spaces ' ' with underscore '_'
## Examples
```bash
-# search for benchmarks with score > 100 for llama2_70B model on 2 specific machines
-vastai search benchmarks 'score > 100.0 model=llama2_70B machine_id in [302,402]'
+# search for benchmarks with value > 100 on RTX 4090s for 2 specific machines
+ vastai search benchmarks 'value > 100.0 gpu_name=RTX_4090 machine_id in [302,402]'
+
+Available fields:
+
+ Name Type Description
+
+ contract_id int ID of instance/contract reporting benchmark
+ gpu_name string GPU model benchmarked (e.g. RTX_4090)
+ id int benchmark unique ID
+ image string image used for benchmark
+ last_update float date of benchmark
+ launch_args string launch args of the benchmarked worker
+ machine_id int id of machine benchmarked
+ num_gpus int number of gpus used in benchmark
+ template_hash string hash of the template benchmarked (formerly 'name')
+ template_id int id of the template benchmarked
+ type string benchmark type
+ value float benchmark result (formerly 'score')
```
-## Available Fields
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `contract_id` | int | ID of instance/contract reporting benchmark |
-| `id` | int | benchmark unique ID |
-| `image` | string | image used for benchmark |
-| `last_update` | float | date of benchmark |
-| `machine_id` | int | id of machine benchmarked |
-| `model` | string | name of model used in benchmark |
-| `name` | string | name of benchmark |
-| `num_gpus` | int | number of gpus used in benchmark |
-| `score` | float | benchmark score result |
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/search-instances.mdx b/cli/reference/search-instances.mdx
deleted file mode 100644
index f051bae..0000000
--- a/cli/reference/search-instances.mdx
+++ /dev/null
@@ -1,167 +0,0 @@
----
-title: "vastai search instances"
-sidebarTitle: "search instances"
----
-
-Search for instance types using custom query
-
-## Usage
-
-```bash
-vastai search offers [--help] [--api-key API_KEY] [--raw]
-```
-
-## Arguments
-
-
- Query to search for. default: 'external=false rentable=true verified=true', pass -n to ignore default
-
-
-## Options
-
-
- Show 'on-demand', 'reserved', or 'bid'(interruptible) pricing. default: on-demand (alias: `--type`)
-
-
-
- Alias for `--type=bid` (alias: `--interruptible`)
-
-
-
- Alias for `--type=bid` (alias: `--bid`)
-
-
-
- Alias for `--type=reserved` (alias: `--reserved`)
-
-
-
- Alias for `--type=on-demand` (alias: `--on-demand`)
-
-
-
- Disable default query (alias: `--no-default`)
-
-
-
- New search exp
-
-
-
-
-
-
-
- Amount of storage to use for pricing, in GiB. default=5.0GiB
-
-
-
- Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'num_gpus,total_flops-'. default='score-' (alias: `--order`)
-
-
-## Description
-
-**Query syntax**
-
-```
-query = comparison comparison...
-comparison = field op value
-field =
-op = one of: <, <=, ==, !=, >=, >, in, notin
-value = | 'any' | [value0, value1, ...]
-bool = True | False
-```
-
-- Wrap `>` and `<` in quotes on the command line
-- For string values (e.g. `gpu_name`), replace spaces with underscores: `RTX_3090` not `RTX 3090`
-
-## Examples
-
-```bash
-# reliable single RTX 3090, no conflicts with stopped instances
-vastai search offers 'reliability > 0.98 num_gpus=1 gpu_name=RTX_3090 rented=False'
-
-# datacenter GPUs with minimum compute capability and TFLOPs
-vastai search offers 'compute_cap > 610 total_flops > 5 datacenter=True'
-
-# reliable 4-GPU offers in Taiwan or Sweden
-vastai search offers 'reliability>0.99 num_gpus=4 geolocation in [TW,SE]'
-
-# reliable RTX 3090 or 4090 NOT in China or Vietnam
-vastai search offers 'reliability>0.99 gpu_name in ["RTX 4090", "RTX 3090"] geolocation notin [CN,VN]'
-
-# nvidia driver 535.86.05 or greater with various constraints
-vastai search offers 'disk_space>146 duration>24 gpu_ram>10 cuda_vers>=12.1 direct_port_count>=2 driver_version >= 535.86.05'
-
-# reliable 4+ GPU offers, unverified allowed, sort by num_gpus desc
-vastai search offers 'reliability > 0.99 num_gpus>=4 verified=False rented=any' -o 'num_gpus-'
-
-# arm64 cpu architecture only
-vastai search offers 'cpu_arch=arm64'
-```
-
-## Available Fields
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `bw_nvlink` | float | bandwidth NVLink |
-| `compute_cap` | int | CUDA compute capability ×100 (e.g. 650 for 6.5, 700 for 7.0) |
-| `cpu_arch` | string | host machine cpu architecture (e.g. amd64, arm64) |
-| `cpu_cores` | int | number of virtual cpus |
-| `cpu_ghz` | float | cpu clock speed in GHz |
-| `cpu_cores_effective` | float | virtual cpus you get |
-| `cpu_ram` | float | system RAM in gigabytes |
-| `cuda_vers` | float | machine max supported cuda version (based on driver version) |
-| `datacenter` | bool | show only datacenter offers |
-| `direct_port_count` | int | open ports on host's router |
-| `disk_bw` | float | disk read bandwidth, in MB/s |
-| `disk_space` | float | disk storage space, in GB |
-| `dlperf` | float | DL-perf score (see FAQ for explanation) |
-| `dlperf_usd` | float | DL-perf per dollar |
-| `dph` | float | $/hour rental cost |
-| `driver_version` | string | machine's nvidia/amd driver version as 3 digit string ex. "535.86.05" |
-| `duration` | float | max rental duration in days |
-| `external` | bool | show external offers in addition to datacenter offers |
-| `flops_usd` | float | TFLOPs per dollar |
-| `geolocation` | string | two letter country code; supports =, !=, in, notin |
-| `gpu_arch` | string | host machine gpu architecture (e.g. nvidia, amd) |
-| `gpu_max_power` | float | GPU power limit (watts) |
-| `gpu_max_temp` | float | GPU temp limit (°C) |
-| `gpu_mem_bw` | float | GPU memory bandwidth in GB/s |
-| `gpu_name` | string | GPU model name (no quotes, replace spaces with underscores, ie: RTX_3090) |
-| `gpu_ram` | float | per GPU RAM in GB |
-| `gpu_total_ram` | float | total GPU RAM in GB |
-| `gpu_frac` | float | ratio of GPUs in the offer to GPUs in the system |
-| `gpu_display_active` | bool | True if the GPU has a display attached |
-| `has_avx` | bool | CPU supports AVX instruction set |
-| `id` | int | instance unique ID |
-| `inet_down` | float | internet download speed in Mb/s |
-| `inet_down_cost` | float | internet download bandwidth cost in $/GB |
-| `inet_up` | float | internet upload speed in Mb/s |
-| `inet_up_cost` | float | internet upload bandwidth cost in $/GB |
-| `machine_id` | int | machine id of instance |
-| `min_bid` | float | current minimum bid price in $/hr for interruptible |
-| `num_gpus` | int | number of GPUs |
-| `pci_gen` | float | PCIE generation |
-| `pcie_bw` | float | PCIE bandwidth (CPU to GPU) |
-| `reliability` | float | machine reliability score (see FAQ for explanation) |
-| `rentable` | bool | is the instance currently rentable |
-| `rented` | bool | allow/disallow duplicates and potential conflicts with existing stopped instances |
-| `storage_cost` | float | storage cost in $/GB/month |
-| `static_ip` | bool | is the IP addr static/stable |
-| `total_flops` | float | total TFLOPs from all GPUs |
-| `ubuntu_version` | string | host machine ubuntu OS version |
-| `verified` | bool | is the machine verified |
-| `vms_enabled` | bool | is the machine a VM instance |
-
-## 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`) |
diff --git a/cli/reference/search-invoices.mdx b/cli/reference/search-invoices.mdx
index 978c8e3..c3c5139 100644
--- a/cli/reference/search-invoices.mdx
+++ b/cli/reference/search-invoices.mdx
@@ -19,56 +19,55 @@ vastai search invoices [--help] [--api-key API_KEY] [--raw]
## Description
-**Query syntax**
+Query syntax:
-```
-query = comparison comparison...
-comparison = field op value
-field =
-op = one of: <, <=, ==, !=, >=, >, in, notin
-value = | 'any' | [value0, value1, ...]
-bool = True | False
-```
+ query = comparison comparison...
+ comparison = field op value
+ field = <name of a field>
+ op = one of: <, <=, ==, !=, >=, >, in, notin
+ value = <bool, int, float, string> | 'any' | [value0, value1, ...]
+ bool: True, False
-- Wrap `>` and `<` in quotes on the command line
-- For string values (e.g. `gpu_name`), replace spaces with underscores: `RTX_3090` not `RTX 3090`
+ note: to pass '>' and '<' on the command line, make sure to use quotes
+ note: to encode a string query value (ie for gpu_name), replace any spaces ' ' with underscore '_'
## Examples
```bash
-vastai search invoices 'amount_cents>3000'
+# search for somewhat reliable single RTX 3090 instances, filter out any duplicates or offers that conflict with our existing stopped instances
+ vastai search invoices 'amount_cents>3000 '
+
+ Available fields:
+
+ Name Type Description
+
+id int,
+user_id int,
+when float, utc epoch timestamp of initial invoice creation
+paid_on float, actual payment date (utc epoch timestamp )
+payment_expected float, expected payment date (utc epoch timestamp )
+amount_cents int, amount of payment in cents
+is_credit bool, is a credit purchase
+is_delayed bool, is not yet paid
+balance_before float, balance before
+balance_after float, balance after
+original_amount int, original amount of payment
+event_id string,
+cut_amount int,
+cut_percent float,
+extra json,
+service string, type of payment
+stripe_charge json,
+stripe_refund json,
+stripe_payout json,
+error json,
+paypal_email string, email for paypal/wise payments
+transfer_group string,
+failed bool,
+refunded bool,
+is_check bool,
```
-## Available Fields
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `id` | int | invoice unique ID |
-| `user_id` | int | user ID |
-| `when` | float | UTC epoch timestamp of initial invoice creation |
-| `paid_on` | float | actual payment date (UTC epoch timestamp) |
-| `payment_expected` | float | expected payment date (UTC epoch timestamp) |
-| `amount_cents` | int | amount of payment in cents |
-| `is_credit` | bool | is a credit purchase |
-| `is_delayed` | bool | is not yet paid |
-| `balance_before` | float | balance before payment |
-| `balance_after` | float | balance after payment |
-| `original_amount` | int | original amount of payment |
-| `event_id` | string | associated event ID |
-| `cut_amount` | int | cut amount |
-| `cut_percent` | float | cut percentage |
-| `extra` | json | extra metadata |
-| `service` | string | type of payment |
-| `stripe_charge` | json | Stripe charge object |
-| `stripe_refund` | json | Stripe refund object |
-| `stripe_payout` | json | Stripe payout object |
-| `error` | json | error details if any |
-| `paypal_email` | string | email for PayPal/Wise payments |
-| `transfer_group` | string | transfer group identifier |
-| `failed` | bool | payment failed |
-| `refunded` | bool | payment refunded |
-| `is_check` | bool | is a check payment |
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/search-offers.mdx b/cli/reference/search-offers.mdx
index 598ea68..52b976e 100644
--- a/cli/reference/search-offers.mdx
+++ b/cli/reference/search-offers.mdx
@@ -19,28 +19,28 @@ vastai search offers [--help] [--api-key API_KEY] [--raw]
## Options
-
- Show 'on-demand', 'reserved', or 'bid'(interruptible) pricing. default: on-demand (alias: `--type`)
+
+ Show 'on-demand', 'reserved', or 'bid'(interruptible) pricing. default: on-demand
-
- Alias for `--type=bid` (alias: `--interruptible`)
+
+ Alias for --type=bid
-
- Alias for `--type=bid` (alias: `--bid`)
+
+ Alias for --type=bid
-
- Alias for `--type=reserved` (alias: `--reserved`)
+
+ Alias for --type=reserved
-
- Alias for `--type=on-demand` (alias: `--on-demand`)
+
+ Alias for --type=on-demand
-
- Disable default query (alias: `--no-default`)
+
+ Disable default query
@@ -55,105 +55,102 @@ vastai search offers [--help] [--api-key API_KEY] [--raw]
Amount of storage to use for pricing, in GiB. default=5.0GiB
-
- Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'num_gpus,total_flops-'. default='score-' (alias: `--order`)
+
+ Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'num_gpus,total_flops-'. default='score-'
## Description
-**Query syntax**
+Query syntax:
-```
-query = comparison comparison...
-comparison = field op value
-field =
-op = one of: <, <=, ==, !=, >=, >, in, notin
-value = | 'any' | [value0, value1, ...]
-bool = True | False
-```
+ query = comparison comparison...
+ comparison = field op value
+ field = <name of a field>
+ op = one of: <, <=, ==, !=, >=, >, in, notin
+ value = <bool, int, float, string> | 'any' | [value0, value1, ...]
+ bool: True, False
-- Wrap `>` and `<` in quotes on the command line
-- For string values (e.g. `gpu_name`), replace spaces with underscores: `RTX_3090` not `RTX 3090`
+note: to pass '>' and '<' on the command line, make sure to use quotes
+note: to encode a string query value (ie for gpu_name), replace any spaces ' ' with underscore '_'
## Examples
```bash
-# reliable single RTX 3090, no conflicts with stopped instances
-vastai search offers 'reliability > 0.98 num_gpus=1 gpu_name=RTX_3090 rented=False'
-
-# datacenter GPUs with minimum compute capability and TFLOPs
-vastai search offers 'compute_cap > 610 total_flops > 5 datacenter=True'
-
-# reliable 4-GPU offers in Taiwan or Sweden
-vastai search offers 'reliability>0.99 num_gpus=4 geolocation in [TW,SE]'
-
-# reliable RTX 3090 or 4090 NOT in China or Vietnam
-vastai search offers 'reliability>0.99 gpu_name in ["RTX 4090", "RTX 3090"] geolocation notin [CN,VN]'
-
-# nvidia driver 535.86.05 or greater with various constraints
-vastai search offers 'disk_space>146 duration>24 gpu_ram>10 cuda_vers>=12.1 direct_port_count>=2 driver_version >= 535.86.05'
-
-# reliable 4+ GPU offers, unverified allowed, sort by num_gpus desc
-vastai search offers 'reliability > 0.99 num_gpus>=4 verified=False rented=any' -o 'num_gpus-'
-
-# arm64 cpu architecture only
-vastai search offers 'cpu_arch=arm64'
+# search for somewhat reliable single RTX 3090 instances
+ vastai search offers 'reliability > 0.98 num_gpus=1 gpu_name=RTX_3090'
+
+ # search for datacenter gpus with minimal compute_cap and total_flops
+ vastai search offers 'compute_cap > 610 total_flops > 5 datacenter=True'
+
+ # search for reliable 4 gpu offers in Taiwan or Sweden
+ vastai search offers 'reliability>0.99 num_gpus=4 geolocation in [TW,SE]'
+
+ # search for reliable RTX 3090 or 4090 gpus NOT in China or Vietnam
+ vastai search offers 'reliability>0.99 gpu_name in ["RTX 4090", "RTX 3090"] geolocation notin [CN,VN]'
+
+ # search for machines with nvidia drivers 535.86.05 or greater (and various other options)
+ vastai search offers 'disk_space>146 duration>24 gpu_ram>10 cuda_vers>=12.1 direct_port_count>=2 driver_version >= 535.86.05'
+
+ # search for reliable machines with at least 4 gpus, unverified, order by num_gpus
+ vastai search offers 'reliability > 0.99 num_gpus>=4 verified=False' -o 'num_gpus-'
+
+ # search for arm64 cpu architecture
+ vastai search offers 'cpu_arch=arm64'
+
+Available fields:
+
+ Name Type Description
+
+ bw_nvlink float bandwidth NVLink
+ compute_cap: int cuda compute capability*100 (ie: 650 for 6.5, 700 for 7.0)
+ cpu_arch string host machine cpu architecture (e.g. amd64, arm64)
+ cpu_cores: int # virtual cpus
+ cpu_ghz: Float # cpu clock speed GHZ
+ cpu_cores_effective: float # virtual cpus you get
+ cpu_ram: float system RAM in gigabytes
+ cuda_vers: float machine max supported cuda version (based on driver version)
+ datacenter: bool show only datacenter offers
+ direct_port_count int open ports on host's router
+ disk_bw: float disk read bandwidth, in MB/s
+ disk_space: float disk storage space, in GB
+ dlperf: float DL-perf score (see FAQ for explanation)
+ dlperf_usd: float DL-perf/$
+ dph: float $/hour rental cost
+ driver_version: string machine's nvidia/amd driver version as 3 digit string ex. "535.86.05,"
+ duration: float max rental duration in days
+ external: bool show external offers in addition to datacenter offers
+ flops_usd: float TFLOPs/$
+ geolocation: string Two letter country code. Works with operators =, !=, in, notin (e.g. geolocation not in ['XV','XZ'])
+ gpu_arch string host machine gpu architecture (e.g. nvidia, amd)
+ gpu_max_power float GPU power limit (watts)
+ gpu_max_temp float GPU temp limit (C)
+ gpu_mem_bw: float GPU memory bandwidth in GB/s
+ gpu_name: string GPU model name (no quotes, replace spaces with underscores, ie: RTX_3090 rather than 'RTX 3090')
+ gpu_ram: float per GPU RAM in GB
+ gpu_total_ram: float total GPU RAM in GB
+ gpu_frac: float Ratio of GPUs in the offer to gpus in the system
+ gpu_display_active: bool True if the GPU has a display attached
+ has_avx: bool CPU supports AVX instruction set.
+ id: int instance unique ID
+ inet_down: float internet download speed in Mb/s
+ inet_down_cost: float internet download bandwidth cost in $/GB
+ inet_up: float internet upload speed in Mb/s
+ inet_up_cost: float internet upload bandwidth cost in $/GB
+ machine_id int machine id of instance
+ min_bid: float current minimum bid price in $/hr for interruptible
+ num_gpus: int # of GPUs
+ pci_gen: float PCIE generation
+ pcie_bw: float PCIE bandwidth (CPU to GPU)
+ reliability: float machine reliability score (see FAQ for explanation)
+ rentable: bool is the instance currently rentable
+ storage_cost: float storage cost in $/GB/month
+ static_ip: bool is the IP addr static/stable
+ total_flops: float total TFLOPs from all GPUs
+ ubuntu_version string host machine ubuntu OS version
+ verified: bool is the machine verified
+ vms_enabled: bool is the machine a VM instance
```
-## Available Fields
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `bw_nvlink` | float | bandwidth NVLink |
-| `compute_cap` | int | CUDA compute capability ×100 (e.g. 650 for 6.5, 700 for 7.0) |
-| `cpu_arch` | string | host machine cpu architecture (e.g. amd64, arm64) |
-| `cpu_cores` | int | number of virtual cpus |
-| `cpu_ghz` | float | cpu clock speed in GHz |
-| `cpu_cores_effective` | float | virtual cpus you get |
-| `cpu_ram` | float | system RAM in gigabytes |
-| `cuda_vers` | float | machine max supported cuda version (based on driver version) |
-| `datacenter` | bool | show only datacenter offers |
-| `direct_port_count` | int | open ports on host's router |
-| `disk_bw` | float | disk read bandwidth, in MB/s |
-| `disk_space` | float | disk storage space, in GB |
-| `dlperf` | float | DL-perf score (see FAQ for explanation) |
-| `dlperf_usd` | float | DL-perf per dollar |
-| `dph` | float | $/hour rental cost |
-| `driver_version` | string | machine's nvidia/amd driver version as 3 digit string ex. "535.86.05" |
-| `duration` | float | max rental duration in days |
-| `external` | bool | show external offers in addition to datacenter offers |
-| `flops_usd` | float | TFLOPs per dollar |
-| `geolocation` | string | two letter country code; supports =, !=, in, notin |
-| `gpu_arch` | string | host machine gpu architecture (e.g. nvidia, amd) |
-| `gpu_max_power` | float | GPU power limit (watts) |
-| `gpu_max_temp` | float | GPU temp limit (°C) |
-| `gpu_mem_bw` | float | GPU memory bandwidth in GB/s |
-| `gpu_name` | string | GPU model name (no quotes, replace spaces with underscores, ie: RTX_3090) |
-| `gpu_ram` | float | per GPU RAM in GB |
-| `gpu_total_ram` | float | total GPU RAM in GB |
-| `gpu_frac` | float | ratio of GPUs in the offer to GPUs in the system |
-| `gpu_display_active` | bool | True if the GPU has a display attached |
-| `has_avx` | bool | CPU supports AVX instruction set |
-| `id` | int | instance unique ID |
-| `inet_down` | float | internet download speed in Mb/s |
-| `inet_down_cost` | float | internet download bandwidth cost in $/GB |
-| `inet_up` | float | internet upload speed in Mb/s |
-| `inet_up_cost` | float | internet upload bandwidth cost in $/GB |
-| `machine_id` | int | machine id of instance |
-| `min_bid` | float | current minimum bid price in $/hr for interruptible |
-| `num_gpus` | int | number of GPUs |
-| `pci_gen` | float | PCIE generation |
-| `pcie_bw` | float | PCIE bandwidth (CPU to GPU) |
-| `reliability` | float | machine reliability score (see FAQ for explanation) |
-| `rentable` | bool | is the instance currently rentable |
-| `rented` | bool | allow/disallow duplicates and potential conflicts with existing stopped instances |
-| `storage_cost` | float | storage cost in $/GB/month |
-| `static_ip` | bool | is the IP addr static/stable |
-| `total_flops` | float | total TFLOPs from all GPUs |
-| `ubuntu_version` | string | host machine ubuntu OS version |
-| `verified` | bool | is the machine verified |
-| `vms_enabled` | bool | is the machine a VM instance |
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/search-templates.mdx b/cli/reference/search-templates.mdx
index 56cf78d..c9c3b09 100644
--- a/cli/reference/search-templates.mdx
+++ b/cli/reference/search-templates.mdx
@@ -19,47 +19,46 @@ vastai search templates [--help] [--api-key API_KEY] [--raw]
## Description
-**Query syntax**
+Query syntax:
-```
-query = comparison comparison...
-comparison = field op value
-field =
-op = one of: <, <=, ==, !=, >=, >, in, notin
-value = | 'any' | [value0, value1, ...]
-bool = True | False
-```
+ query = comparison comparison...
+ comparison = field op value
+ field = <name of a field>
+ op = one of: <, <=, ==, !=, >=, >, in, notin
+ value = <bool, int, float, string> | 'any' | [value0, value1, ...]
+ bool: True, False
-- Wrap `>` and `<` in quotes on the command line
-- For string values (e.g. `gpu_name`), replace spaces with underscores: `RTX_3090` not `RTX 3090`
+ note: to pass '>' and '<' on the command line, make sure to use quotes
+ note: to encode a string query value (ie for gpu_name), replace any spaces ' ' with underscore '_'
## Examples
```bash
-vastai search templates 'count_created > 100 creator_id in [38382,48982]'
+# search for somewhat reliable single RTX 3090 instances, filter out any duplicates or offers that conflict with our existing stopped instances
+ vastai search templates 'count_created > 100 creator_id in [38382,48982]'
+
+ Available fields:
+
+ Name Type Description
+
+creator_id int ID of creator
+created_at float time of initial template creation (UTC epoch timestamp)
+count_created int #instances created (popularity)
+default_tag string image default tag
+docker_login_repo string image docker repository
+id int template unique ID
+image string image used for template
+jup_direct bool supports jupyter direct
+hash_id string unique hash ID of template
+name string displayable name
+recent_create_date float last time of instance creation (UTC epoch timestamp)
+recommended_disk_space float min disk space required
+recommended bool is templated on our recommended list
+ssh_direct bool supports ssh direct
+tag string image tag
+use_ssh bool supports ssh (direct or proxy)
```
-## Available Fields
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `creator_id` | int | ID of creator |
-| `created_at` | float | time of initial template creation (UTC epoch timestamp) |
-| `count_created` | int | number of instances created (popularity) |
-| `default_tag` | string | image default tag |
-| `docker_login_repo` | string | image docker repository |
-| `id` | int | template unique ID |
-| `image` | string | image used for template |
-| `jup_direct` | bool | supports jupyter direct |
-| `hash_id` | string | unique hash ID of template |
-| `name` | string | displayable name |
-| `recent_create_date` | float | last time of instance creation (UTC epoch timestamp) |
-| `recommended_disk_space` | float | min disk space required |
-| `recommended` | bool | is on our recommended list |
-| `ssh_direct` | bool | supports ssh direct |
-| `tag` | string | image tag |
-| `use_ssh` | bool | supports ssh (direct or proxy) |
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/search-volumes.mdx b/cli/reference/search-volumes.mdx
index 713dcd7..7eed3a2 100644
--- a/cli/reference/search-volumes.mdx
+++ b/cli/reference/search-volumes.mdx
@@ -19,8 +19,8 @@ vastai search volumes [--help] [--api-key API_KEY] [--raw]
## Options
-
- Disable default query (alias: `--no-default`)
+
+ Disable default query
@@ -31,61 +31,59 @@ vastai search volumes [--help] [--api-key API_KEY] [--raw]
Amount of storage to use for pricing, in GiB. default=1.0GiB
-
- Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'disk_space,inet_up-'. default='score-' (alias: `--order`)
+
+ Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'disk_space,inet_up-'. default='score-'
## Description
-**Query syntax**
+Query syntax:
-```
-query = comparison comparison...
-comparison = field op value
-field =
-op = one of: <, <=, ==, !=, >=, >, in, notin
-value = | 'any' | [value0, value1, ...]
-bool = True | False
-```
+ query = comparison comparison...
+ comparison = field op value
+ field = <name of a field>
+ op = one of: <, <=, ==, !=, >=, >, in, notin
+ value = <bool, int, float, string> | 'any' | [value0, value1, ...]
+ bool: True, False
-- Wrap `>` and `<` in quotes on the command line
-- For string values (e.g. `gpu_name`), replace spaces with underscores: `RTX_3090` not `RTX 3090`
+note: to pass '>' and '<' on the command line, make sure to use quotes
+note: to encode a string query value (ie for gpu_name), replace any spaces ' ' with underscore '_'
## Examples
```bash
# search for volumes with greater than 50GB of available storage and greater than 500 Mb/s upload and download speed
-vastai search volumes "disk_space>50 inet_up>500 inet_down>500"
+ vastai search volumes "disk_space>50 inet_up>500 inet_down>500"
+
+Available fields:
+
+ Name Type Description
+
+ cpu_arch: string host machine cpu architecture (e.g. amd64, arm64)
+ cuda_vers: float machine max supported cuda version (based on driver version)
+ datacenter: bool show only datacenter offers
+ disk_bw: float disk read bandwidth, in MB/s
+ disk_space: float disk storage space, in GB
+ driver_version: string machine's nvidia/amd driver version as 3 digit string ex. "535.86.05"
+ duration: float max rental duration in days
+ geolocation: string Two letter country code. Works with operators =, !=, in, notin (e.g. geolocation not in ['XV','XZ'])
+ gpu_arch: string host machine gpu architecture (e.g. nvidia, amd)
+ gpu_name: string GPU model name (no quotes, replace spaces with underscores, ie: RTX_3090 rather than 'RTX 3090')
+ has_avx: bool CPU supports AVX instruction set.
+ id: int volume offer unique ID
+ inet_down: float internet download speed in Mb/s
+ inet_up: float internet upload speed in Mb/s
+ machine_id: int machine id of volume offer
+ pci_gen: float PCIE generation
+ pcie_bw: float PCIE bandwidth (CPU to GPU)
+ reliability: float machine reliability score (see FAQ for explanation)
+ storage_cost: float storage cost in $/GB/month
+ static_ip: bool is the IP addr static/stable
+ total_flops: float total TFLOPs from all GPUs
+ ubuntu_version: string host machine ubuntu OS version
+ verified: bool is the machine verified
```
-## Available Fields
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `cpu_arch` | string | host machine cpu architecture (e.g. amd64, arm64) |
-| `cuda_vers` | float | machine max supported cuda version (based on driver version) |
-| `datacenter` | bool | show only datacenter offers |
-| `disk_bw` | float | disk read bandwidth, in MB/s |
-| `disk_space` | float | disk storage space, in GB |
-| `driver_version` | string | machine's nvidia/amd driver version as 3 digit string ex. "535.86.05" |
-| `duration` | float | max rental duration in days |
-| `geolocation` | string | Two letter country code. Works with operators =, !=, in, notin (e.g. geolocation not in ['XV','XZ']) |
-| `gpu_arch` | string | host machine gpu architecture (e.g. nvidia, amd) |
-| `gpu_name` | string | GPU model name (no quotes, replace spaces with underscores, ie: RTX_3090 rather than 'RTX 3090') |
-| `has_avx` | bool | CPU supports AVX instruction set |
-| `id` | int | volume offer unique ID |
-| `inet_down` | float | internet download speed in Mb/s |
-| `inet_up` | float | internet upload speed in Mb/s |
-| `machine_id` | int | machine id of volume offer |
-| `pci_gen` | float | PCIE generation |
-| `pcie_bw` | float | PCIE bandwidth (CPU to GPU) |
-| `reliability` | float | machine reliability score (see FAQ for explanation) |
-| `storage_cost` | float | storage cost in $/GB/month |
-| `static_ip` | bool | is the IP addr static/stable |
-| `total_flops` | float | total TFLOPs from all GPUs |
-| `ubuntu_version` | string | host machine ubuntu OS version |
-| `verified` | bool | is the machine verified |
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/self-test-machine.mdx b/cli/reference/self-test-machine.mdx
index ba7ff18..ee20579 100644
--- a/cli/reference/self-test-machine.mdx
+++ b/cli/reference/self-test-machine.mdx
@@ -1,9 +1,64 @@
---
title: "vastai self-test machine"
sidebarTitle: "self-test machine"
-description: "Host command"
---
-import SelfTestMachineCLI from '/snippets/host/cli/self-test-machine.mdx';
+[Host] Perform a self-test on the specified machine
-
+## Usage
+
+```bash
+vastai self-test machine [--debugging] [--ignore-requirements] [--test-image IMAGE]
+```
+
+## Arguments
+
+
+ Machine ID
+
+
+## Options
+
+
+ Enable debugging output
+
+
+
+ Ignore the minimum system requirements and run the self test regardless
+
+
+
+ Use a custom self-test image for testing custom self-test images. Overrides VAST_SELF_TEST_IMAGE and CUDA mapping.
+
+
+
+ Directory for failure diagnostic bundles (default: /tmp)
+
+
+
+ Do not create a diagnostic tarball when the self-test fails
+
+
+## Description
+
+This command tests if a machine meets specific requirements and
+runs a series of tests to ensure it's functioning correctly.
+
+## Examples
+
+```bash
+vast self-test machine 12345
+ vast self-test machine 12345 --debugging
+```
+
+## 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`) |
diff --git a/cli/reference/set-api-key.mdx b/cli/reference/set-api-key.mdx
index f426468..0b45f46 100644
--- a/cli/reference/set-api-key.mdx
+++ b/cli/reference/set-api-key.mdx
@@ -17,12 +17,6 @@ vastai set api-key APIKEY
Api key to set as currently logged in user
-## Examples
-
-```bash
-vastai set api-key
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/set-defjob.mdx b/cli/reference/set-defjob.mdx
index 22d5ad9..1c96b80 100644
--- a/cli/reference/set-defjob.mdx
+++ b/cli/reference/set-defjob.mdx
@@ -1,9 +1,56 @@
---
title: "vastai set defjob"
sidebarTitle: "set defjob"
-description: "Host command"
---
-import SetDefjobCLI from '/snippets/host/cli/set-defjob.mdx';
+[Host] Create default jobs for a machine
-
+## Usage
+
+```bash
+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 of machine to launch default instance on
+
+
+## Options
+
+
+ per gpu rental price in $/hour
+
+
+
+ price for internet upload bandwidth in $/GB
+
+
+
+ price for internet download bandwidth in $/GB
+
+
+
+ docker container image to launch
+
+
+
+ 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:
+
+| 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`) |
diff --git a/cli/reference/set-min-bid.mdx b/cli/reference/set-min-bid.mdx
index 829cebf..ae11838 100644
--- a/cli/reference/set-min-bid.mdx
+++ b/cli/reference/set-min-bid.mdx
@@ -1,9 +1,40 @@
---
title: "vastai set min-bid"
sidebarTitle: "set min-bid"
-description: "Host command"
---
-import SetMinBidCLI from '/snippets/host/cli/set-min-bid.mdx';
+[Host] Set the minimum bid/rental price for a machine
-
+## Usage
+
+```bash
+vastai set min_bid id [--price PRICE]
+```
+
+## Arguments
+
+
+ id of machine to set min bid price for
+
+
+## Options
+
+
+ per gpu min bid price in $/hour
+
+
+## Description
+
+Change the current min bid price of machine id to PRICE.
+
+## 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`) |
diff --git a/cli/reference/set-user.mdx b/cli/reference/set-user.mdx
index c3a2d45..e335e34 100644
--- a/cli/reference/set-user.mdx
+++ b/cli/reference/set-user.mdx
@@ -17,33 +17,29 @@ vastai set user --file FILE
file path for params in json format
-## Available Fields
-
-| Field | Type |
-|-------|------|
-| `ssh_key` | string |
-| `paypal_email` | string |
-| `wise_email` | string |
-| `email` | string |
-| `normalized_email` | string |
-| `username` | string |
-| `fullname` | string |
-| `billaddress_line1` | string |
-| `billaddress_line2` | string |
-| `billaddress_city` | string |
-| `billaddress_zip` | string |
-| `billaddress_country` | string |
-| `billaddress_taxinfo` | string |
-| `balance_threshold_enabled` | string |
-| `balance_threshold` | string |
-| `autobill_threshold` | string |
-| `phone_number` | string |
-
-## Examples
-
-```bash
-vastai set user
-```
+## Description
+
+Available fields:
+
+Name Type Description
+
+ssh_key string
+paypal_email string
+wise_email string
+email string
+normalized_email string
+username string
+fullname string
+billaddress_line1 string
+billaddress_line2 string
+billaddress_city string
+billaddress_zip string
+billaddress_country string
+billaddress_taxinfo string
+balance_threshold_enabled string
+balance_threshold string
+autobill_threshold string
+phone_number string
## Global Options
diff --git a/cli/reference/show-clusters.mdx b/cli/reference/show-api-key.mdx
similarity index 62%
rename from cli/reference/show-clusters.mdx
rename to cli/reference/show-api-key.mdx
index 3ad8e67..6783820 100644
--- a/cli/reference/show-clusters.mdx
+++ b/cli/reference/show-api-key.mdx
@@ -1,25 +1,21 @@
---
-title: "vastai show clusters"
-sidebarTitle: "show clusters"
+title: "vastai show api-key"
+sidebarTitle: "show api-key"
---
-Show clusters associated with your account.
+Show an api-key
## Usage
```bash
-vastai show clusters
+vastai show api-key
```
-## Description
+## Arguments
-Show clusters associated with your account.
-
-## Examples
-
-```bash
-vastai show clusters
-```
+
+ id of apikey to get
+
## Global Options
diff --git a/cli/reference/show-api-keys.mdx b/cli/reference/show-api-keys.mdx
index de6324b..343c10d 100644
--- a/cli/reference/show-api-keys.mdx
+++ b/cli/reference/show-api-keys.mdx
@@ -11,12 +11,6 @@ List your api-keys associated with your account
vastai show api-keys
```
-## Examples
-
-```bash
-vastai show api-keys
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-audit-logs.mdx b/cli/reference/show-audit-logs.mdx
index 5efd940..8c79f62 100644
--- a/cli/reference/show-audit-logs.mdx
+++ b/cli/reference/show-audit-logs.mdx
@@ -11,12 +11,6 @@ Display account's history of important actions
vastai show audit-logs [--api-key API_KEY] [--raw]
```
-## Examples
-
-```bash
-vastai show audit-logs
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-connections.mdx b/cli/reference/show-connections.mdx
index 6bce96c..5c78d2d 100644
--- a/cli/reference/show-connections.mdx
+++ b/cli/reference/show-connections.mdx
@@ -11,12 +11,6 @@ Display user's cloud connections
vastai show connections [--api-key API_KEY] [--raw]
```
-## Examples
-
-```bash
-vastai show connections
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-deployment-versions.mdx b/cli/reference/show-deployment-versions.mdx
index 634eb12..cb6ef7a 100644
--- a/cli/reference/show-deployment-versions.mdx
+++ b/cli/reference/show-deployment-versions.mdx
@@ -21,12 +21,6 @@ vastai show deployment-versions ID
Example: vastai show deployment-versions 1234
-## Examples
-
-```bash
-vastai show deployment-versions
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-deployment.mdx b/cli/reference/show-deployment.mdx
index e56a5d5..1521b62 100644
--- a/cli/reference/show-deployment.mdx
+++ b/cli/reference/show-deployment.mdx
@@ -3,28 +3,35 @@ title: "vastai show deployment"
sidebarTitle: "show deployment"
---
-Display details of a single deployment
+Display a single deployment
## Usage
```bash
-vastai show deployment ID
+vastai show deployment ID [OPTIONS]
```
## Arguments
- id of deployment to show
+ id of deployment to show info for
+
+
+## Options
+
+
+ only display numeric id
## Description
-Example: vastai show deployment 1234
+Shows detailed info for a single deployment, including endpoint state and worker count.
## Examples
```bash
-vastai show deployment
+vastai show deployment 123
+ vastai show deployment 123 --raw
```
## Global Options
diff --git a/cli/reference/show-deployments.mdx b/cli/reference/show-deployments.mdx
index 51e1de6..3fca899 100644
--- a/cli/reference/show-deployments.mdx
+++ b/cli/reference/show-deployments.mdx
@@ -8,17 +8,25 @@ Display user's current deployments
## Usage
```bash
-vastai show deployments [--api-key API_KEY]
+vastai show deployments [OPTIONS]
```
+## Options
+
+
+ only display numeric ids
+
+
## Description
-Example: vastai show deployments
+Shows the user's current deployments.
## Examples
```bash
vastai show deployments
+ vastai show deployments --raw
+ vastai show deployments -q
```
## Global Options
diff --git a/cli/reference/show-deposit.mdx b/cli/reference/show-deposit.mdx
index 351f88b..9392260 100644
--- a/cli/reference/show-deposit.mdx
+++ b/cli/reference/show-deposit.mdx
@@ -17,12 +17,6 @@ vastai show deposit ID [options]
id of instance to get info for
-## Examples
-
-```bash
-vastai show deposit
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-earnings.mdx b/cli/reference/show-earnings.mdx
index 762fc56..133d067 100644
--- a/cli/reference/show-earnings.mdx
+++ b/cli/reference/show-earnings.mdx
@@ -13,28 +13,22 @@ vastai show earnings [OPTIONS]
## Options
-
- only display numeric ids (alias: `--quiet`)
+
+ only display numeric ids
-
- start date and time for report. Many formats accepted (alias: `--start_date`)
+
+ start date and time for report. Many formats accepted
-
- end date and time for report. Many formats accepted (alias: `--end_date`)
+
+ end date and time for report. Many formats accepted
-
- Machine id (optional) (alias: `--machine_id`)
+
+ Machine id (optional)
-## Examples
-
-```bash
-vastai show earnings
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-endpoints.mdx b/cli/reference/show-endpoints.mdx
index f414a51..0dc5ac7 100644
--- a/cli/reference/show-endpoints.mdx
+++ b/cli/reference/show-endpoints.mdx
@@ -15,12 +15,6 @@ vastai show endpoints [--api-key API_KEY]
Example: vastai show endpoints
-## Examples
-
-```bash
-vastai show endpoints
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-env-vars.mdx b/cli/reference/show-env-vars.mdx
index 3e5b196..db875ad 100644
--- a/cli/reference/show-env-vars.mdx
+++ b/cli/reference/show-env-vars.mdx
@@ -13,16 +13,10 @@ vastai show env-vars [-s]
## Options
-
- Show the values of environment variables (alias: `--show-values`)
+
+ Show the values of environment variables
-## Examples
-
-```bash
-vastai show env-vars
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-instance.mdx b/cli/reference/show-instance.mdx
index 856e0d0..7ab2183 100644
--- a/cli/reference/show-instance.mdx
+++ b/cli/reference/show-instance.mdx
@@ -8,7 +8,7 @@ Display user's current instances
## Usage
```bash
-vastai show instance [--api-key API_KEY] [--raw]
+vastai show instance ID [options]
```
## Arguments
@@ -17,35 +17,11 @@ vastai show instance [--api-key API_KEY] [--raw]
id of instance to get
-## Description
+## Options
-Returns an instance object. Key status fields:
-
-**actual_status**, current container state:
-
-| Value | Meaning |
-|-------|---------|
-| `null` | Instance is being provisioned |
-| `loading` | Docker image is downloading or container is starting up |
-| `running` | Container is actively executing. GPU charges apply. |
-| `stopped` | Container is halted. Disk charges continue; no GPU charges. |
-| `frozen` | Container is paused with memory preserved. GPU charges apply. |
-| `exited` | Container process exited unexpectedly |
-| `rebooting` | Container is restarting (transient) |
-| `unknown` | No recent heartbeat from the host |
-| `offline` | Host machine disconnected from Vast servers (computed, not stored in DB) |
-
-**intended_status**, user's desired target state: `running`, `stopped`, or `frozen`.
-
-**cur_state**, machine contract / hardware allocation state: `running`, `stopped`, or `unloaded` (released on destroy).
-
-**status_msg**, human-readable detail on the current status.
-
-## Examples
-
-```bash
-vastai show instance
-```
+
+ only display numeric id
+
## Global Options
diff --git a/cli/reference/show-instances-v1.mdx b/cli/reference/show-instances-v1.mdx
index b33abaa..f4444b9 100644
--- a/cli/reference/show-instances-v1.mdx
+++ b/cli/reference/show-instances-v1.mdx
@@ -3,7 +3,7 @@ title: "vastai show instances-v1"
sidebarTitle: "show instances-v1"
---
-Show instances with pagination and filtering (v1).
+List instances with filtering, sorting, and pagination
## Usage
@@ -13,84 +13,66 @@ vastai show instances-v1 [OPTIONS]
## Options
-
- Only print instance IDs, one per line (alias: `--quiet`)
+
+ only print instance IDs, one per line
-
- Show additional columns (SSH, location, template, etc.) (alias: `--verbose`)
+
+ show additional columns (SSH, location, template, etc.)
-
- Fetch all pages automatically and send to pager (alias: `--all`)
+
+ fetch all pages automatically; useful for scripting
- Filter by container status. Choices: `running`, `loading`, `exited`
+ filter by container status: running loading exited
- Filter by instance label; pass empty string to match unlabeled
+ filter by instance label; pass empty string '' for unlabeled
- Filter by GPU model name (e.g. `RTX A5000`)
+ filter by GPU model name
- Filter by machine verification. Choices: `verified`, `unverified`, `deverified`
+ filter by verification status
+ Allowed values: verified, unverified, deverified
-
- Max instances per page (1-25, default 25)
+
+ max instances per page (1-25, default 25)
- Resume from a pagination token from a previous page
+ resume from a pagination token
- Sort column with optional direction, e.g. `start_date desc`
+ sort by column; repeat for multiple keys
- Override displayed columns with a comma-separated list
+ override displayed columns (available: id,status,label,gpu,disk,volumes,dph,image,age,verified,machine,net,location,template,ssh,msg)
## Description
-Returns a paginated list of instance objects. Key status fields per instance:
-
-**actual_status**, current container state:
-
-| Value | Meaning |
-|-------|---------|
-| `null` | Instance is being provisioned |
-| `loading` | Docker image is downloading or container is starting up |
-| `running` | Container is actively executing. GPU charges apply. |
-| `stopped` | Container is halted. Disk charges continue; no GPU charges. |
-| `frozen` | Container is paused with memory preserved. GPU charges apply. |
-| `exited` | Container process exited unexpectedly |
-| `rebooting` | Container is restarting (transient) |
-| `unknown` | No recent heartbeat from the host |
-| `offline` | Host machine disconnected from Vast servers (computed, not stored in DB) |
-
-**intended_status**, user's desired target state: `running`, `stopped`, or `frozen`.
-
-**cur_state**, machine contract / hardware allocation state: `running`, `stopped`, or `unloaded` (released on destroy).
-
-**status_msg**, human-readable detail on the current status.
+Displays your instances in a table with auto-sizing columns. Narrow terminals
+drop lower-priority columns automatically; use --cols to override.
## Examples
```bash
vastai show instances-v1
-
-vastai show instances-v1 --status running --limit 10
-
-vastai show instances-v1 --all --verbose
-
-vastai show instances-v1 --next-token
+ vastai show instances-v1 -v
+ vastai show instances-v1 --status running loading
+ vastai show instances-v1 --gpu-name 'RTX A5000' 'GTX 1070'
+ vastai show instances-v1 --label training --order-by start_date desc
+ vastai show instances-v1 --cols id,status,gpu,dph
+ vastai show instances-v1 --next-token eyJ2YWx1ZXMi...
```
## Global Options
diff --git a/cli/reference/show-instances.mdx b/cli/reference/show-instances.mdx
index cefdd39..34b7486 100644
--- a/cli/reference/show-instances.mdx
+++ b/cli/reference/show-instances.mdx
@@ -8,43 +8,26 @@ Display user's current instances
## Usage
```bash
-vastai show instances [OPTIONS] [--api-key API_KEY] [--raw]
+vastai show instances [OPTIONS]
```
## Options
-
- only display numeric ids (alias: `--quiet`)
+
+ only display numeric ids
## Description
-Returns a list of instance objects. Key status fields per instance:
-
-**actual_status**, current container state:
-
-| Value | Meaning |
-|-------|---------|
-| `null` | Instance is being provisioned |
-| `loading` | Docker image is downloading or container is starting up |
-| `running` | Container is actively executing. GPU charges apply. |
-| `stopped` | Container is halted. Disk charges continue; no GPU charges. |
-| `frozen` | Container is paused with memory preserved. GPU charges apply. |
-| `exited` | Container process exited unexpectedly |
-| `rebooting` | Container is restarting (transient) |
-| `unknown` | No recent heartbeat from the host |
-| `offline` | Host machine disconnected from Vast servers (computed, not stored in DB) |
-
-**intended_status**, user's desired target state: `running`, `stopped`, or `frozen`.
-
-**cur_state**, machine contract / hardware allocation state: `running`, `stopped`, or `unloaded` (released on destroy).
-
-**status_msg**, human-readable detail on the current status.
+Shows the stats on the instances the user is currently renting. Various options available to
+limit which instances are shown and jeir data.
## Examples
```bash
vastai show instances
+ vastai show instances --raw
+ vastai show instances -q
```
## Global Options
diff --git a/cli/reference/show-invoices-v1.mdx b/cli/reference/show-invoices-v1.mdx
index b2c734c..e7abd79 100644
--- a/cli/reference/show-invoices-v1.mdx
+++ b/cli/reference/show-invoices-v1.mdx
@@ -13,44 +13,47 @@ vastai show invoices-v1 [OPTIONS]
## Options
-
- Show invoices instead of charges (alias: `--invoices`)
+
+ Show invoices instead of charges
-
- Filter which types of invoices to show (alias: `--invoice-type`). Choices: `transfers`, `stripe`, `bitpay`, `coinbase`, `crypto.com`, `reserved`, `payout_paypal`, `payout_wise`
+
+ Filter which types of invoices to show: {transfers, stripe, bitpay, coinbase, crypto.com, reserved, payout_paypal, payout_wise}
+ Allowed values: transfers, stripe, bitpay, coinbase, crypto.com, reserved, payout_paypal, payout_wise
-
- Show charges instead of invoices (alias: `--charges`)
+
+ Show charges instead of invoices
-
- Filter which types of charges to show (alias: `--charge-type`). Choices: `instance`, `volume`, `serverless`, `i`, `v`, `s`
+
+ Filter which types of charges to show: {i|instance, v|volume, s|serverless}
+ Allowed values: instance, volume, serverless, i, v, s
-
- Start date (YYYY-MM-DD or timestamp) (alias: `--start-date`)
+
+ Start date (YYYY-MM-DD or timestamp)
-
- End date (YYYY-MM-DD or timestamp) (alias: `--end-date`)
+
+ End date (YYYY-MM-DD or timestamp)
-
- Number of results per page (default: 20, max: 100) (alias: `--limit`)
+
+ Number of results per page (default: 20, max: 100)
-
- Pagination token for next page (alias: `--next-token`)
+
+ Pagination token for next page
-
- Output format for charges (default: table) (alias: `--format`) Choices: `table`, `tree`
+
+ Output format for charges (default: table)
+ Allowed values: table, tree
-
- Include full Instance Charge details and Invoice Metadata (tree view only) (alias: `--verbose`)
+
+ Include full Instance Charge details and Invoice Metadata (tree view only)
@@ -64,23 +67,23 @@ This command supports colored output and rich formatting if the 'rich' python mo
## Examples
```bash
-# Show the first 20 invoices in the last week (default window is a 7 day period ending today)
-vastai show invoices-v1 --invoices
+# Show the first 20 invoices in the last week (note: default window is a 7 day period ending today)
+ vastai show invoices-v1 --invoices
-# Show the first 50 charges over a 7 day period starting from 2025-11-30 in tree format
-vastai show invoices-v1 --charges -s 2025-11-30 -f tree -l 50
+ # Show the first 50 charges over a 7 day period starting from 2025-11-30 in tree format
+ vastai show invoices-v1 --charges -s 2025-11-30 -f tree -l 50
-# Show the first 20 invoices of specific types for the month of November 2025
-vastai show invoices-v1 -i -it stripe bitpay transfers --start-date 2025-11-01 --end-date 2025-11-30
+ # Show the first 20 invoices of specific types for the month of November 2025
+ vastai show invoices-v1 -i -it stripe bitpay transfers --start-date 2025-11-01 --end-date 2025-11-30
-# Show the first 20 charges for only volumes and serverless instances between two dates, including all details and metadata
-vastai show invoices-v1 -c --charge-type v s -s 2025-11-01 -e 2025-11-05 --format tree --verbose
+ # Show the first 20 charges for only volumes and serverless instances between two dates, including all details and metadata
+ vastai show invoices-v1 -c --charge-type v s -s 2025-11-01 -e 2025-11-05 --format tree --verbose
-# Get the next page of paginated invoices, limit to 50 per page (type/date filters MUST match previous request)
-vastai show invoices-v1 --invoices --limit 50 --next-token eyJ2YWx1ZXMiOiB7ImlkIjogMjUwNzgyMzR9LCAib3NfcGFnZSI6IDB9
+ # Get the next page of paginated invoices, limit to 50 per page (note: type/date filters MUST match previous request for pagination to work)
+ vastai show invoices-v1 --invoices --limit 50 --next-token eyJ2YWx1ZXMiOiB7ImlkIjogMjUwNzgyMzR9LCAib3NfcGFnZSI6IDB9
-# Show the last 10 instance charges over a 7 day period ending 2025-12-25, sorted latest first
-vastai show invoices-v1 --charges -ct instance --end-date 2025-12-25 -l 10 --latest-first
+ # Show the last 10 instance (only) charges over a 7 day period ending in 2025-12-25, sorted by latest charges first
+ vastai show invoices-v1 --charges -ct instance --end-date 2025-12-25 -l 10 --latest-first
```
## Global Options
diff --git a/cli/reference/show-invoices.mdx b/cli/reference/show-invoices.mdx
new file mode 100644
index 0000000..6982772
--- /dev/null
+++ b/cli/reference/show-invoices.mdx
@@ -0,0 +1,50 @@
+---
+title: "vastai show invoices"
+sidebarTitle: "show invoices"
+---
+
+(DEPRECATED) Get billing history reports. Use `vastai show invoices-v1` instead.
+
+## Usage
+
+```bash
+(DEPRECATED) vastai show invoices [OPTIONS]
+```
+
+## Options
+
+
+ only display numeric ids
+
+
+
+ start date and time for report. Many formats accepted (optional)
+
+
+
+ end date and time for report. Many formats accepted (optional)
+
+
+
+ Show only charge items
+
+
+
+ Show only credit items
+
+
+
+ Filter charges on a particular instance label (useful for autoscaler groups)
+
+
+## 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`) |
diff --git a/cli/reference/show-ipaddrs.mdx b/cli/reference/show-ipaddrs.mdx
index a26cccd..8a21a34 100644
--- a/cli/reference/show-ipaddrs.mdx
+++ b/cli/reference/show-ipaddrs.mdx
@@ -11,12 +11,6 @@ Display user's history of ip addresses
vastai show ipaddrs [--api-key API_KEY] [--raw]
```
-## Examples
-
-```bash
-vastai show ipaddrs
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-machine.mdx b/cli/reference/show-machine.mdx
index 29b2da4..ec2b1b0 100644
--- a/cli/reference/show-machine.mdx
+++ b/cli/reference/show-machine.mdx
@@ -1,9 +1,36 @@
---
title: "vastai show machine"
sidebarTitle: "show machine"
-description: "Host command"
---
-import ShowMachineCLI from '/snippets/host/cli/show-machine.mdx';
+[Host] Show hosted machines
-
+## Usage
+
+```bash
+vastai show machine ID [OPTIONS]
+```
+
+## Arguments
+
+
+ id of machine to display
+
+
+## Options
+
+
+ only display numeric ids
+
+
+## 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`) |
diff --git a/cli/reference/show-machines.mdx b/cli/reference/show-machines.mdx
index 029a438..0bf4e76 100644
--- a/cli/reference/show-machines.mdx
+++ b/cli/reference/show-machines.mdx
@@ -1,9 +1,30 @@
---
title: "vastai show machines"
sidebarTitle: "show machines"
-description: "Host command"
---
-import ShowMachinesCLI from '/snippets/host/cli/show-machines.mdx';
+[Host] Show hosted machines
-
+## Usage
+
+```bash
+vastai show machines [OPTIONS]
+```
+
+## Options
+
+
+ only display numeric ids
+
+
+## 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`) |
diff --git a/cli/reference/show-maints.mdx b/cli/reference/show-maints.mdx
index 23e0152..8c43bd7 100644
--- a/cli/reference/show-maints.mdx
+++ b/cli/reference/show-maints.mdx
@@ -1,9 +1,34 @@
---
title: "vastai show maints"
sidebarTitle: "show maints"
-description: "Host command"
---
-import ShowMaintsCLI from '/snippets/host/cli/show-maints.mdx';
+[Host] Show maintenance information for host machines
-
+## Usage
+
+```bash
+vastai show maints --ids 'machine_id_1[,machine_id_2,...]' [OPTIONS]
+```
+
+## Options
+
+
+ comma separated string of machine_ids for which to get maintenance information
+
+
+
+ only display numeric ids of the machines in maintenance
+
+
+## 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`) |
diff --git a/cli/reference/show-members.mdx b/cli/reference/show-members.mdx
index 8152814..aded2df 100644
--- a/cli/reference/show-members.mdx
+++ b/cli/reference/show-members.mdx
@@ -11,12 +11,6 @@ Show your team members
vastai show members
```
-## Examples
-
-```bash
-vastai show members
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-pending-price-increases.mdx b/cli/reference/show-pending-price-increases.mdx
new file mode 100644
index 0000000..79b7398
--- /dev/null
+++ b/cli/reference/show-pending-price-increases.mdx
@@ -0,0 +1,43 @@
+---
+title: "vastai show pending-price-increases"
+sidebarTitle: "show pending-price-increases"
+---
+
+List pending price-increase challenges for the authenticated user
+
+## Usage
+
+```bash
+vastai show pending-price-increases [OPTIONS]
+```
+
+## Options
+
+
+ print only pending_price_increase_id values, one per line
+
+
+## Description
+
+Lists every pending price-increase challenge the backend has open for
+you. Each row shows the per-resource old -> new prices and the cutover
+boundary: the new rate applies only after each contract's current
+end_date — your remaining time on the current term is billed at the
+original price.
+
+Pipe the pending IDs to `vastai accept price-increase` or
+`vastai reject price-increase` (use --quiet for one ID per line):
+
+ vastai show pending-price-increases --quiet
+
+## 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`) |
diff --git a/cli/reference/show-scheduled-jobs.mdx b/cli/reference/show-scheduled-jobs.mdx
index 73675f9..9541b84 100644
--- a/cli/reference/show-scheduled-jobs.mdx
+++ b/cli/reference/show-scheduled-jobs.mdx
@@ -11,12 +11,6 @@ Display the list of scheduled jobs
vastai show scheduled-jobs [--api-key API_KEY] [--raw]
```
-## Examples
-
-```bash
-vastai show scheduled-jobs
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-ssh-keys.mdx b/cli/reference/show-ssh-keys.mdx
index 5672a46..8e0756a 100644
--- a/cli/reference/show-ssh-keys.mdx
+++ b/cli/reference/show-ssh-keys.mdx
@@ -11,12 +11,6 @@ List your ssh keys associated with your account
vastai show ssh-keys
```
-## Examples
-
-```bash
-vastai show ssh-keys
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-subaccounts.mdx b/cli/reference/show-subaccounts.mdx
index ac38661..cb36884 100644
--- a/cli/reference/show-subaccounts.mdx
+++ b/cli/reference/show-subaccounts.mdx
@@ -13,16 +13,10 @@ vastai show subaccounts [OPTIONS]
## Options
-
- display subaccounts from current user (alias: `--quiet`)
+
+ display subaccounts from current user
-## Examples
-
-```bash
-vastai show subaccounts
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-team-role.mdx b/cli/reference/show-team-role.mdx
index ec83235..fb5250c 100644
--- a/cli/reference/show-team-role.mdx
+++ b/cli/reference/show-team-role.mdx
@@ -17,12 +17,6 @@ vastai show team-role NAME
name of the role
-## Examples
-
-```bash
-vastai show team-role
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-team-roles.mdx b/cli/reference/show-team-roles.mdx
index 26c206b..711ef3f 100644
--- a/cli/reference/show-team-roles.mdx
+++ b/cli/reference/show-team-roles.mdx
@@ -11,12 +11,6 @@ Show roles for a team
vastai show team-roles
```
-## Examples
-
-```bash
-vastai show team-roles
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-user.mdx b/cli/reference/show-user.mdx
index ce47463..238888d 100644
--- a/cli/reference/show-user.mdx
+++ b/cli/reference/show-user.mdx
@@ -13,20 +13,14 @@ vastai show user [OPTIONS]
## Options
-
- display information about user (alias: `--quiet`)
+
+ display information about user
## Description
Shows stats for logged-in user. These include user balance, email, and ssh key. Does not show API key.
-## Examples
-
-```bash
-vastai show user
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-volumes.mdx b/cli/reference/show-volumes.mdx
index 101dad8..8b64ffd 100644
--- a/cli/reference/show-volumes.mdx
+++ b/cli/reference/show-volumes.mdx
@@ -13,20 +13,14 @@ vastai show volumes [OPTIONS]
## Options
-
- volume type to display. Default to all. Possible values are "local", "all", "network" (alias: `--type`)
+
+ volume type to display. Default to all. Possible values are "local", "all", "network"
## Description
Show stats on owned volumes
-## Examples
-
-```bash
-vastai show volumes
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/show-workergroups.mdx b/cli/reference/show-workergroups.mdx
index 3284643..a8fdb48 100644
--- a/cli/reference/show-workergroups.mdx
+++ b/cli/reference/show-workergroups.mdx
@@ -15,12 +15,6 @@ vastai show workergroups [--api-key API_KEY]
Example: vastai show workergroups
-## Examples
-
-```bash
-vastai show workergroups
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/ssh-url.mdx b/cli/reference/ssh-url.mdx
index 2c74bee..b3dc21a 100644
--- a/cli/reference/ssh-url.mdx
+++ b/cli/reference/ssh-url.mdx
@@ -17,12 +17,6 @@ vastai ssh-url ID
id of instance
-## Examples
-
-```bash
-vastai ssh-url
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/delete-overlay.mdx b/cli/reference/start-deployment.mdx
similarity index 55%
rename from cli/reference/delete-overlay.mdx
rename to cli/reference/start-deployment.mdx
index 7280e11..3e37683 100644
--- a/cli/reference/delete-overlay.mdx
+++ b/cli/reference/start-deployment.mdx
@@ -1,26 +1,31 @@
---
-title: "vastai delete overlay"
-sidebarTitle: "delete overlay"
+title: "vastai start deployment"
+sidebarTitle: "start deployment"
---
-Deletes overlay and removes all of its associated instances
+Start a stopped deployment
## Usage
```bash
-vastai delete overlay OVERLAY_IDENTIFIER
+vastai start deployment ID [OPTIONS]
```
## Arguments
-
- ID (int) or name (str) of overlay to delete
+
+ id of deployment to start
+## Description
+
+Starts (or restarts) the endpoint associated with a deployment.
+
## Examples
```bash
-vastai delete overlay
+vastai start deployment 1234
+ vastai start deployment 1234 --raw
```
## Global Options
diff --git a/cli/reference/start-instance.mdx b/cli/reference/start-instance.mdx
index 5c61e08..d5e5fb4 100644
--- a/cli/reference/start-instance.mdx
+++ b/cli/reference/start-instance.mdx
@@ -26,7 +26,7 @@ If your instance is stuck in the "scheduling" state for more than 30 seconds aft
```bash
vastai start instances $(vastai show instances -q)
-vastai start instance 329838
+ vastai start instance 329838
```
## Global Options
diff --git a/cli/reference/start-instances.mdx b/cli/reference/start-instances.mdx
index 3e985f3..d8d1dfd 100644
--- a/cli/reference/start-instances.mdx
+++ b/cli/reference/start-instances.mdx
@@ -17,12 +17,6 @@ vastai start instances [OPTIONS] ID0 ID1 ID2...
ids of instance to start
-## Examples
-
-```bash
-vastai start instances
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/join-cluster.mdx b/cli/reference/stop-deployment.mdx
similarity index 53%
rename from cli/reference/join-cluster.mdx
rename to cli/reference/stop-deployment.mdx
index ed7a407..f48f9e4 100644
--- a/cli/reference/join-cluster.mdx
+++ b/cli/reference/stop-deployment.mdx
@@ -1,34 +1,32 @@
---
-title: "vastai join cluster"
-sidebarTitle: "join cluster"
+title: "vastai stop deployment"
+sidebarTitle: "stop deployment"
---
-Join Machine to Cluster
+Stop a running deployment
## Usage
```bash
-vastai join cluster CLUSTER_ID MACHINE_IDS
+vastai stop deployment ID [OPTIONS]
```
## Arguments
-
- ID of cluster to add machine to
-
-
-
- machine id(s) to join cluster
+
+ id of deployment to stop
## Description
-Join's Machine to Vast Cluster
+Stops the endpoint associated with a deployment. The deployment is not
+deleted and can be restarted with 'vastai start deployment'.
## Examples
```bash
-vastai join cluster
+vastai stop deployment 1234
+ vastai stop deployment 1234 --raw
```
## Global Options
diff --git a/cli/reference/stop-instance.mdx b/cli/reference/stop-instance.mdx
index cc7b89e..0444eb7 100644
--- a/cli/reference/stop-instance.mdx
+++ b/cli/reference/stop-instance.mdx
@@ -23,12 +23,6 @@ This command brings an instance from the "running" state into the "stopped" stat
and you can resume use of your instance by starting it again. Once stopped, starting an instance is subject to resource availability on the machine that the instance is located on.
There are ways to move data off of a stopped instance, which are described here: https://vast.ai/docs/gpu-instances/data-movement
-## Examples
-
-```bash
-vastai stop instance
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/stop-instances.mdx b/cli/reference/stop-instances.mdx
index c492d16..ead20d8 100644
--- a/cli/reference/stop-instances.mdx
+++ b/cli/reference/stop-instances.mdx
@@ -21,7 +21,7 @@ vastai stop instances [OPTIONS] ID0 ID1 ID2...
```bash
vastai stop instances $(vastai show instances -q)
-vastai stop instances 329838 984849
+ vastai stop instances 329838 984849
```
## Global Options
diff --git a/cli/reference/take-snapshot.mdx b/cli/reference/take-snapshot.mdx
new file mode 100644
index 0000000..a90799b
--- /dev/null
+++ b/cli/reference/take-snapshot.mdx
@@ -0,0 +1,59 @@
+---
+title: "vastai take snapshot"
+sidebarTitle: "take snapshot"
+---
+
+Schedule a snapshot of a running container and push it to your repo in a container registry
+
+## Usage
+
+```bash
+vastai take snapshot INSTANCE_ID --repo REPO --docker_login_user USER --docker_login_pass PASS[--container_registry REGISTRY] [--pause true|false]
+```
+
+## Arguments
+
+
+ instance_id of the container instance to snapshot
+
+
+## Options
+
+
+ Container registry to push the snapshot to. Default will be docker.io
+
+
+
+ repo to push the snapshot to
+
+
+
+ Username for container registry with repo
+
+
+
+ Password or token for container registry with repo
+
+
+
+ Pause container's processes being executed by the CPU to take snapshot (true/false). Default will be true
+
+
+## Description
+
+Takes a snapshot of a running container instance and pushes snapshot to the specified repository in container registry.
+
+Use pause=true to pause the container during commit (safer but slower),
+or pause=false to leave it running (faster but may produce a less safe snapshot).
+
+## 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`) |
diff --git a/cli/reference/tfa-activate.mdx b/cli/reference/tfa-activate.mdx
new file mode 100644
index 0000000..8e02bb0
--- /dev/null
+++ b/cli/reference/tfa-activate.mdx
@@ -0,0 +1,78 @@
+---
+title: "vastai tfa activate"
+sidebarTitle: "tfa activate"
+---
+
+Activate a new 2FA method by verifying the code
+
+## Usage
+
+```bash
+vastai tfa activate CODE --secret SECRET [--method-type METHOD_TYPE] [--phone-number PHONE_NUMBER] [--label LABEL]
+```
+
+## Arguments
+
+
+ 6-digit verification code from SMS or Authenticator app
+
+
+## Options
+
+
+ New 2FA Method type to activate
+ Allowed values: sms, totp
+
+
+
+ Secret token from setup process (required)
+
+
+
+ Phone number for SMS method (E.164 format)
+
+
+
+ Label for the new 2FA method
+
+
+## Description
+
+Complete the 2FA setup process by verifying your code.
+
+************************************************************************************************************************
+NOTE: Prior to running this command, you must authorize your attempt to create a new 2FA method by following the instructions in the `vastai tfa auth-new` command.
+This is required to ensure that only you can add new 2FA methods to your account.
+************************************************************************************************************************
+
+For TOTP (Authenticator app):
+ 1. Run 'vastai tfa totp-setup' to get the manual key/QR code and secret
+ 2. Enter the manual key or scan the QR code with your Authenticator app
+ 3. Run this command with the 6-digit code from your app and the secret token from step 1
+
+For SMS:
+ 1. Run 'vastai tfa send-sms --phone-number <PHONE_NUMBER>' to receive SMS and get secret token
+ 2. Run this command with the code you received via SMS and the phone number it was sent to
+
+If this is your first 2FA method, backup codes will be generated and displayed.
+Save these backup codes in a secure location!
+
+## Examples
+
+```bash
+vastai tfa activate --method-type totp --secret abc123def456 123456
+ vastai tfa activate --method-type sms --secret abc123def456 --phone-number +12345678901 123456
+ vastai tfa activate --method-type sms --secret abc123def456 --phone-number +12345678901 --label "Work Phone" 123456
+```
+
+## 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`) |
diff --git a/cli/reference/tfa-auth-new.mdx b/cli/reference/tfa-auth-new.mdx
new file mode 100644
index 0000000..eaf842e
--- /dev/null
+++ b/cli/reference/tfa-auth-new.mdx
@@ -0,0 +1,78 @@
+---
+title: "vastai tfa auth-new"
+sidebarTitle: "tfa auth-new"
+---
+
+Authorize your account to add a new 2FA method
+
+## Usage
+
+```bash
+vastai tfa auth-new {[--method-type METHOD_TYPE | --method-id ID | --backup-code BACKUP_CODE] | [--secret SECRET --code CODE]}
+```
+
+## Options
+
+
+ 2FA code from Authenticator app, SMS, or Email
+
+
+
+ Secret token from previous auth step
+
+
+
+ 2FA Method type. Only use when you only have one method of this type
+ Allowed values: email, sms, totp
+
+
+
+ One-time backup code (alternative to regular 2FA code)
+
+
+
+ 2FA Method ID if you have more than one of the same type ('id' from `tfa status`)
+
+
+## Description
+
+Authorize your account to add a new 2FA method by verifying via email or an existing method.
+
+This is a required step to ensure that only you can add new 2FA methods to your account.
+
+Step 1. Run command with your chosen verification method:
+ - If you have an existing 2FA method set up, you can use '--backup-code BACKUP_CODE' to immediately authorize (skip Step 2)
+ - Use --method-type {sms|totp} or --method-id ID to specify which existing method to use for verification (see `vastai tfa status` for available methods and their IDs)
+ - Use --method-type email if you have a verified email address and/or no other 2FA methods set up to receive a code via email
+
+Step 2. When prompted, enter the 2FA code from your 2FA method of choice to confirm authorization.
+
+Note:
+If you exit the command before being able to enter the code, you can run this command again
+with --secret SECRET and --code CODE to complete the authorization step as long as the code has not expired.
+
+## Examples
+
+```bash
+# Initiating New Method Authorization
+ vastai tfa auth-new (method type is email by default)
+ vastai tfa auth-new --method-type totp
+ vastai tfa auth-new -t sms
+ vastai tfa auth-new --method-id 456
+ vastai tfa auth-new --backup-code ABCD-EFGH-IJKL
+
+ # Completing Authorization with code and secret if not completed in previous run
+ vastai tfa auth-new --secret abc123def456 --code 123456
+```
+
+## 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`) |
diff --git a/cli/reference/tfa-delete.mdx b/cli/reference/tfa-delete.mdx
new file mode 100644
index 0000000..9f23df8
--- /dev/null
+++ b/cli/reference/tfa-delete.mdx
@@ -0,0 +1,86 @@
+---
+title: "vastai tfa delete"
+sidebarTitle: "tfa delete"
+---
+
+Remove a 2FA method from your account
+
+## Usage
+
+```bash
+vastai tfa delete [--id-to-delete ID] [--code CODE] [--method-type METHOD_TYPE] [--secret SECRET] [--backup-code BACKUP_CODE] [--method-id ID]
+```
+
+## Options
+
+
+ ID of the 2FA method to delete (see `vastai tfa status`)
+
+
+
+ 2FA code from your Authenticator app, SMS, or Email to authorize deletion
+
+
+
+ 2FA Method type. Only use when you only have one method of this type
+ Allowed values: email, sms, totp
+
+
+
+ Secret token (required for SMS or Email 2FA)
+
+
+
+ One-time backup code (alternative to regular 2FA code)
+
+
+
+ 2FA Method ID to use if you have more than one of the same type ('id' from `tfa status`)
+
+
+## Description
+
+Remove a 2FA method from your account.
+
+This action requires 2FA verification to prevent unauthorized removals.
+
+************************************************************************************************************************
+NOTE: If you do not specify --id-to-delete, the system will attempt to delete the method you are using to authenticate.
+ However please be advised, it is much safer to specify the ID to avoid confusion if you have multiple methods.
+************************************************************************************************************************
+
+ Use `vastai tfa status` to see your active methods and their IDs.
+
+## Examples
+
+```bash
+# Delete method #123, authorize with email code and secret from `tfa send-email`
+ vastai tfa delete --id-to-delete 123 --method-type email --secret abc123def456 -c 456789
+
+ # Delete method #123, authorize with TOTP/Authenticator code
+ vastai tfa delete --id-to-delete 123 --method-type totp --code 456789
+
+ # Delete method #123, authorize with SMS and secret from `tfa send-sms`
+ vastai tfa delete -id 123 --method-type sms --secret abc123def456 -c 456789
+
+ # Delete method #123, authorize with backup code
+ vastai tfa delete --id-to-delete 123 --backup-code ABCD-EFGH-IJKL
+
+ # Delete method #123, specify which TOTP method to use if you have multiple
+ vastai tfa delete -id 123 --method-id 456 -c 456789
+
+ # Delete the TOTP method you are using to authenticate (use with caution)
+ vastai tfa delete -c 456789
+```
+
+## 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`) |
diff --git a/cli/reference/tfa-login.mdx b/cli/reference/tfa-login.mdx
new file mode 100644
index 0000000..c2807a2
--- /dev/null
+++ b/cli/reference/tfa-login.mdx
@@ -0,0 +1,65 @@
+---
+title: "vastai tfa login"
+sidebarTitle: "tfa login"
+---
+
+Complete 2FA login by verifying code
+
+## Usage
+
+```bash
+vastai tfa login [--code CODE] [--method-type METHOD_TYPE] [--secret SECRET] [--backup-code BACKUP_CODE]
+```
+
+## Options
+
+
+ 2FA code from Authenticator app, SMS, or Email
+
+
+
+ 2FA Method type. Only use when you only have one method of this type
+ Allowed values: email, sms, totp
+
+
+
+ Secret token from previous login step (required for SMS or Email 2FA)
+
+
+
+ One-time backup code (alternative to regular 2FA code)
+
+
+
+ 2FA Method ID if you have more than one of the same type ('id' from `tfa status`)
+
+
+## Description
+
+Complete Two-Factor Authentication login by providing the 2FA code.
+
+For Email: Include the --method-type email flag and provide -s/--secret from the `tfa send-email` command response
+For TOTP: Include the --method-type totp and provide the 6-digit code from your Authenticator app
+For SMS: Include the --method-type sms flag and provide -s/--secret from the `tfa send-sms` command response
+For backup code: Use --backup-code instead of code (codes may only be used once)
+
+## Examples
+
+```bash
+vastai tfa login --method-type totp -c 123456
+ vastai tfa login --method-type sms --code 123456 --secret abc123def456
+ vastai tfa login -t email -c 123456 -s abc123def456
+ vastai tfa login --backup-code ABCD-EFGH-IJKL
+```
+
+## 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`) |
diff --git a/cli/reference/tfa-regen-codes.mdx b/cli/reference/tfa-regen-codes.mdx
new file mode 100644
index 0000000..03004a2
--- /dev/null
+++ b/cli/reference/tfa-regen-codes.mdx
@@ -0,0 +1,75 @@
+---
+title: "vastai tfa regen-codes"
+sidebarTitle: "tfa regen-codes"
+---
+
+Regenerate backup codes for 2FA
+
+## Usage
+
+```bash
+vastai tfa regen-codes [--code CODE] [--method-type METHOD_TYPE] [--secret SECRET] [--backup-code BACKUP_CODE] [--method-id ID]
+```
+
+## Options
+
+
+ 2FA code from Authenticator app, SMS, or Email
+
+
+
+ 2FA Method type. Only use when you only have one method of this type
+ Allowed values: email, sms, totp
+
+
+
+ Secret token from previous login step (required for SMS or Email 2FA)
+
+
+
+ One-time backup code (alternative to regular 2FA code)
+
+
+
+ 2FA Method ID if you have more than one of the same type ('id' from `tfa status`)
+
+
+## Description
+
+Generate a new set of backup codes for your account.
+
+This action requires 2FA verification to prevent unauthorized regeneration.
+
+WARNING: This will invalidate all existing backup codes!
+Any previously generated codes will no longer work.
+
+Backup codes are one-time use codes that allow you to log in
+if you lose access to your primary 2FA method (lost phone, etc).
+
+You should regenerate your backup codes if:
+• You've used several codes and are running low
+• You think your codes may have been compromised
+• You lost your saved codes and need new ones
+
+Important: Save the new codes in a secure location immediately!
+They will not be shown again.
+
+## Examples
+
+```bash
+vastai tfa regen-codes --code --method-type totp 123456
+ vastai tfa regen-codes -c 123456 -t sms --secret abc123def456
+ vastai tfa regen-codes --backup-code ABCD-EFGH-IJKL
+```
+
+## 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`) |
diff --git a/cli/reference/tfa-resend-sms.mdx b/cli/reference/tfa-resend-sms.mdx
new file mode 100644
index 0000000..6f31f8b
--- /dev/null
+++ b/cli/reference/tfa-resend-sms.mdx
@@ -0,0 +1,51 @@
+---
+title: "vastai tfa resend-sms"
+sidebarTitle: "tfa resend-sms"
+---
+
+Resend SMS 2FA code
+
+## Usage
+
+```bash
+vastai tfa resend-sms --secret SECRET [--phone-number PHONE_NUMBER]
+```
+
+## Options
+
+
+ Phone number to receive SMS code (E.164 format, e.g., +1234567890)
+
+
+
+ Secret token from the original 2FA login attempt
+
+
+## Description
+
+Resend the SMS verification code to your phone.
+
+This is useful if:
+• You didn't receive the original SMS
+• The code expired before you could use it
+• You accidentally deleted the message
+
+You must provide the same secret token from the original request.
+
+## Examples
+
+```bash
+vastai tfa resend-sms --secret abc123def456
+```
+
+## 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`) |
diff --git a/cli/reference/delete-cluster.mdx b/cli/reference/tfa-send-email.mdx
similarity index 59%
rename from cli/reference/delete-cluster.mdx
rename to cli/reference/tfa-send-email.mdx
index df9c435..09a5d97 100644
--- a/cli/reference/delete-cluster.mdx
+++ b/cli/reference/tfa-send-email.mdx
@@ -1,30 +1,26 @@
---
-title: "vastai delete cluster"
-sidebarTitle: "delete cluster"
+title: "vastai tfa send-email"
+sidebarTitle: "tfa send-email"
---
-Delete Cluster
+Request a 2FA Email verification code
## Usage
```bash
-vastai delete cluster CLUSTER_ID
+vastai tfa send-email
```
-## Arguments
-
-
- ID of cluster to delete
-
-
## Description
-Delete Vast Cluster
+Request a two-factor authentication code to be sent via Email.
+
+The secret token will be returned and must be used with 'vastai tfa activate'.
## Examples
```bash
-vastai delete cluster
+vastai tfa send-email
```
## Global Options
diff --git a/cli/reference/tfa-send-sms.mdx b/cli/reference/tfa-send-sms.mdx
new file mode 100644
index 0000000..dbc4a26
--- /dev/null
+++ b/cli/reference/tfa-send-sms.mdx
@@ -0,0 +1,44 @@
+---
+title: "vastai tfa send-sms"
+sidebarTitle: "tfa send-sms"
+---
+
+Request a 2FA SMS verification code
+
+## Usage
+
+```bash
+vastai tfa send-sms [--phone-number PHONE_NUMBER]
+```
+
+## Options
+
+
+ Phone number to receive SMS code (E.164 format, e.g., +1234567890)
+
+
+## Description
+
+Request a two-factor authentication code to be sent via SMS.
+
+If --phone-number is not provided, uses the phone number on your account.
+The secret token will be returned and must be used with 'vastai tfa activate'.
+
+## Examples
+
+```bash
+vastai tfa send-sms
+ vastai tfa send-sms --phone-number +12345678901
+```
+
+## 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`) |
diff --git a/cli/reference/tfa-status.mdx b/cli/reference/tfa-status.mdx
new file mode 100644
index 0000000..c57a4e1
--- /dev/null
+++ b/cli/reference/tfa-status.mdx
@@ -0,0 +1,31 @@
+---
+title: "vastai tfa status"
+sidebarTitle: "tfa status"
+---
+
+Shows the current 2FA status and configured methods
+
+## Usage
+
+```bash
+generate_cli_sdk_docs.py tfa status [-h]
+```
+
+## Description
+
+Show the current 2FA status for your account, including:
+ • Whether or not 2FA is enabled
+ • A list of active 2FA methods
+ • The number of backup codes remaining (if 2FA is enabled)
+
+## 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`) |
diff --git a/cli/reference/tfa-totp-setup.mdx b/cli/reference/tfa-totp-setup.mdx
new file mode 100644
index 0000000..8799ea7
--- /dev/null
+++ b/cli/reference/tfa-totp-setup.mdx
@@ -0,0 +1,55 @@
+---
+title: "vastai tfa totp-setup"
+sidebarTitle: "tfa totp-setup"
+---
+
+Generate TOTP secret and QR code for Authenticator app setup
+
+## Usage
+
+```bash
+vastai tfa totp-setup
+```
+
+## Description
+
+Set up TOTP (Time-based One-Time Password) 2FA using an Authenticator app.
+
+This command generates a new TOTP secret and displays:
+• A QR code (for scanning with your app)
+• A manual entry key (for typing into your app)
+• A secret token (needed for the next step)
+
+Workflow:
+ 1. Run this command to generate the TOTP secret
+ 2. Add the account to your Authenticator app by either:
+ • Scanning the displayed QR code, OR
+ • Manually entering the key shown
+ 3. Once added, your app will display a 6-digit code
+ 4. Complete setup by running:
+ vastai tfa activate --method-type totp --secret <SECRET> <CODE>
+
+Supported Authenticator Apps:
+ • Google Authenticator
+ • Microsoft Authenticator
+ • Authy
+ • 1Password
+ • Any TOTP-compatible app
+
+## Examples
+
+```bash
+vastai tfa totp-setup
+```
+
+## 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`) |
diff --git a/cli/reference/tfa-update.mdx b/cli/reference/tfa-update.mdx
new file mode 100644
index 0000000..59c1b6c
--- /dev/null
+++ b/cli/reference/tfa-update.mdx
@@ -0,0 +1,57 @@
+---
+title: "vastai tfa update"
+sidebarTitle: "tfa update"
+---
+
+Update a 2FA method's settings
+
+## Usage
+
+```bash
+vastai tfa update METHOD_ID [--label LABEL] [--set-primary]
+```
+
+## Arguments
+
+
+ ID of the 2FA method to update (see `vastai tfa status`)
+
+
+## Options
+
+
+ New label/name for this 2FA method
+
+
+
+ Set this method as the primary/default 2FA method
+
+
+## Description
+
+Update the label or primary status of a 2FA method.
+
+The label is a friendly name to help you identify different methods
+(e.g. "Work Phone", "Personal Authenticator").
+
+The primary method is your preferred/default 2FA method.
+
+## Examples
+
+```bash
+vastai tfa update 123 --label "Work Phone"
+ vastai tfa update 456 --set-primary
+ vastai tfa update 789 --label "Backup Authenticator" --set-primary
+```
+
+## 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`) |
diff --git a/cli/reference/transfer-credit.mdx b/cli/reference/transfer-credit.mdx
index 5fcef41..6417c30 100644
--- a/cli/reference/transfer-credit.mdx
+++ b/cli/reference/transfer-credit.mdx
@@ -8,34 +8,41 @@ Transfer credits to another account
## Usage
```bash
-vastai transfer credit RECIPIENT AMOUNT
+vastai transfer credit [--recipient EMAIL] [--amount DOLLARS] [RECIPIENT AMOUNT]
```
## Arguments
-
- email (or id) of recipient account
+
+ email (or id) of recipient account (positional; use --recipient to name)
-
- $dollars of credit to transfer
+
+ dollars of credit to transfer (positional; use --amount to name)
## Options
+
+ email (or id) of recipient account
+
+
+
+ dollars of credit to transfer
+
+
skip confirmation
## Description
-Transfer (amount) credits to account with email (recipient).
-
-## Examples
+Transfer credits to another account. This action is irreversible.
-```bash
-vastai transfer credit
-```
+Supports both named flags (recommended) and legacy positional arguments:
+ vastai transfer credit --recipient user@example.com --amount 25.50
+ vastai transfer credit -r user@example.com -a 25.50
+ vastai transfer credit user@example.com 25.50
## Global Options
diff --git a/cli/reference/unlist-machine.mdx b/cli/reference/unlist-machine.mdx
index c71739a..be18db1 100644
--- a/cli/reference/unlist-machine.mdx
+++ b/cli/reference/unlist-machine.mdx
@@ -1,9 +1,30 @@
---
title: "vastai unlist machine"
sidebarTitle: "unlist machine"
-description: "Host command"
---
-import UnlistMachineCLI from '/snippets/host/cli/unlist-machine.mdx';
+[Host] Unlist a listed machine
-
+## Usage
+
+```bash
+vastai unlist machine
+```
+
+## Arguments
+
+
+ id of machine to unlist
+
+
+## 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`) |
diff --git a/cli/reference/unlist-volume.mdx b/cli/reference/unlist-volume.mdx
index b214d20..08db86c 100644
--- a/cli/reference/unlist-volume.mdx
+++ b/cli/reference/unlist-volume.mdx
@@ -1,12 +1,9 @@
---
title: "vastai unlist volume"
sidebarTitle: "unlist volume"
-description: "Host command"
---
-unlist volume offer
-
-This is a **host** command, used for managing machines you are renting out on Vast.ai.
+[Host] unlist volume offer
## Usage
@@ -20,12 +17,6 @@ vastai unlist volume ID
volume ID you want to unlist
-## Examples
-
-```bash
-vastai unlist volume
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/update-endpoint.mdx b/cli/reference/update-endpoint.mdx
index 1356e14..ae325b7 100644
--- a/cli/reference/update-endpoint.mdx
+++ b/cli/reference/update-endpoint.mdx
@@ -65,13 +65,7 @@ vastai update endpoint ID [OPTIONS]
## Description
-Example: vastai update endpoint 4242 `--min_load` 100 `--target_util` 0.9 `--cold_mult` 2.0 `--endpoint_name` "LLama"
-
-## Examples
-
-```bash
-vastai update endpoint
-```
+Example: vastai update endpoint 4242 --min_load 100 --target_util 0.9 --cold_mult 2.0 --endpoint_name "LLama"
## Global Options
diff --git a/cli/reference/update-env-var.mdx b/cli/reference/update-env-var.mdx
index 0040715..d954059 100644
--- a/cli/reference/update-env-var.mdx
+++ b/cli/reference/update-env-var.mdx
@@ -21,12 +21,6 @@ vastai update env-var
New environment variable value
-## Examples
-
-```bash
-vastai update env-var
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/update-instance.mdx b/cli/reference/update-instance.mdx
index d3e01ce..3e1758e 100644
--- a/cli/reference/update-instance.mdx
+++ b/cli/reference/update-instance.mdx
@@ -35,7 +35,7 @@ vastai update instance ID [OPTIONS]
new arguments for the instance
-
+
new environment variables for the instance
@@ -45,13 +45,7 @@ vastai update instance ID [OPTIONS]
## Description
-Example: vastai update instance 1234 `--template_hash_id` 661d064bbda1f2a133816b6d55da07c3
-
-## Examples
-
-```bash
-vastai update instance
-```
+Example: vastai update instance 1234 --template_hash_id 661d064bbda1f2a133816b6d55da07c3
## Global Options
diff --git a/cli/reference/update-ssh-key.mdx b/cli/reference/update-ssh-key.mdx
index a826c75..4fd729b 100644
--- a/cli/reference/update-ssh-key.mdx
+++ b/cli/reference/update-ssh-key.mdx
@@ -21,12 +21,6 @@ vastai update ssh-key ID SSH_KEY
new public key value
-## Examples
-
-```bash
-vastai update ssh-key
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/update-team-role.mdx b/cli/reference/update-team-role.mdx
index 7147977..feed129 100644
--- a/cli/reference/update-team-role.mdx
+++ b/cli/reference/update-team-role.mdx
@@ -20,19 +20,13 @@ vastai update team-role ID --name NAME --permissions PERMISSIONS
## Options
- name of the template
+ name of the role
file path for json encoded permissions, look in the docs for more information
-## Examples
-
-```bash
-vastai update team-role
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/update-template.mdx b/cli/reference/update-template.mdx
index 07fb51b..fad2e13 100644
--- a/cli/reference/update-template.mdx
+++ b/cli/reference/update-template.mdx
@@ -28,7 +28,7 @@ vastai update template HASH_ID
- docker image tag (can also be appended to end of image_path)
+ docker image tag
@@ -60,7 +60,7 @@ vastai update template HASH_ID
- For runtype 'jupyter', directory in instance to use to launch jupyter. Defaults to image's working directory
+ For runtype 'jupyter', directory in instance to use to launch jupyter
@@ -75,8 +75,8 @@ vastai update template HASH_ID
search offers filters
-
- Disable default search param query args (alias: `--no-default`)
+
+ Disable default search param query args
@@ -99,20 +99,6 @@ vastai update template HASH_ID
make template available to public
-## Description
-
-Update a template
-
-## Examples
-
-```bash
-vastai update template c81e7ab0e928a508510d1979346de10d --name "tgi-llama2-7B-quantized" --image "ghcr.io/huggingface/text-generation-inference:1.0.3"
- --env "-p 3000:3000 -e MODEL_ARGS='--model-id TheBloke/Llama-2-7B-chat-GPTQ --quantize gptq'"
- --onstart-cmd 'wget -O - https://raw.githubusercontent.com/vast-ai/vast-pyworker/main/scripts/launch_tgi.sh | bash'
- --search_params "gpu_ram>=23 num_gpus=1 gpu_name=RTX_3090 inet_down>128 direct_port_count>3 disk_space>=192 driver_version>=535086005 rented=False"
- --disk 8.0 --ssh --direct
-```
-
## Global Options
The following options are available for all commands:
diff --git a/cli/reference/update-workergroup.mdx b/cli/reference/update-workergroup.mdx
index e5b0ade..a5c7784 100644
--- a/cli/reference/update-workergroup.mdx
+++ b/cli/reference/update-workergroup.mdx
@@ -55,12 +55,12 @@ vastai update workergroup WORKERGROUP_ID --endpoint_id ENDPOINT_ID [options]
search param string for search offers ex: "gpu_ram>=23 num_gpus=2 gpu_name=RTX_4090 inet_down>200 direct_port_count>2 disk_space>=64"
-
- Disable default search param query args (alias: `--no-default`)
+
+ Disable default search param query args
- launch args string for create instance ex: "`--onstart` onstart_wget.sh `--env` '-e ONSTART_PATH=https://s3.amazonaws.com/public.vast.ai/onstart_OOBA.sh' `--image` atinoda/text-generation-webui:default-nightly `--disk` 64"
+ launch args string for create instance ex: "--onstart onstart_wget.sh --env '-e ONSTART_PATH=https://s3.amazonaws.com/public.vast.ai/onstart_OOBA.sh' --image atinoda/text-generation-webui:default-nightly --disk 64"
@@ -73,13 +73,7 @@ vastai update workergroup WORKERGROUP_ID --endpoint_id ENDPOINT_ID [options]
## Description
-Example: vastai update workergroup 4242 `--min_load` 100 `--target_util` 0.9 `--cold_mult` 2.0 `--search_params` "gpu_ram>=23 num_gpus=2 gpu_name=RTX_4090 inet_down>200 direct_port_count>2 disk_space>=64" `--launch_args` "`--onstart` onstart_wget.sh `--env` '-e ONSTART_PATH=https://s3.amazonaws.com/public.vast.ai/onstart_OOBA.sh' `--image` atinoda/text-generation-webui:default-nightly `--disk` 64" `--gpu_ram` 32.0 `--endpoint_name` "LLama" `--endpoint_id` 2
-
-## Examples
-
-```bash
-vastai update workergroup
-```
+Example: vastai update workergroup 4242 --min_load 100 --target_util 0.9 --cold_mult 2.0 --search_params "gpu_ram>=23 num_gpus=2 gpu_name=RTX_4090 inet_down>200 direct_port_count>2 disk_space>=64" --launch_args "--onstart onstart_wget.sh --env '-e ONSTART_PATH=https://s3.amazonaws.com/public.vast.ai/onstart_OOBA.sh' --image atinoda/text-generation-webui:default-nightly --disk 64" --gpu_ram 32.0 --endpoint_name "LLama" --endpoint_id 2
## Global Options
diff --git a/cli/reference/update-workers.mdx b/cli/reference/update-workers.mdx
index cff2d3b..b104f13 100644
--- a/cli/reference/update-workers.mdx
+++ b/cli/reference/update-workers.mdx
@@ -28,13 +28,13 @@ vastai update workers WORKERGROUP_ID [--cancel]
Starts a rolling update of all workers in the specified workergroup. The autoscaler
will cycle through workers, updating them while maintaining capacity.
-Use `--cancel` to cancel an update that is currently in progress.
+Use --cancel to cancel an update that is currently in progress.
## Examples
```bash
vastai update workers 4242
-vastai update workers 4242 --cancel
+ vastai update workers 4242 --cancel
```
## Global Options
diff --git a/docs.json b/docs.json
index acf42bc..c522bf6 100644
--- a/docs.json
+++ b/docs.json
@@ -216,154 +216,176 @@
"group": "Accounts",
"pages": [
"cli/reference/create-api-key",
- "cli/reference/delete-api-key",
- "cli/reference/set-api-key",
- "cli/reference/show-api-keys",
- "cli/reference/create-ssh-key",
- "cli/reference/delete-ssh-key",
- "cli/reference/show-ssh-keys",
- "cli/reference/update-ssh-key",
"cli/reference/create-env-var",
+ "cli/reference/create-ssh-key",
+ "cli/reference/create-subaccount",
+ "cli/reference/delete-api-key",
"cli/reference/delete-env-var",
- "cli/reference/show-env-vars",
- "cli/reference/update-env-var",
- "cli/reference/show-user",
+ "cli/reference/delete-ssh-key",
+ "cli/reference/reset-api-key",
+ "cli/reference/set-api-key",
"cli/reference/set-user",
- "cli/reference/create-subaccount",
- "cli/reference/show-subaccounts",
+ "cli/reference/show-api-key",
+ "cli/reference/show-api-keys",
+ "cli/reference/show-audit-logs",
"cli/reference/show-connections",
+ "cli/reference/show-env-vars",
"cli/reference/show-ipaddrs",
- "cli/reference/show-audit-logs"
+ "cli/reference/show-ssh-keys",
+ "cli/reference/show-subaccounts",
+ "cli/reference/show-user",
+ "cli/reference/tfa-activate",
+ "cli/reference/tfa-auth-new",
+ "cli/reference/tfa-delete",
+ "cli/reference/tfa-login",
+ "cli/reference/tfa-regen-codes",
+ "cli/reference/tfa-resend-sms",
+ "cli/reference/tfa-send-email",
+ "cli/reference/tfa-send-sms",
+ "cli/reference/tfa-status",
+ "cli/reference/tfa-totp-setup",
+ "cli/reference/tfa-update",
+ "cli/reference/update-env-var",
+ "cli/reference/update-ssh-key"
]
},
{
"group": "Billing",
"pages": [
+ "cli/reference/reports",
"cli/reference/show-deposit",
"cli/reference/show-earnings",
+ "cli/reference/show-invoices",
"cli/reference/show-invoices-v1",
- "cli/reference/transfer-credit",
- "cli/reference/reports"
+ "cli/reference/transfer-credit"
]
},
{
"group": "Instances",
"pages": [
+ "cli/reference/accept-price-increase",
+ "cli/reference/attach-ssh",
+ "cli/reference/cancel-copy",
+ "cli/reference/cancel-sync",
+ "cli/reference/change-bid",
+ "cli/reference/cloud-copy",
+ "cli/reference/copy",
"cli/reference/create-instance",
- "cli/reference/launch-instance",
- "cli/reference/start-instance",
- "cli/reference/start-instances",
- "cli/reference/stop-instance",
- "cli/reference/stop-instances",
- "cli/reference/reboot-instance",
- "cli/reference/recycle-instance",
+ "cli/reference/create-instances",
"cli/reference/destroy-instance",
"cli/reference/destroy-instances",
+ "cli/reference/detach-ssh",
+ "cli/reference/execute",
"cli/reference/label-instance",
+ "cli/reference/launch-instance",
+ "cli/reference/logs",
"cli/reference/prepay-instance",
- "cli/reference/update-instance",
- "cli/reference/change-bid",
+ "cli/reference/reboot-instance",
+ "cli/reference/recycle-instance",
+ "cli/reference/reject-price-increase",
+ "cli/reference/run-benchmarks",
+ "cli/reference/scp-url",
"cli/reference/show-instance",
"cli/reference/show-instances",
"cli/reference/show-instances-v1",
- "cli/reference/logs",
- "cli/reference/execute",
- "cli/reference/attach-ssh",
- "cli/reference/detach-ssh",
+ "cli/reference/show-pending-price-increases",
"cli/reference/ssh-url",
- "cli/reference/scp-url",
- "cli/reference/copy",
- "cli/reference/cloud-copy",
- "cli/reference/cancel-copy",
- "cli/reference/cancel-sync",
- "cli/reference/run-benchmarks"
+ "cli/reference/start-instance",
+ "cli/reference/start-instances",
+ "cli/reference/stop-instance",
+ "cli/reference/stop-instances",
+ "cli/reference/take-snapshot",
+ "cli/reference/update-instance"
]
},
{
"group": "Search & templates",
"pages": [
- "cli/reference/search-offers",
+ "cli/reference/create-template",
+ "cli/reference/delete-template",
"cli/reference/search-benchmarks",
- "cli/reference/search-instances",
"cli/reference/search-invoices",
+ "cli/reference/search-offers",
"cli/reference/search-templates",
"cli/reference/search-volumes",
- "cli/reference/create-template",
- "cli/reference/update-template",
- "cli/reference/delete-template"
+ "cli/reference/update-template"
]
},
{
"group": "Serverless",
"pages": [
"cli/reference/create-endpoint",
- "cli/reference/update-endpoint",
- "cli/reference/delete-endpoint",
- "cli/reference/show-endpoints",
"cli/reference/create-workergroup",
- "cli/reference/update-workergroup",
- "cli/reference/update-workers",
+ "cli/reference/delete-deployment",
+ "cli/reference/delete-endpoint",
+ "cli/reference/delete-scheduled-job",
"cli/reference/delete-workergroup",
- "cli/reference/show-workergroups",
"cli/reference/get-endpt-logs",
+ "cli/reference/get-endpt-workers",
"cli/reference/get-wrkgrp-logs",
- "cli/reference/show-scheduled-jobs",
- "cli/reference/delete-scheduled-job",
- "cli/reference/delete-deployment",
+ "cli/reference/run-benchmarks",
"cli/reference/show-deployment",
"cli/reference/show-deployment-versions",
"cli/reference/show-deployments",
- "cli/reference/run-benchmarks"
+ "cli/reference/show-endpoints",
+ "cli/reference/show-scheduled-jobs",
+ "cli/reference/show-workergroups",
+ "cli/reference/start-deployment",
+ "cli/reference/stop-deployment",
+ "cli/reference/update-endpoint",
+ "cli/reference/update-workergroup",
+ "cli/reference/update-workers"
]
},
{
"group": "Teams",
"pages": [
"cli/reference/create-team",
+ "cli/reference/create-team-role",
"cli/reference/destroy-team",
"cli/reference/invite-member",
"cli/reference/remove-member",
+ "cli/reference/remove-team-role",
"cli/reference/show-members",
- "cli/reference/create-team-role",
"cli/reference/show-team-role",
"cli/reference/show-team-roles",
- "cli/reference/update-team-role",
- "cli/reference/remove-team-role"
+ "cli/reference/update-team-role"
]
},
{
"group": "Volumes",
"pages": [
- "cli/reference/create-volume",
"cli/reference/clone-volume",
+ "cli/reference/create-volume",
+ "cli/reference/delete-volume",
"cli/reference/list-volume",
"cli/reference/list-volumes",
"cli/reference/show-volumes",
- "cli/reference/unlist-volume",
- "cli/reference/delete-volume"
+ "cli/reference/unlist-volume"
]
},
{
"group": "Host",
"pages": [
+ "cli/reference/cancel-maint",
"cli/reference/cleanup-machine",
+ "cli/reference/defrag-machines",
"cli/reference/delete-machine",
+ "cli/reference/dump-logs",
"cli/reference/list-machine",
"cli/reference/list-machines",
- "cli/reference/show-machine",
- "cli/reference/show-machines",
- "cli/reference/set-defjob",
+ "cli/reference/metrics-gpu",
+ "cli/reference/metrics-gpu-locations",
+ "cli/reference/metrics-gpu-trends",
"cli/reference/remove-defjob",
- "cli/reference/set-min-bid",
"cli/reference/schedule-maint",
- "cli/reference/cancel-maint",
- "cli/reference/show-maints",
- "cli/reference/unlist-machine",
- "cli/reference/defrag-machines",
"cli/reference/self-test-machine",
- "cli/reference/metrics-gpu",
- "cli/reference/metrics-gpu-trends",
- "cli/reference/metrics-gpu-locations"
+ "cli/reference/set-defjob",
+ "cli/reference/set-min-bid",
+ "cli/reference/show-machine",
+ "cli/reference/show-machines",
+ "cli/reference/show-maints",
+ "cli/reference/unlist-machine"
]
}
]
@@ -386,106 +408,125 @@
"group": "Accounts",
"pages": [
"sdk/python/reference/create-api-key",
+ "sdk/python/reference/create-env-var",
+ "sdk/python/reference/create-scheduled-job",
+ "sdk/python/reference/create-ssh-key",
+ "sdk/python/reference/create-subaccount",
"sdk/python/reference/delete-api-key",
+ "sdk/python/reference/delete-env-var",
+ "sdk/python/reference/delete-ssh-key",
"sdk/python/reference/reset-api-key",
- "sdk/python/reference/show-api-key",
- "sdk/python/reference/show-api-keys",
"sdk/python/reference/set-api-key",
- "sdk/python/reference/create-ssh-key",
- "sdk/python/reference/delete-ssh-key",
- "sdk/python/reference/show-ssh-keys",
- "sdk/python/reference/update-ssh-key",
- "sdk/python/reference/create-env-var",
- "sdk/python/reference/show-env-vars",
- "sdk/python/reference/update-env-var",
- "sdk/python/reference/delete-env-var",
- "sdk/python/reference/show-user",
"sdk/python/reference/set-user",
- "sdk/python/reference/create-subaccount",
- "sdk/python/reference/show-subaccounts",
+ "sdk/python/reference/show-api-key",
+ "sdk/python/reference/show-api-keys",
+ "sdk/python/reference/show-audit-logs",
"sdk/python/reference/show-connections",
+ "sdk/python/reference/show-env-vars",
"sdk/python/reference/show-ipaddrs",
- "sdk/python/reference/show-audit-logs"
+ "sdk/python/reference/show-ssh-keys",
+ "sdk/python/reference/show-subaccounts",
+ "sdk/python/reference/show-user",
+ "sdk/python/reference/tfa-activate",
+ "sdk/python/reference/tfa-delete",
+ "sdk/python/reference/tfa-login",
+ "sdk/python/reference/tfa-regen-codes",
+ "sdk/python/reference/tfa-resend-sms",
+ "sdk/python/reference/tfa-send-sms",
+ "sdk/python/reference/tfa-status",
+ "sdk/python/reference/tfa-totp-setup",
+ "sdk/python/reference/tfa-update",
+ "sdk/python/reference/update-env-var",
+ "sdk/python/reference/update-scheduled-job",
+ "sdk/python/reference/update-ssh-key"
]
},
{
"group": "Billing",
"pages": [
+ "sdk/python/reference/fetch-contracts",
+ "sdk/python/reference/generate-pdf-invoices",
+ "sdk/python/reference/reports",
"sdk/python/reference/show-deposit",
"sdk/python/reference/show-earnings",
"sdk/python/reference/show-invoices",
"sdk/python/reference/show-invoices-v1",
- "sdk/python/reference/generate-pdf-invoices",
- "sdk/python/reference/transfer-credit",
- "sdk/python/reference/reports"
+ "sdk/python/reference/transfer-credit"
]
},
{
"group": "Instances",
"pages": [
+ "sdk/python/reference/accept-price-increase",
+ "sdk/python/reference/attach-ssh",
+ "sdk/python/reference/cancel-copy",
+ "sdk/python/reference/cancel-sync",
+ "sdk/python/reference/change-bid",
+ "sdk/python/reference/cloud-copy",
+ "sdk/python/reference/copy",
"sdk/python/reference/create-instance",
"sdk/python/reference/create-instances",
- "sdk/python/reference/launch-instance",
- "sdk/python/reference/start-instance",
- "sdk/python/reference/start-instances",
- "sdk/python/reference/stop-instance",
- "sdk/python/reference/stop-instances",
- "sdk/python/reference/reboot-instance",
- "sdk/python/reference/recycle-instance",
"sdk/python/reference/destroy-instance",
"sdk/python/reference/destroy-instances",
+ "sdk/python/reference/detach-ssh",
+ "sdk/python/reference/execute",
"sdk/python/reference/label-instance",
+ "sdk/python/reference/launch-instance",
+ "sdk/python/reference/logs",
"sdk/python/reference/prepay-instance",
- "sdk/python/reference/update-instance",
+ "sdk/python/reference/reboot-instance",
+ "sdk/python/reference/recycle-instance",
+ "sdk/python/reference/reject-price-increase",
+ "sdk/python/reference/scp-url",
"sdk/python/reference/show-instance",
+ "sdk/python/reference/show-instance-filters",
"sdk/python/reference/show-instances",
"sdk/python/reference/show-instances-v1",
- "sdk/python/reference/change-bid",
- "sdk/python/reference/logs",
- "sdk/python/reference/execute",
- "sdk/python/reference/attach-ssh",
- "sdk/python/reference/detach-ssh",
+ "sdk/python/reference/show-pending-price-increases",
"sdk/python/reference/ssh-url",
- "sdk/python/reference/scp-url",
- "sdk/python/reference/copy",
- "sdk/python/reference/cloud-copy",
- "sdk/python/reference/cancel-copy",
- "sdk/python/reference/cancel-sync"
+ "sdk/python/reference/start-instance",
+ "sdk/python/reference/start-instances",
+ "sdk/python/reference/stop-instance",
+ "sdk/python/reference/stop-instances",
+ "sdk/python/reference/take-snapshot",
+ "sdk/python/reference/update-instance"
]
},
{
"group": "Search & templates",
"pages": [
- "sdk/python/reference/search-offers",
+ "sdk/python/reference/create-template",
+ "sdk/python/reference/delete-template",
"sdk/python/reference/search-benchmarks",
"sdk/python/reference/search-invoices",
+ "sdk/python/reference/search-offers",
+ "sdk/python/reference/search-offers-new",
"sdk/python/reference/search-templates",
"sdk/python/reference/search-volumes",
- "sdk/python/reference/create-template",
- "sdk/python/reference/update-template",
- "sdk/python/reference/delete-template"
+ "sdk/python/reference/update-template"
]
},
{
"group": "Serverless",
"pages": [
"sdk/python/reference/create-endpoint",
- "sdk/python/reference/update-endpoint",
- "sdk/python/reference/delete-endpoint",
- "sdk/python/reference/show-endpoints",
"sdk/python/reference/create-workergroup",
- "sdk/python/reference/update-workergroup",
- "sdk/python/reference/update-workers",
+ "sdk/python/reference/delete-deployment",
+ "sdk/python/reference/delete-endpoint",
+ "sdk/python/reference/delete-scheduled-job",
"sdk/python/reference/delete-workergroup",
- "sdk/python/reference/show-workergroups",
+ "sdk/python/reference/get-endpoint-workers",
"sdk/python/reference/get-endpt-logs",
"sdk/python/reference/get-wrkgrp-logs",
- "sdk/python/reference/show-scheduled-jobs",
- "sdk/python/reference/delete-scheduled-job",
- "sdk/python/reference/delete-deployment",
"sdk/python/reference/show-deployment",
"sdk/python/reference/show-deployment-versions",
- "sdk/python/reference/show-deployments"
+ "sdk/python/reference/show-deployments",
+ "sdk/python/reference/show-endpoints",
+ "sdk/python/reference/show-scheduled-jobs",
+ "sdk/python/reference/show-workergroups",
+ "sdk/python/reference/update-endpoint",
+ "sdk/python/reference/update-workergroup",
+ "sdk/python/reference/update-workers"
]
},
{
@@ -507,47 +548,59 @@
"group": "Teams",
"pages": [
"sdk/python/reference/create-team",
+ "sdk/python/reference/create-team-role",
"sdk/python/reference/destroy-team",
"sdk/python/reference/invite-member",
+ "sdk/python/reference/invite-team-member",
"sdk/python/reference/remove-member",
+ "sdk/python/reference/remove-team-member",
+ "sdk/python/reference/remove-team-role",
"sdk/python/reference/show-members",
- "sdk/python/reference/create-team-role",
+ "sdk/python/reference/show-team-members",
"sdk/python/reference/show-team-role",
"sdk/python/reference/show-team-roles",
- "sdk/python/reference/update-team-role",
- "sdk/python/reference/remove-team-role"
+ "sdk/python/reference/update-team-role"
]
},
{
"group": "Volumes",
"pages": [
- "sdk/python/reference/create-volume",
"sdk/python/reference/clone-volume",
+ "sdk/python/reference/create-volume",
+ "sdk/python/reference/delete-volume",
"sdk/python/reference/list-volume",
"sdk/python/reference/list-volumes",
"sdk/python/reference/show-volumes",
- "sdk/python/reference/unlist-volume",
- "sdk/python/reference/delete-volume"
+ "sdk/python/reference/unlist-volume"
]
},
{
"group": "Host",
"pages": [
+ "sdk/python/reference/cancel-maint",
"sdk/python/reference/cleanup-machine",
+ "sdk/python/reference/create-cluster",
+ "sdk/python/reference/create-overlay",
+ "sdk/python/reference/defrag-machines",
+ "sdk/python/reference/delete-cluster",
"sdk/python/reference/delete-machine",
+ "sdk/python/reference/delete-overlay",
+ "sdk/python/reference/join-cluster",
+ "sdk/python/reference/join-overlay",
"sdk/python/reference/list-machine",
"sdk/python/reference/list-machines",
- "sdk/python/reference/show-machine",
- "sdk/python/reference/show-machines",
- "sdk/python/reference/set-defjob",
"sdk/python/reference/remove-defjob",
- "sdk/python/reference/set-min-bid",
+ "sdk/python/reference/remove-machine-from-cluster",
"sdk/python/reference/schedule-maint",
- "sdk/python/reference/cancel-maint",
+ "sdk/python/reference/self-test-machine",
+ "sdk/python/reference/set-defjob",
+ "sdk/python/reference/set-min-bid",
+ "sdk/python/reference/show-clusters",
+ "sdk/python/reference/show-machine",
+ "sdk/python/reference/show-machines",
"sdk/python/reference/show-maints",
- "sdk/python/reference/unlist-machine",
- "sdk/python/reference/defrag-machines",
- "sdk/python/reference/self-test-machine"
+ "sdk/python/reference/show-overlays",
+ "sdk/python/reference/unlist-machine"
]
}
]
diff --git a/sdk/python/reference/accept-price-increase.mdx b/sdk/python/reference/accept-price-increase.mdx
new file mode 100644
index 0000000..944f632
--- /dev/null
+++ b/sdk/python/reference/accept-price-increase.mdx
@@ -0,0 +1,34 @@
+---
+title: "VastAI.accept_price_increase"
+sidebarTitle: "accept_price_increase"
+---
+
+Accept the pending price increase on ``instance_id``.
+
+## Signature
+
+```python
+VastAI.accept_price_increase(
+ instance_id: int
+) -> dict
+```
+
+## Parameters
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.accept_price_increase(instance_id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/attach-ssh.mdx b/sdk/python/reference/attach-ssh.mdx
index d865b88..1be0853 100644
--- a/sdk/python/reference/attach-ssh.mdx
+++ b/sdk/python/reference/attach-ssh.mdx
@@ -8,22 +8,25 @@ Attach an SSH key to an instance.
## Signature
```python
-VastAI.attach_ssh(instance_id: int, ssh_key: str) -> str
+VastAI.attach_ssh(
+ instance_id: int,
+ ssh_key: str
+) -> dict
```
## Parameters
- instance_id
+ id of instance to attach to
- ssh_key
+ ssh key to attach to instance
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.attach_ssh(instance_id: int, ssh_key: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.attach_ssh(instance_id=12345, ssh_key="...")
+result = client.attach_ssh(instance_id=12345, ssh_key="value")
print(result)
```
diff --git a/sdk/python/reference/cancel-copy.mdx b/sdk/python/reference/cancel-copy.mdx
index 8cb229d..664be0a 100644
--- a/sdk/python/reference/cancel-copy.mdx
+++ b/sdk/python/reference/cancel-copy.mdx
@@ -8,18 +8,20 @@ Cancel a file copy operation.
## Signature
```python
-VastAI.cancel_copy(dst: str) -> str
+VastAI.cancel_copy(
+ dst_id: Any
+) -> dict
```
## Parameters
-
- dst
+
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.cancel_copy(dst: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.cancel_copy(dst="...")
+result = client.cancel_copy(dst_id="value")
print(result)
```
diff --git a/sdk/python/reference/cancel-maint.mdx b/sdk/python/reference/cancel-maint.mdx
index 420c122..b1ce089 100644
--- a/sdk/python/reference/cancel-maint.mdx
+++ b/sdk/python/reference/cancel-maint.mdx
@@ -3,6 +3,32 @@ title: "VastAI.cancel_maint"
sidebarTitle: "cancel_maint"
---
-import CancelMaintSDK from '/snippets/host/sdk/cancel-maint.mdx';
+Cancel scheduled maintenance for a machine.
-
+## Signature
+
+```python
+VastAI.cancel_maint(
+ id: int
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to cancel maintenance(s) for
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.cancel_maint(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/cancel-sync.mdx b/sdk/python/reference/cancel-sync.mdx
index 8bb4878..c6ceeea 100644
--- a/sdk/python/reference/cancel-sync.mdx
+++ b/sdk/python/reference/cancel-sync.mdx
@@ -8,18 +8,20 @@ Cancel a file sync operation.
## Signature
```python
-VastAI.cancel_sync(dst: str) -> str
+VastAI.cancel_sync(
+ dst_id: Any
+) -> dict
```
## Parameters
-
- dst
+
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.cancel_sync(dst: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.cancel_sync(dst="...")
+result = client.cancel_sync(dst_id="value")
print(result)
```
diff --git a/sdk/python/reference/change-bid.mdx b/sdk/python/reference/change-bid.mdx
index da71563..db730f9 100644
--- a/sdk/python/reference/change-bid.mdx
+++ b/sdk/python/reference/change-bid.mdx
@@ -3,27 +3,30 @@ title: "VastAI.change_bid"
sidebarTitle: "change_bid"
---
-Change the bid price for a machine.
+Change the bid price for an instance.
## Signature
```python
-VastAI.change_bid(id: int, price: Optional[float] = None) -> str
+VastAI.change_bid(
+ id: int,
+ price: Optional[float] = None
+) -> dict
```
## Parameters
- id
+ id of instance type to change bid
- price
+ per machine bid price in $/hour
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/cleanup-machine.mdx b/sdk/python/reference/cleanup-machine.mdx
index 90b8fc6..2c1825a 100644
--- a/sdk/python/reference/cleanup-machine.mdx
+++ b/sdk/python/reference/cleanup-machine.mdx
@@ -3,6 +3,32 @@ title: "VastAI.cleanup_machine"
sidebarTitle: "cleanup_machine"
---
-import CleanupMachineSDK from '/snippets/host/sdk/cleanup-machine.mdx';
+Clean up a machine's configuration and resources.
-
+## Signature
+
+```python
+VastAI.cleanup_machine(
+ id: int
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to cleanup
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.cleanup_machine(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/clone-volume.mdx b/sdk/python/reference/clone-volume.mdx
index 8e5df94..d06115d 100644
--- a/sdk/python/reference/clone-volume.mdx
+++ b/sdk/python/reference/clone-volume.mdx
@@ -3,7 +3,7 @@ title: "VastAI.clone_volume"
sidebarTitle: "clone_volume"
---
-Clone an existing volume to create a new volume with optional size increase.
+Clone an existing volume.
## Signature
@@ -13,30 +13,30 @@ VastAI.clone_volume(
dest: int,
size: Optional[float] = None,
disable_compression: bool = False
-) -> str
+) -> dict
```
## Parameters
- source
+ id of volume contract being cloned
- dest
+ id of volume offer volume is being copied to
- size
+ Size of new volume contract, in GB. Must be greater than or equal to the source volume, and less than or equal to the destination offer.
-
- disable_compression
+
+ Do not compress volume data before copying.
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/cloud-copy.mdx b/sdk/python/reference/cloud-copy.mdx
index fe87d91..b26891b 100644
--- a/sdk/python/reference/cloud-copy.mdx
+++ b/sdk/python/reference/cloud-copy.mdx
@@ -10,38 +10,88 @@ Copy files between cloud and instance.
```python
VastAI.cloud_copy(
src: Optional[str] = None,
- dst: Optional[str] = "/workspace",
+ dst: Optional[str] = '/workspace',
instance: Optional[str] = None,
connection: Optional[str] = None,
- transfer: str = "Instance to Cloud"
-) -> str
+ transfer: Optional[str] = 'Instance to Cloud',
+ dry_run: bool = False,
+ size_only: bool = False,
+ ignore_existing: bool = False,
+ update: bool = False,
+ delete_excluded: bool = False,
+ schedule: Optional[str] = None,
+ start_date: Optional[str] = '2026-06-23',
+ end_date: Optional[str] = None,
+ day: Optional[parse_day_cron_style] = 0,
+ hour: Optional[parse_hour_cron_style] = 0
+) -> dict
```
## Parameters
- src
+ path to source of object to copy
-
- dst
+
+ path to target of copy operation
- instance
+ id of the instance
- connection
+ id of cloud connection on your account (get from calling 'vastai show connections')
-
- transfer
+
+ type of transfer, possible options include Instance To Cloud and Cloud To Instance
+
+
+
+ show what would have been transferred
+
+
+
+ skip based on size only, not mod-time or checksum
+
+
+
+ skip all files that exist on destination
+
+
+
+ skip files that are newer on the destination
+
+
+
+ delete files on dest excluded from transfer
+
+
+
+ try to schedule a command to run hourly, daily, or weekly. Valid values are HOURLY, DAILY, WEEKLY For ex. --schedule DAILY
+
+
+
+ Start date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is now. (optional)
+
+
+
+ End date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is contract's end. (optional)
+
+
+
+ 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 of day you want scheduled job to run on (0-23) or "*" (UTC). Default will be 0. For ex. --hour 16
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/copy.mdx b/sdk/python/reference/copy.mdx
index 8ececc9..2dab53a 100644
--- a/sdk/python/reference/copy.mdx
+++ b/sdk/python/reference/copy.mdx
@@ -8,26 +8,25 @@ Copy files between instances.
## Signature
```python
-VastAI.copy(src: str, dst: str, identity: Optional[str] = None) -> str
+VastAI.copy(
+ src: str,
+ dst: str
+) -> dict
```
## Parameters
- src
+ Source location for copy operation (supports multiple formats)
- dst
-
-
-
- identity
+ Target location for copy operation (supports multiple formats)
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -35,6 +34,6 @@ VastAI.copy(src: str, dst: str, identity: Optional[str] = None) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.copy(src="...", dst="...")
+result = client.copy(src="value", dst="value")
print(result)
```
diff --git a/sdk/python/reference/create-api-key.mdx b/sdk/python/reference/create-api-key.mdx
index e88fea8..e621ca3 100644
--- a/sdk/python/reference/create-api-key.mdx
+++ b/sdk/python/reference/create-api-key.mdx
@@ -8,26 +8,30 @@ Create a new API key.
## Signature
```python
-VastAI.create_api_key(name: Optional[str] = None, permission_file: Optional[str] = None, key_params: Optional[str] = None) -> str
+VastAI.create_api_key(
+ name: Any,
+ permissions: Any,
+ key_params: Any = None
+) -> dict
```
## Parameters
-
- name
+
+ name of the api-key
-
- permission_file
+
+
-
- key_params
+
+ optional wildcard key params for advanced keys
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -35,6 +39,6 @@ VastAI.create_api_key(name: Optional[str] = None, permission_file: Optional[str]
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_api_key()
+result = client.create_api_key(name="value", permissions="value")
print(result)
```
diff --git a/sdk/python/reference/create-cluster.mdx b/sdk/python/reference/create-cluster.mdx
index 94d9b62..e429cae 100644
--- a/sdk/python/reference/create-cluster.mdx
+++ b/sdk/python/reference/create-cluster.mdx
@@ -8,22 +8,25 @@ Create a Vast cluster.
## Signature
```python
-VastAI.create_cluster(subnet: str, manager_id: int) -> str
+VastAI.create_cluster(
+ subnet: str,
+ manager_id: int
+) -> dict
```
## Parameters
- subnet
+
- manager_id
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.create_cluster(subnet: str, manager_id: int) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_cluster(subnet="...", manager_id=12345)
+result = client.create_cluster(subnet="value", manager_id=12345)
print(result)
```
diff --git a/sdk/python/reference/create-endpoint.mdx b/sdk/python/reference/create-endpoint.mdx
index 7233207..adb4650 100644
--- a/sdk/python/reference/create-endpoint.mdx
+++ b/sdk/python/reference/create-endpoint.mdx
@@ -3,50 +3,70 @@ title: "VastAI.create_endpoint"
sidebarTitle: "create_endpoint"
---
-Create a new serverless endpoint group.
+Create a new serverless endpoint.
## Signature
```python
VastAI.create_endpoint(
- min_load: float = 0.0,
- target_util: float = 0.9,
- cold_mult: float = 2.5,
- cold_workers: int = 5,
- max_workers: int = 20,
- endpoint_name: Optional[str] = None
-) -> str
+ min_load: Optional[float] = 0.0,
+ min_cold_load: Optional[float] = 0.0,
+ target_util: Optional[float] = 0.9,
+ cold_mult: Optional[float] = 2.5,
+ cold_workers: Optional[int] = 5,
+ max_workers: Optional[int] = 20,
+ endpoint_name: Optional[str] = None,
+ max_queue_time: Optional[float] = None,
+ target_queue_time: Optional[float] = None,
+ inactivity_timeout: Optional[int] = None
+) -> dict
```
## Parameters
-
- Minimum load (requests/sec) below which idle workers are scaled down.
+
+ minimum floor load in perf units/s (token/s for LLms)
-
- Target worker utilization ratio (0.0-1.0); workers are added to stay at this level.
+
+ minimum floor load in perf units/s (token/s for LLms), but allow handling with cold workers
-
- Multiplier applied to warm worker count for pre-warming cold workers.
+
+ target capacity utilization (fraction, max 1.0, default 0.9)
-
- Number of pre-warmed (cold) workers to keep ready.
+
+ cold/stopped instance capacity target as multiple of hot capacity target (default 2.5)
-
- Maximum number of workers allowed in this endpoint.
+
+ min number of workers to keep 'cold' when you have no load (default 5)
+
+
+
+ max number of workers your endpoint group can have (default 20)
- Human-readable name for the endpoint.
+ deployment endpoint name (allows multiple autoscale groups to share same deployment endpoint)
+
+
+
+ maximum seconds requests may be queued on each worker (default 30.0)
+
+
+
+ target seconds for the queue to be cleared (default 10.0)
+
+
+
+ seconds of no traffic before the endpoint can scale to zero active workers
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/create-env-var.mdx b/sdk/python/reference/create-env-var.mdx
index 234a556..deab4f1 100644
--- a/sdk/python/reference/create-env-var.mdx
+++ b/sdk/python/reference/create-env-var.mdx
@@ -8,22 +8,25 @@ Create a new user environment variable.
## Signature
```python
-VastAI.create_env_var(name: str, value: str) -> str
+VastAI.create_env_var(
+ name: str,
+ value: str
+) -> dict
```
## Parameters
- name
+ Environment variable name
- value
+ Environment variable value
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.create_env_var(name: str, value: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_env_var(name="...", value="...")
+result = client.create_env_var(name="value", value="value")
print(result)
```
diff --git a/sdk/python/reference/create-instance.mdx b/sdk/python/reference/create-instance.mdx
index cd9ab58..e384cc0 100644
--- a/sdk/python/reference/create-instance.mdx
+++ b/sdk/python/reference/create-instance.mdx
@@ -10,9 +10,10 @@ Create a new instance from a contract offer ID.
```python
VastAI.create_instance(
id: int,
- price: Optional[float] = None,
- disk: Optional[float] = 10,
image: Optional[str] = None,
+ disk: float = 10,
+ template_hash: Optional[str] = None,
+ user: Optional[str] = None,
login: Optional[str] = None,
label: Optional[str] = None,
onstart: Optional[str] = None,
@@ -25,108 +26,132 @@ VastAI.create_instance(
jupyter_lab: bool = False,
lang_utf8: bool = False,
python_utf8: bool = False,
- extra: Optional[str] = None,
env: Optional[str] = None,
- args: Optional[List[str]] = None,
+ args: Optional[str] = None,
force: bool = False,
cancel_unavail: bool = False,
- template_hash: Optional[str] = None
-) -> str
+ bid_price: Optional[float] = None,
+ create_volume: Optional[int] = None,
+ link_volume: Optional[int] = None,
+ volume_size: Optional[int] = None,
+ mount_path: Optional[str] = None,
+ volume_label: Optional[str] = None
+) -> dict
```
## Parameters
- ID of the offer/contract to create the instance from (returned by search_offers).
+ id of instance type to launch (returned from search offers)
-
- (OPTIONAL) Per-machine bid price in $/hour for interruptible (spot) instances.
+
+ docker container image to launch
-
- Disk space to allocate in GB.
+
+ size of local disk partition in GB
-
- Docker image name to use for the instance.
+
+ 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.
- Docker login credentials for private registry authentication.
+ docker login arguments for private repo authentication, surround with ''
- Label to attach to the instance.
+ label to set on the instance
- Filename of an onstart script to run on instance start.
+ filename to use as onstart script
- Shell command to run on instance start.
+ contents of onstart script as single argument
- Override the Docker image entrypoint.
+ override entrypoint for args launch instance
-
- Enable SSH access to the instance.
+
+ Launch as an ssh instance type
-
- Enable Jupyter notebook server.
+
+ Launch as a jupyter instance instead of an ssh instance
-
- Enable direct (peer-to-peer) connections.
+
+ Use (faster) direct connections for jupyter & ssh
- Directory to serve Jupyter from.
+ For runtype 'jupyter', directory in instance to use to launch jupyter. Defaults to image's working directory
-
- Enable JupyterLab instead of classic Jupyter.
+
+ For runtype 'jupyter', Launch instance with jupyter lab
-
- Set system language encoding to UTF-8.
+
+ Workaround for images with locale problems: install and generate locales before instance launch, and set locale to C.UTF-8
-
- Set Python I/O encoding to UTF-8.
+
+ Workaround for images with locale problems: set python's locale to C.UTF-8
-
- Extra Docker run arguments passed verbatim.
+
+ env variables and port mapping options, surround with ''
-
- Environment variables to set (formatted as Docker -e flags).
+
+ list of arguments passed to container ENTRYPOINT. Onstart is recommended for this purpose. (must be last argument)
-
- Additional positional arguments.
+
+ Skip sanity checks when creating from an existing instance
-
- Skip sanity checks when creating from an existing instance.
+
+ Return error if scheduling fails (rather than creating a stopped instance)
-
- Return an error if scheduling fails rather than creating a stopped instance.
+
+ (OPTIONAL) create an INTERRUPTIBLE instance with per machine bid price in $/hour
-
- Hash of an instance template to use for configuration.
+
+ 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
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/create-instances.mdx b/sdk/python/reference/create-instances.mdx
index 70c274c..7830651 100644
--- a/sdk/python/reference/create-instances.mdx
+++ b/sdk/python/reference/create-instances.mdx
@@ -12,7 +12,7 @@ VastAI.create_instances(
ids: List[int],
template_hash: Optional[str] = None,
user: Optional[str] = None,
- disk: float = 10,
+ disk: Optional[float] = 10,
image: Optional[str] = None,
login: Optional[str] = None,
label: Optional[str] = None,
@@ -26,9 +26,8 @@ VastAI.create_instances(
jupyter_lab: bool = False,
lang_utf8: bool = False,
python_utf8: bool = False,
- extra: Optional[str] = None,
env: Optional[str] = None,
- args: Optional[List[str]] = None,
+ args: Optional[str] = None,
force: bool = False,
cancel_unavail: bool = False,
bid_price: Optional[float] = None,
@@ -37,126 +36,122 @@ VastAI.create_instances(
volume_size: Optional[int] = None,
mount_path: Optional[str] = None,
volume_label: Optional[str] = None
-) -> str
+) -> dict
```
## Parameters
- List of offer/contract IDs to create instances from.
+ ids of instance types to launch (returned from search offers)
- Hash of the instance template to use.
+ Create instance from template info
- Subaccount username to create the instances under.
+ User to use with docker create. This breaks some images, so only use this if you are certain you need it.
-
- Disk space to allocate in GB.
+
+ size of local disk partition in GB
- Docker image name to use for the instance.
+ docker container image to launch
- Docker login credentials for private registry authentication.
+ docker login arguments for private repo authentication, surround with ''
- Label to attach to the instances.
+ label to set on the instance
- Filename of an onstart script to run on instance start.
+ filename to use as onstart script
- Shell command to run on instance start.
+ contents of onstart script as single argument
- Override the Docker image entrypoint.
+ override entrypoint for args launch instance
-
- Enable SSH access to the instances.
+
+ Launch as an ssh instance type
-
- Enable Jupyter notebook server.
+
+ Launch as a jupyter instance instead of an ssh instance
-
- Enable direct (peer-to-peer) connections.
+
+ Use (faster) direct connections for jupyter & ssh
- Directory to serve Jupyter from.
+ For runtype 'jupyter', directory in instance to use to launch jupyter. Defaults to image's working directory
-
- Enable JupyterLab instead of classic Jupyter.
+
+ For runtype 'jupyter', Launch instance with jupyter lab
-
- Set system language encoding to UTF-8.
+
+ Workaround for images with locale problems: install and generate locales before instance launch, and set locale to C.UTF-8
-
- Set Python I/O encoding to UTF-8.
-
-
-
- Extra Docker run arguments passed verbatim.
+
+ Workaround for images with locale problems: set python's locale to C.UTF-8
- Environment variables to set (formatted as Docker -e flags).
+ env variables and port mapping options, surround with ''
-
- Additional positional arguments.
+
+ 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.
+
+ Skip sanity checks when creating from an existing instance
-
- Return an error if scheduling fails rather than creating a stopped instance.
+
+ Return error if scheduling fails (rather than creating a stopped instance)
- Per-machine bid price in $/hour for interruptible (spot) instances.
+ (OPTIONAL) create an INTERRUPTIBLE instance with per machine bid price in $/hour
- Offer ID from "search volumes" to create a new local volume linked to each instance.
+ 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 each 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 GiB.
+ Size of the volume to create in GB. Only usable with --create-volume (default 15GB)
- Filesystem path inside the instance where the volume is mounted.
+ The path to the volume from within the new instance container. e.g. /root/volume
- Label to attach to the created volume.
+ (optional) A name to give the new volume. Only usable with --create-volume
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -164,6 +159,6 @@ VastAI.create_instances(
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_instances(ids=[12345])
+result = client.create_instances(ids=12345)
print(result)
```
diff --git a/sdk/python/reference/create-overlay.mdx b/sdk/python/reference/create-overlay.mdx
index 46a8f14..000a463 100644
--- a/sdk/python/reference/create-overlay.mdx
+++ b/sdk/python/reference/create-overlay.mdx
@@ -3,27 +3,30 @@ title: "VastAI.create_overlay"
sidebarTitle: "create_overlay"
---
-Create an overlay network on top of a physical cluster.
+Create an overlay network on a physical cluster.
## Signature
```python
-VastAI.create_overlay(cluster_id: int, name: str) -> str
+VastAI.create_overlay(
+ cluster_id: int,
+ name: str
+) -> dict
```
## Parameters
- cluster_id
+
- name
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.create_overlay(cluster_id: int, name: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_overlay(cluster_id=12345, name="...")
+result = client.create_overlay(cluster_id=12345, name="value")
print(result)
```
diff --git a/sdk/python/reference/create-scheduled-job.mdx b/sdk/python/reference/create-scheduled-job.mdx
new file mode 100644
index 0000000..ec8bcc5
--- /dev/null
+++ b/sdk/python/reference/create-scheduled-job.mdx
@@ -0,0 +1,64 @@
+---
+title: "VastAI.create_scheduled_job"
+sidebarTitle: "create_scheduled_job"
+---
+
+Create a new scheduled job.
+
+## Signature
+
+```python
+VastAI.create_scheduled_job(
+ start_time: Any,
+ end_time: Any,
+ api_endpoint: Any,
+ request_method: Any,
+ request_body: Any,
+ frequency: Any,
+ instance_id: Any
+) -> dict
+```
+
+## Parameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.create_scheduled_job(start_time="value", end_time="value", api_endpoint="value", request_method="value", request_body="value", frequency="value", instance_id="value")
+print(result)
+```
diff --git a/sdk/python/reference/create-ssh-key.mdx b/sdk/python/reference/create-ssh-key.mdx
index fcc71b8..b5f68e7 100644
--- a/sdk/python/reference/create-ssh-key.mdx
+++ b/sdk/python/reference/create-ssh-key.mdx
@@ -8,18 +8,20 @@ Create a new SSH key.
## Signature
```python
-VastAI.create_ssh_key(ssh_key: str) -> str
+VastAI.create_ssh_key(
+ ssh_key: Optional[str] = None
+) -> dict
```
## Parameters
-
- ssh_key
+
+ add your existing ssh public key to your account (from the .pub file). If no public key is provided, a new key pair will be generated.
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.create_ssh_key(ssh_key: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_ssh_key(ssh_key="...")
+result = client.create_ssh_key()
print(result)
```
diff --git a/sdk/python/reference/create-subaccount.mdx b/sdk/python/reference/create-subaccount.mdx
index 3c33d1b..08f3f97 100644
--- a/sdk/python/reference/create-subaccount.mdx
+++ b/sdk/python/reference/create-subaccount.mdx
@@ -3,40 +3,40 @@ title: "VastAI.create_subaccount"
sidebarTitle: "create_subaccount"
---
-Create a new subaccount under the current account.
+Create a new subaccount.
## Signature
```python
VastAI.create_subaccount(
- email: Optional[str] = None,
- username: Optional[str] = None,
- password: Optional[str] = None,
+ email: str,
+ username: str,
+ password: str,
type: Optional[str] = None
-) -> str
+) -> dict
```
## Parameters
-
- Email address for the new subaccount.
+
+ email address to use for login
-
- Username for the new subaccount.
+
+ username to use for login
-
- Password for the new subaccount.
+
+ password to use for login
- Account type for the subaccount.
+ host/client
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -44,6 +44,6 @@ VastAI.create_subaccount(
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_subaccount()
+result = client.create_subaccount(email="value", username="value", password="value")
print(result)
```
diff --git a/sdk/python/reference/create-team-role.mdx b/sdk/python/reference/create-team-role.mdx
index 8ace99b..75b9d33 100644
--- a/sdk/python/reference/create-team-role.mdx
+++ b/sdk/python/reference/create-team-role.mdx
@@ -8,22 +8,25 @@ Create a new team role.
## Signature
```python
-VastAI.create_team_role(name: Optional[str] = None, permissions: Optional[str] = None) -> str
+VastAI.create_team_role(
+ name: str,
+ permissions: Any
+) -> dict
```
## Parameters
-
- name
+
+ name of the role
-
- permissions
+
+ file path for json encoded permissions, look in the docs for more information
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.create_team_role(name: Optional[str] = None, permissions: Optional[str] =
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_team_role()
+result = client.create_team_role(name="value", permissions="value")
print(result)
```
diff --git a/sdk/python/reference/create-team.mdx b/sdk/python/reference/create-team.mdx
index 3bd7cf5..9c4274d 100644
--- a/sdk/python/reference/create-team.mdx
+++ b/sdk/python/reference/create-team.mdx
@@ -8,18 +8,20 @@ Create a new team.
## Signature
```python
-VastAI.create_team(team_name: Optional[str] = None) -> str
+VastAI.create_team(
+ team_name: str
+) -> dict
```
## Parameters
-
- team_name
+
+ name of the team
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.create_team(team_name: Optional[str] = None) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.create_team()
+result = client.create_team(team_name="value")
print(result)
```
diff --git a/sdk/python/reference/create-template.mdx b/sdk/python/reference/create-template.mdx
index abbd733..b00ef64 100644
--- a/sdk/python/reference/create-template.mdx
+++ b/sdk/python/reference/create-template.mdx
@@ -12,6 +12,8 @@ VastAI.create_template(
name: Optional[str] = None,
image: Optional[str] = None,
image_tag: Optional[str] = None,
+ href: Optional[str] = None,
+ repo: Optional[str] = None,
login: Optional[str] = None,
env: Optional[str] = None,
ssh: bool = False,
@@ -21,67 +23,100 @@ VastAI.create_template(
jupyter_lab: bool = False,
onstart_cmd: Optional[str] = None,
search_params: Optional[str] = None,
- disk_space: Optional[str] = None
-) -> str
+ no_default: bool = False,
+ disk_space: Optional[str] = None,
+ readme: Optional[str] = None,
+ hide_readme: bool = False,
+ desc: Optional[str] = None,
+ public: bool = False
+) -> dict
```
## Parameters
- name
+ name of the template
- image
+ docker container image to launch
- image_tag
+ docker image tag
+
+
+
+ link you want to provide
+
+
+
+ link to repository
- login
+ docker login arguments for private repo authentication, surround with ''
- env
+ Contents of the 'Docker options' field
-
- ssh
+
+ Launch as an ssh instance type
-
- jupyter
+
+ Launch as a jupyter instance instead of an ssh instance
-
- direct
+
+ Use (faster) direct connections for jupyter & ssh
- jupyter_dir
+ For runtype 'jupyter', directory in instance to use to launch jupyter
-
- jupyter_lab
+
+ For runtype 'jupyter', Launch instance with jupyter lab
- onstart_cmd
+ contents of onstart script as single argument
- search_params
+ search offers filters
+
+
+
+ Disable default search param query args
- disk_space
+ disk storage space, in GB
+
+
+
+ readme string
+
+
+
+ hide the readme from users
+
+
+
+ description string
+
+
+
+ make template available to public
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/create-volume.mdx b/sdk/python/reference/create-volume.mdx
index f3688b5..5d7e5c8 100644
--- a/sdk/python/reference/create-volume.mdx
+++ b/sdk/python/reference/create-volume.mdx
@@ -8,26 +8,30 @@ Create a new volume from an offer ID.
## Signature
```python
-VastAI.create_volume(id: int, size: float = 15, name: Optional[str] = None) -> str
+VastAI.create_volume(
+ id: int,
+ size: float = 15,
+ name: Optional[str] = None
+) -> dict
```
## Parameters
- id
+ id of volume offer
- size
+ size in GB of volume. Default %(default)s GB.
- name
+ Optional name of volume.
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/create-workergroup.mdx b/sdk/python/reference/create-workergroup.mdx
index b654710..1433091 100644
--- a/sdk/python/reference/create-workergroup.mdx
+++ b/sdk/python/reference/create-workergroup.mdx
@@ -15,73 +15,73 @@ VastAI.create_workergroup(
launch_args: Optional[str] = None,
endpoint_name: Optional[str] = None,
endpoint_id: Optional[int] = None,
- test_workers: int = 3,
+ test_workers: Optional[int] = 3,
gpu_ram: Optional[float] = None,
search_params: Optional[str] = None,
min_load: Optional[float] = None,
target_util: Optional[float] = None,
cold_mult: Optional[float] = None,
cold_workers: Optional[int] = None
-) -> str
+) -> dict
```
## Parameters
- Hash of the instance template to use for workers.
+ template hash (required, but **Note**: if you use this field, you can skip search_params, as they are automatically inferred from the template)
- ID of the instance template to use for workers.
+ template id (optional)
-
- Disable the default search query filters when finding offers.
+
+ Disable default search param query args
- Additional CLI arguments passed when launching worker instances.
+ launch args string for create instance ex: "--onstart onstart_wget.sh --env '-e ONSTART_PATH=https://s3.amazonaws.com/vast.ai/onstart_OOBA.sh' --image atinoda/text-generation-webui:default-nightly --disk 64"
- Human-readable name for the endpoint this group belongs to.
+ deployment endpoint name (allows multiple workergroups to share same deployment endpoint)
- ID of the endpoint this worker group belongs to.
+ deployment endpoint id (allows multiple workergroups to share same deployment endpoint)
-
- Number of test workers to spin up during initial scaling evaluation.
+
+ number of workers to create to get an performance estimate for while initializing workergroup (default 3)
- Minimum GPU RAM in GiB required per worker.
+ estimated GPU RAM req (independent of search string)
- Query string for filtering available GPU offers (e.g. "gpu_name=RTX_4090 num_gpus=1").
+ search param string for search offers ex: "gpu_ram>=23 num_gpus=2 gpu_name=RTX_4090 inet_down>200 direct_port_count>2 disk_space>=64"
- Minimum load (requests/sec) below which idle workers are scaled down.
+ [NOTE: this field isn't currently used at the workergroup level] minimum floor load in perf units/s (token/s for LLms)
- Target worker utilization ratio (0.0-1.0); workers are added to stay at this level.
+ [NOTE: this field isn't currently used at the workergroup level] target capacity utilization (fraction, max 1.0, default 0.9)
- Multiplier applied to warm worker count for pre-warming cold workers.
+ [NOTE: this field isn't currently used at the workergroup level]cold/stopped instance capacity target as multiple of hot capacity target (default 2.0)
- Number of pre-warmed (cold) workers to keep ready.
+ min number of workers to keep 'cold' for this workergroup
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/defrag-machines.mdx b/sdk/python/reference/defrag-machines.mdx
index 10b5ca8..15f2b70 100644
--- a/sdk/python/reference/defrag-machines.mdx
+++ b/sdk/python/reference/defrag-machines.mdx
@@ -3,6 +3,32 @@ title: "VastAI.defrag_machines"
sidebarTitle: "defrag_machines"
---
-import DefragMachinesSDK from '/snippets/host/sdk/defrag-machines.mdx';
+Defragment machines.
-
+## Signature
+
+```python
+VastAI.defrag_machines(
+ ids: Any
+) -> dict
+```
+
+## Parameters
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.defrag_machines(ids="value")
+print(result)
+```
diff --git a/sdk/python/reference/delete-api-key.mdx b/sdk/python/reference/delete-api-key.mdx
index eb7f251..d20d24d 100644
--- a/sdk/python/reference/delete-api-key.mdx
+++ b/sdk/python/reference/delete-api-key.mdx
@@ -8,18 +8,20 @@ Delete an API key.
## Signature
```python
-VastAI.delete_api_key(id: int) -> str
+VastAI.delete_api_key(
+ id: int
+) -> dict
```
## Parameters
- ID of the API key to delete.
+ id of apikey to remove
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/delete-cluster.mdx b/sdk/python/reference/delete-cluster.mdx
index ec918f3..95c5462 100644
--- a/sdk/python/reference/delete-cluster.mdx
+++ b/sdk/python/reference/delete-cluster.mdx
@@ -8,18 +8,20 @@ Delete a cluster.
## Signature
```python
-VastAI.delete_cluster(cluster_id: int) -> str
+VastAI.delete_cluster(
+ cluster_id: int
+) -> dict
```
## Parameters
- cluster_id
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/delete-deployment.mdx b/sdk/python/reference/delete-deployment.mdx
index 35b7bb5..258ee2b 100644
--- a/sdk/python/reference/delete-deployment.mdx
+++ b/sdk/python/reference/delete-deployment.mdx
@@ -3,31 +3,25 @@ title: "VastAI.delete_deployment"
sidebarTitle: "delete_deployment"
---
-Delete a deployment by ID or name.
+Delete a deployment.
## Signature
```python
-VastAI.delete_deployment(id: Optional[int] = None, name: Optional[str] = None, tag: Optional[str] = None) -> str
+VastAI.delete_deployment(
+ id: int
+) -> dict
```
## Parameters
-
- ID of the deployment to delete.
-
-
-
- Name of the deployment to delete (deletes all tags unless `--tag` is specified).
-
-
-
- Tag to filter by when deleting by name.
+
+ id of deployment to delete
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -35,6 +29,6 @@ VastAI.delete_deployment(id: Optional[int] = None, name: Optional[str] = None, t
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.delete_deployment()
+result = client.delete_deployment(id=12345)
print(result)
```
diff --git a/sdk/python/reference/delete-endpoint.mdx b/sdk/python/reference/delete-endpoint.mdx
index ed28692..c1d4c6d 100644
--- a/sdk/python/reference/delete-endpoint.mdx
+++ b/sdk/python/reference/delete-endpoint.mdx
@@ -3,23 +3,25 @@ title: "VastAI.delete_endpoint"
sidebarTitle: "delete_endpoint"
---
-Delete a serverless endpoint group.
+Delete a serverless endpoint.
## Signature
```python
-VastAI.delete_endpoint(id: int) -> str
+VastAI.delete_endpoint(
+ id: int
+) -> dict
```
## Parameters
- ID of the endpoint to delete.
+ id of endpoint group to delete
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/delete-env-var.mdx b/sdk/python/reference/delete-env-var.mdx
index e58e5d9..19eabec 100644
--- a/sdk/python/reference/delete-env-var.mdx
+++ b/sdk/python/reference/delete-env-var.mdx
@@ -8,18 +8,20 @@ Delete a user environment variable.
## Signature
```python
-VastAI.delete_env_var(name: str) -> str
+VastAI.delete_env_var(
+ name: str
+) -> dict
```
## Parameters
- name
+ Environment variable name to delete
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.delete_env_var(name: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.delete_env_var(name="...")
+result = client.delete_env_var(name="value")
print(result)
```
diff --git a/sdk/python/reference/delete-machine.mdx b/sdk/python/reference/delete-machine.mdx
index 7e042b4..345c8c1 100644
--- a/sdk/python/reference/delete-machine.mdx
+++ b/sdk/python/reference/delete-machine.mdx
@@ -3,6 +3,32 @@ title: "VastAI.delete_machine"
sidebarTitle: "delete_machine"
---
-import DeleteMachineSDK from '/snippets/host/sdk/delete-machine.mdx';
+Delete a machine if not being used by clients.
-
+## Signature
+
+```python
+VastAI.delete_machine(
+ id: int
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to delete
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.delete_machine(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/delete-overlay.mdx b/sdk/python/reference/delete-overlay.mdx
index f176322..991f965 100644
--- a/sdk/python/reference/delete-overlay.mdx
+++ b/sdk/python/reference/delete-overlay.mdx
@@ -8,18 +8,20 @@ Delete an overlay and remove all associated instances.
## Signature
```python
-VastAI.delete_overlay(overlay_identifier: Optional[str] = None) -> str
+VastAI.delete_overlay(
+ overlay_identifier: Optional[str] = None
+) -> dict
```
## Parameters
- overlay_identifier
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/delete-scheduled-job.mdx b/sdk/python/reference/delete-scheduled-job.mdx
index 3b91c7a..f9f6296 100644
--- a/sdk/python/reference/delete-scheduled-job.mdx
+++ b/sdk/python/reference/delete-scheduled-job.mdx
@@ -8,18 +8,20 @@ Delete a scheduled job.
## Signature
```python
-VastAI.delete_scheduled_job(id: int) -> str
+VastAI.delete_scheduled_job(
+ id: int
+) -> dict
```
## Parameters
- id
+ id of scheduled job to remove
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/delete-ssh-key.mdx b/sdk/python/reference/delete-ssh-key.mdx
index a36d724..5cfd9fa 100644
--- a/sdk/python/reference/delete-ssh-key.mdx
+++ b/sdk/python/reference/delete-ssh-key.mdx
@@ -3,23 +3,25 @@ title: "VastAI.delete_ssh_key"
sidebarTitle: "delete_ssh_key"
---
-Delete an SSH key from your account.
+Delete an SSH key.
## Signature
```python
-VastAI.delete_ssh_key(id: int) -> str
+VastAI.delete_ssh_key(
+ id: int
+) -> dict
```
## Parameters
- ID of the SSH key to delete.
+ id ssh key to delete
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/delete-template.mdx b/sdk/python/reference/delete-template.mdx
index 9908cbd..9cc2f01 100644
--- a/sdk/python/reference/delete-template.mdx
+++ b/sdk/python/reference/delete-template.mdx
@@ -3,27 +3,30 @@ title: "VastAI.delete_template"
sidebarTitle: "delete_template"
---
-Delete a template by template ID or hash ID.
+Delete a template by ID or hash.
## Signature
```python
-VastAI.delete_template(template_id: Optional[int] = None, hash_id: Optional[str] = None) -> str
+VastAI.delete_template(
+ template_id: Optional[int] = None,
+ hash_id: Optional[str] = None
+) -> dict
```
## Parameters
- template_id
+ Template ID of Template to Delete
- hash_id
+ Hash ID of Template to Delete
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/delete-volume.mdx b/sdk/python/reference/delete-volume.mdx
index 1ee0abb..8abc753 100644
--- a/sdk/python/reference/delete-volume.mdx
+++ b/sdk/python/reference/delete-volume.mdx
@@ -3,23 +3,25 @@ title: "VastAI.delete_volume"
sidebarTitle: "delete_volume"
---
-Delete a volume by ID.
+Delete a volume.
## Signature
```python
-VastAI.delete_volume(id: int) -> str
+VastAI.delete_volume(
+ id: int
+) -> dict
```
## Parameters
- id
+ id of volume contract
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/delete-workergroup.mdx b/sdk/python/reference/delete-workergroup.mdx
index 8d02e75..d9f889c 100644
--- a/sdk/python/reference/delete-workergroup.mdx
+++ b/sdk/python/reference/delete-workergroup.mdx
@@ -8,18 +8,20 @@ Delete a worker group.
## Signature
```python
-VastAI.delete_workergroup(id: int) -> str
+VastAI.delete_workergroup(
+ id: int
+) -> dict
```
## Parameters
- id
+ id of group to delete
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/destroy-instance.mdx b/sdk/python/reference/destroy-instance.mdx
index c7ba6b9..add4a65 100644
--- a/sdk/python/reference/destroy-instance.mdx
+++ b/sdk/python/reference/destroy-instance.mdx
@@ -3,23 +3,25 @@ title: "VastAI.destroy_instance"
sidebarTitle: "destroy_instance"
---
-Destroy (permanently delete) a running or stopped instance.
+Destroy an instance.
## Signature
```python
-VastAI.destroy_instance(id: int) -> str
+VastAI.destroy_instance(
+ id: int
+) -> dict
```
## Parameters
- ID of the instance to destroy.
+ id of instance to delete
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/destroy-instances.mdx b/sdk/python/reference/destroy-instances.mdx
index 31f9d2d..d4ae085 100644
--- a/sdk/python/reference/destroy-instances.mdx
+++ b/sdk/python/reference/destroy-instances.mdx
@@ -3,23 +3,25 @@ title: "VastAI.destroy_instances"
sidebarTitle: "destroy_instances"
---
-Destroy multiple instances at once.
+Destroy multiple instances.
## Signature
```python
-VastAI.destroy_instances(ids: List[int]) -> str
+VastAI.destroy_instances(
+ ids: List[int]
+) -> dict
```
## Parameters
- List of instance IDs to destroy.
+ ids of instance to destroy
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.destroy_instances(ids: List[int]) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.destroy_instances(ids=[12345])
+result = client.destroy_instances(ids=12345)
print(result)
```
diff --git a/sdk/python/reference/destroy-team.mdx b/sdk/python/reference/destroy-team.mdx
index a976cdd..2ebb2bc 100644
--- a/sdk/python/reference/destroy-team.mdx
+++ b/sdk/python/reference/destroy-team.mdx
@@ -3,17 +3,17 @@ title: "VastAI.destroy_team"
sidebarTitle: "destroy_team"
---
-Permanently delete your team and remove all members.
+Destroy the current team.
## Signature
```python
-VastAI.destroy_team() -> str
+VastAI.destroy_team() -> dict
```
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/detach-ssh.mdx b/sdk/python/reference/detach-ssh.mdx
index ca57960..71c28f6 100644
--- a/sdk/python/reference/detach-ssh.mdx
+++ b/sdk/python/reference/detach-ssh.mdx
@@ -8,22 +8,25 @@ Detach an SSH key from an instance.
## Signature
```python
-VastAI.detach_ssh(instance_id: int, ssh_key_id: str) -> str
+VastAI.detach_ssh(
+ instance_id: int,
+ ssh_key_id: str
+) -> dict
```
## Parameters
- ID of the instance to detach the SSH key from.
+ id of the instance
- ID of the SSH key to detach from the instance.
+ id of the key to detach from the instance
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.detach_ssh(instance_id: int, ssh_key_id: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.detach_ssh(instance_id=12345, ssh_key_id="...")
+result = client.detach_ssh(instance_id=12345, ssh_key_id="value")
print(result)
```
diff --git a/sdk/python/reference/execute.mdx b/sdk/python/reference/execute.mdx
index 8a1d343..1c9d1ab 100644
--- a/sdk/python/reference/execute.mdx
+++ b/sdk/python/reference/execute.mdx
@@ -8,22 +8,25 @@ Execute a command on an instance.
## Signature
```python
-VastAI.execute(id: int, COMMAND: str) -> str
+VastAI.execute(
+ id: int,
+ command: str
+) -> dict
```
## Parameters
- id
+ id of instance to execute on
-
- COMMAND
+
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.execute(id: int, COMMAND: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.execute(id=12345, COMMAND="...")
+result = client.execute(id=12345, command="value")
print(result)
```
diff --git a/sdk/python/reference/fetch-contracts.mdx b/sdk/python/reference/fetch-contracts.mdx
new file mode 100644
index 0000000..b4feec2
--- /dev/null
+++ b/sdk/python/reference/fetch-contracts.mdx
@@ -0,0 +1,39 @@
+---
+title: "VastAI.fetch_contracts"
+sidebarTitle: "fetch_contracts"
+---
+
+Fetch contracts, optionally filtered by label.
+
+## Signature
+
+```python
+VastAI.fetch_contracts(
+ label: Optional[str] = None,
+ contract_ids: Optional[list] = None
+) -> list
+```
+
+## Parameters
+
+
+
+
+
+
+
+
+
+## Returns
+
+`list`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.fetch_contracts()
+print(result)
+```
diff --git a/sdk/python/reference/generate-pdf-invoices.mdx b/sdk/python/reference/generate-pdf-invoices.mdx
index fa4b651..ad1fc80 100644
--- a/sdk/python/reference/generate-pdf-invoices.mdx
+++ b/sdk/python/reference/generate-pdf-invoices.mdx
@@ -8,40 +8,12 @@ Generate PDF invoices based on filters.
## Signature
```python
-VastAI.generate_pdf_invoices(
- quiet: bool = False,
- start_date: Optional[str] = None,
- end_date: Optional[str] = None,
- only_charges: bool = False,
- only_credits: bool = False
-) -> str
+VastAI.generate_pdf_invoices()
```
-## Parameters
-
-
- Suppress non-essential output.
-
-
-
- Start date for the invoice period (e.g. "2024-01-01").
-
-
-
- End date for the invoice period (e.g. "2024-01-31").
-
-
-
- Include only charge items in the output.
-
-
-
- Include only credit items in the output.
-
-
## Returns
-`str`, Result from the API call.
+`Any`
## Example
diff --git a/sdk/python/reference/get-endpoint-workers.mdx b/sdk/python/reference/get-endpoint-workers.mdx
new file mode 100644
index 0000000..de4a7a2
--- /dev/null
+++ b/sdk/python/reference/get-endpoint-workers.mdx
@@ -0,0 +1,34 @@
+---
+title: "VastAI.get_endpoint_workers"
+sidebarTitle: "get_endpoint_workers"
+---
+
+List workers under a given endpoint, with live status and measured_perf.
+
+## Signature
+
+```python
+VastAI.get_endpoint_workers(
+ id: int
+)
+```
+
+## Parameters
+
+
+
+
+
+## Returns
+
+`Any`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.get_endpoint_workers(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/get-endpt-logs.mdx b/sdk/python/reference/get-endpt-logs.mdx
index 19b8322..9eec2b5 100644
--- a/sdk/python/reference/get-endpt-logs.mdx
+++ b/sdk/python/reference/get-endpt-logs.mdx
@@ -3,31 +3,35 @@ title: "VastAI.get_endpt_logs"
sidebarTitle: "get_endpt_logs"
---
-Fetch logs for a specific serverless endpoint group.
+Fetch logs for a serverless endpoint.
## Signature
```python
-VastAI.get_endpt_logs(id: int, level: int = 1, tail: Optional[int] = None) -> str
+VastAI.get_endpt_logs(
+ id: int,
+ level: int = 1,
+ tail: Optional[int] = None
+) -> dict
```
## Parameters
- id
+ id of endpoint group to fetch logs from
- level
+ log detail level (0 to 3)
- tail
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/get-wrkgrp-logs.mdx b/sdk/python/reference/get-wrkgrp-logs.mdx
index 0ed96cf..3abf492 100644
--- a/sdk/python/reference/get-wrkgrp-logs.mdx
+++ b/sdk/python/reference/get-wrkgrp-logs.mdx
@@ -3,31 +3,35 @@ title: "VastAI.get_wrkgrp_logs"
sidebarTitle: "get_wrkgrp_logs"
---
-Fetch logs for a specific serverless worker group.
+Fetch logs for a worker group.
## Signature
```python
-VastAI.get_wrkgrp_logs(id: int, level: int = 1, tail: Optional[int] = None) -> str
+VastAI.get_wrkgrp_logs(
+ id: int,
+ level: int = 1,
+ tail: Optional[int] = None
+) -> dict
```
## Parameters
- id
+ id of workergroup to fetch logs from
- level
+ log detail level (0 to 3)
- tail
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/invite-member.mdx b/sdk/python/reference/invite-member.mdx
index 3de2628..3b7b14f 100644
--- a/sdk/python/reference/invite-member.mdx
+++ b/sdk/python/reference/invite-member.mdx
@@ -3,27 +3,30 @@ title: "VastAI.invite_member"
sidebarTitle: "invite_member"
---
-Invite a team member to your current team.
+Invite a new member to the team.
## Signature
```python
-VastAI.invite_member(email: str, role: str) -> str
+VastAI.invite_member(
+ email: str,
+ role: str
+) -> dict
```
## Parameters
- email
+ email of user to be invited
- role
+ role of user to be invited
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.invite_member(email: str, role: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.invite_member(email="...", role="...")
+result = client.invite_member(email="value", role="value")
print(result)
```
diff --git a/sdk/python/reference/invite-team-member.mdx b/sdk/python/reference/invite-team-member.mdx
new file mode 100644
index 0000000..53af0c0
--- /dev/null
+++ b/sdk/python/reference/invite-team-member.mdx
@@ -0,0 +1,39 @@
+---
+title: "VastAI.invite_team_member"
+sidebarTitle: "invite_team_member"
+---
+
+Invite a new member to the team.
+
+## Signature
+
+```python
+VastAI.invite_team_member(
+ email: str,
+ role: str
+) -> dict
+```
+
+## Parameters
+
+
+
+
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.invite_team_member(email="value", role="value")
+print(result)
+```
diff --git a/sdk/python/reference/join-cluster.mdx b/sdk/python/reference/join-cluster.mdx
index 5563a18..8247722 100644
--- a/sdk/python/reference/join-cluster.mdx
+++ b/sdk/python/reference/join-cluster.mdx
@@ -8,22 +8,25 @@ Join machines to a cluster.
## Signature
```python
-VastAI.join_cluster(cluster_id: int, machine_ids: List[int]) -> str
+VastAI.join_cluster(
+ cluster_id: int,
+ machine_ids: List[int]
+) -> dict
```
## Parameters
- cluster_id
+
- machine_ids
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.join_cluster(cluster_id: int, machine_ids: List[int]) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.join_cluster(cluster_id=12345, machine_ids=[12345])
+result = client.join_cluster(cluster_id=12345, machine_ids=12345)
print(result)
```
diff --git a/sdk/python/reference/join-overlay.mdx b/sdk/python/reference/join-overlay.mdx
index 1f91e28..0356054 100644
--- a/sdk/python/reference/join-overlay.mdx
+++ b/sdk/python/reference/join-overlay.mdx
@@ -8,22 +8,25 @@ Add an instance to an overlay network.
## Signature
```python
-VastAI.join_overlay(name: str, instance_id: int) -> str
+VastAI.join_overlay(
+ name: str,
+ instance_id: int
+) -> dict
```
## Parameters
- name
+
- instance_id
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.join_overlay(name: str, instance_id: int) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.join_overlay(name="...", instance_id=12345)
+result = client.join_overlay(name="value", instance_id=12345)
print(result)
```
diff --git a/sdk/python/reference/label-instance.mdx b/sdk/python/reference/label-instance.mdx
index 142eb1c..b659baa 100644
--- a/sdk/python/reference/label-instance.mdx
+++ b/sdk/python/reference/label-instance.mdx
@@ -3,27 +3,30 @@ title: "VastAI.label_instance"
sidebarTitle: "label_instance"
---
-Label an instance.
+Set a label on an instance.
## Signature
```python
-VastAI.label_instance(id: int, label: str) -> str
+VastAI.label_instance(
+ id: int,
+ label: str
+) -> dict
```
## Parameters
- id
+ id of instance to label
- label
+ label to set
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.label_instance(id: int, label: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.label_instance(id=12345, label="...")
+result = client.label_instance(id=12345, label="value")
print(result)
```
diff --git a/sdk/python/reference/launch-instance.mdx b/sdk/python/reference/launch-instance.mdx
index a57baa4..e39cf31 100644
--- a/sdk/python/reference/launch-instance.mdx
+++ b/sdk/python/reference/launch-instance.mdx
@@ -3,9 +3,7 @@ title: "VastAI.launch_instance"
sidebarTitle: "launch_instance"
---
-Launch the best matching instance based on GPU/image criteria.
-
- Searches for available offers and creates an instance from the top result.
+Launch the top instance from search offers matching the given criteria.
## Signature
@@ -14,146 +12,126 @@ VastAI.launch_instance(
gpu_name: str,
num_gpus: str,
image: str,
- region: str = None,
- disk: float = 16.0,
- limit: int = 3,
- order: str = "score-",
- login: str = None,
- label: str = None,
- onstart: str = None,
- onstart_cmd: str = None,
- entrypoint: str = None,
+ region: Optional[str] = None,
+ disk: Optional[float] = 16.0,
+ limit: Optional[int] = 3,
+ order: Optional[str] = 'score-',
+ login: Optional[str] = None,
+ label: Optional[str] = None,
+ onstart: Optional[str] = None,
+ onstart_cmd: Optional[str] = None,
+ entrypoint: Optional[str] = None,
ssh: bool = False,
jupyter: bool = False,
direct: bool = False,
- jupyter_dir: str = None,
+ jupyter_dir: Optional[str] = None,
jupyter_lab: bool = False,
lang_utf8: bool = False,
python_utf8: bool = False,
- extra: str = None,
- env: str = None,
- args: list = None,
- force: bool = False,
+ env: Optional[str] = None,
+ args: Optional[str] = None,
cancel_unavail: bool = False,
- template_hash: str = None,
- explain: bool = False,
- raw: bool = False
-) -> str
+ template_hash: Optional[str] = None
+) -> dict
```
## Parameters
- Name of the GPU model (replace spaces with underscores, e.g. "RTX_4090").
+ Name of the GPU model, replace spaces with underscores
- Number of GPUs required (choices: 1, 2, 4, 8, 12, 14).
+ Number of GPUs required
- Docker image name to use for the instance.
-
-
-
- Geographical region filter for the instance location.
-
-
-
- Disk space to allocate in GB.
-
-
-
- Maximum number of offers to consider when selecting the best match.
-
-
-
- Sort order for offers; append '-' to sort descending (e.g. "score-").
+ Name of the image to use for instance
-
- Docker login credentials for private registry authentication.
+
+ Geographical location of the instance
-
- Label to attach to the instance.
+
+ Disk space required in GB
-
- Filename of an onstart script to run on instance start.
+
+
-
- Shell command to run on instance start.
+
+ Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'num_gpus,total_flops-'. default='score-'
-
- Override the Docker image entrypoint.
+
+ docker login arguments for private repo authentication, surround with ''
-
- Enable SSH access to the instance.
+
+ label to set on the instance
-
- Enable Jupyter notebook server.
+
+ filename to use as onstart script
-
- Enable direct (peer-to-peer) connections.
+
+ contents of onstart script as single argument
-
- Directory to serve Jupyter from.
+
+ override entrypoint for args launch instance
-
- Enable JupyterLab instead of classic Jupyter.
+
+ Launch as an ssh instance type
-
- Set system language encoding to UTF-8.
+
+ Launch as a jupyter instance instead of an ssh instance
-
- Set Python I/O encoding to UTF-8.
+
+ Use (faster) direct connections for jupyter & ssh
-
- Extra Docker run arguments passed verbatim.
+
+ For runtype 'jupyter', directory in instance to use to launch jupyter. Defaults to image's working directory
-
- Environment variables to set (formatted as Docker -e flags).
+
+ For runtype 'jupyter', Launch instance with jupyter lab
-
- Additional positional arguments.
+
+ Workaround for images with locale problems: install and generate locales before instance launch, and set locale to C.UTF-8
-
- Skip sanity checks when creating from an existing instance.
+
+ Workaround for images with locale problems: set python's locale to C.UTF-8
-
- Return an error if scheduling fails rather than creating a stopped instance.
+
+ env variables and port mapping options, surround with ''
-
- Hash of an instance template to use for configuration.
+
+ list of arguments passed to container ENTRYPOINT. Onstart is recommended for this purpose. (must be last argument)
-
- Print verbose explanations of API calls made.
+
+ Return error if scheduling fails (rather than creating a stopped instance)
-
- Return raw JSON responses.
+
+ template hash which contains all relevant information about an instance. This can be used as a replacement for other parameters describing the instance configuration
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -161,6 +139,6 @@ VastAI.launch_instance(
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.launch_instance(gpu_name="...", num_gpus="...", image="...")
+result = client.launch_instance(gpu_name="value", num_gpus="value", image="value")
print(result)
```
diff --git a/sdk/python/reference/list-machine.mdx b/sdk/python/reference/list-machine.mdx
index 2ddf3a8..4a13e56 100644
--- a/sdk/python/reference/list-machine.mdx
+++ b/sdk/python/reference/list-machine.mdx
@@ -3,6 +3,87 @@ title: "VastAI.list_machine"
sidebarTitle: "list_machine"
---
-import ListMachineSDK from '/snippets/host/sdk/list-machine.mdx';
+List a machine for rent with optional pricing parameters.
-
+## Signature
+
+```python
+VastAI.list_machine(
+ id: int,
+ price_gpu: Optional[float] = None,
+ price_disk: Optional[float] = None,
+ price_inetu: Optional[float] = None,
+ price_inetd: Optional[float] = None,
+ price_min_bid: Optional[float] = None,
+ discount_rate: Optional[float] = None,
+ min_chunk: Optional[int] = 1,
+ end_date: Optional[str] = None,
+ duration: Optional[str] = None,
+ vol_size: Optional[int] = None,
+ vol_price: Optional[float] = None
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to list
+
+
+
+ per gpu rental price in $/hour (price for active instances)
+
+
+
+ storage price in $/GB/month (price for inactive instances), default: $0.10/GB/month
+
+
+
+ price for internet upload bandwidth in $/GB
+
+
+
+ price for internet download bandwidth in $/GB
+
+
+
+ per gpu minimum bid price floor in $/hour
+
+
+
+ Max long term prepay discount rate fraction, default: 0.4
+
+
+
+ minimum amount of gpus (default: 1)
+
+
+
+ contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format)
+
+
+
+ Updates end_date daily to be duration from current date. Cannot be combined with end_date. Format is: `n days`, `n weeks`, `n months`, `n years`, or total intended duration in seconds.
+
+
+
+ Size for volume contract offer. Defaults to half of available disk. Set 0 to not create a volume contract offer.
+
+
+
+ Price for disk on volume contract offer. Defaults to price_disk. Invalid if vol_size is 0.
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.list_machine(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/list-machines.mdx b/sdk/python/reference/list-machines.mdx
index 6821cf7..29953cd 100644
--- a/sdk/python/reference/list-machines.mdx
+++ b/sdk/python/reference/list-machines.mdx
@@ -3,6 +3,87 @@ title: "VastAI.list_machines"
sidebarTitle: "list_machines"
---
-import ListMachinesSDK from '/snippets/host/sdk/list-machines.mdx';
+List multiple machines for rent.
-
+## Signature
+
+```python
+VastAI.list_machines(
+ ids: Any,
+ price_gpu: Optional[float] = None,
+ price_disk: Optional[float] = None,
+ price_inetu: Optional[float] = None,
+ price_inetd: Optional[float] = None,
+ price_min_bid: Optional[float] = None,
+ discount_rate: Optional[float] = None,
+ min_chunk: Optional[int] = 1,
+ end_date: Optional[str] = None,
+ duration: Optional[str] = None,
+ vol_size: Optional[int] = None,
+ vol_price: Optional[float] = None
+) -> list[dict]
+```
+
+## Parameters
+
+
+ ids of machines to list
+
+
+
+ per gpu on-demand rental price in $/hour (base price for active instances)
+
+
+
+ storage price in $/GB/month (price for inactive instances), default: $0.10/GB/month
+
+
+
+ price for internet upload bandwidth in $/GB
+
+
+
+ price for internet download bandwidth in $/GB
+
+
+
+ per gpu minimum bid price floor in $/hour
+
+
+
+ Max long term prepay discount rate fraction, default: 0.4
+
+
+
+ minimum amount of gpus (default: 1)
+
+
+
+ contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format)
+
+
+
+ Updates end_date daily to be duration from current date. Cannot be combined with end_date. Format is: `n days`, `n weeks`, `n months`, `n years`, or total intended duration in seconds.
+
+
+
+ Size for volume contract offer. Defaults to half of available disk. Set 0 to not create a volume contract offer.
+
+
+
+ Price for disk on volume contract offer. Defaults to price_disk. Invalid if vol_size is 0.
+
+
+## Returns
+
+`list[dict]`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.list_machines(ids="value")
+print(result)
+```
diff --git a/sdk/python/reference/list-volume.mdx b/sdk/python/reference/list-volume.mdx
index 5c176e2..1c786ec 100644
--- a/sdk/python/reference/list-volume.mdx
+++ b/sdk/python/reference/list-volume.mdx
@@ -3,40 +3,40 @@ title: "VastAI.list_volume"
sidebarTitle: "list_volume"
---
-List disk space for rent as a volume on a machine.
+List disk space for rent as a volume.
## Signature
```python
VastAI.list_volume(
id: int,
- price_disk: float = 0.1,
+ price_disk: Optional[float] = 0.1,
end_date: Optional[str] = None,
- size: int = 15
-) -> str
+ size: Optional[str] = 15
+) -> dict
```
## Parameters
- id
+ id of machine to list
-
- price_disk
+
+ storage price in $/GB/month, default: $%(default).2f/GB/month
- end_date
+ contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format), default 3 months
-
- size
+
+ size of disk space allocated to offer in GB, default %(default)s GB
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/list-volumes.mdx b/sdk/python/reference/list-volumes.mdx
index b8d88e2..222ad8f 100644
--- a/sdk/python/reference/list-volumes.mdx
+++ b/sdk/python/reference/list-volumes.mdx
@@ -9,34 +9,34 @@ List disk space for rent as volumes on multiple machines.
```python
VastAI.list_volumes(
- ids: List[int],
- price_disk: float = 0.1,
+ ids: Any,
+ price_disk: Optional[float] = 0.1,
end_date: Optional[str] = None,
- size: int = 15
-) -> str
+ size: Optional[str] = 15
+) -> dict
```
## Parameters
-
- ids
+
+ id of machines list
-
- price_disk
+
+ storage price in $/GB/month, default: $%(default).2f/GB/month
- end_date
+ contract offer expiration - the available until date (optional, in unix float timestamp or MM/DD/YYYY format), default 3 months
-
- size
+
+ size of disk space allocated to offer in GB, default %(default)s GB
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -44,6 +44,6 @@ VastAI.list_volumes(
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.list_volumes(ids=[12345])
+result = client.list_volumes(ids="value")
print(result)
```
diff --git a/sdk/python/reference/logs.mdx b/sdk/python/reference/logs.mdx
index 17eb78a..3d65bf4 100644
--- a/sdk/python/reference/logs.mdx
+++ b/sdk/python/reference/logs.mdx
@@ -8,22 +8,35 @@ Retrieve logs for an instance.
## Signature
```python
-VastAI.logs(INSTANCE_ID: int, tail: Optional[str] = None) -> str
+VastAI.logs(
+ instance_id: int,
+ tail: Optional[str] = None,
+ filter: Optional[str] = None,
+ daemon_logs: bool = False
+) -> str
```
## Parameters
-
- INSTANCE_ID
+
+
- tail
+ Number of lines to show from the end of the logs (default '1000')
+
+
+
+ Grep filter for log entries
+
+
+
+ Fetch daemon system logs instead of container logs
## Returns
-`str`, Result from the API call.
+`str`
## Example
@@ -31,6 +44,6 @@ VastAI.logs(INSTANCE_ID: int, tail: Optional[str] = None) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.logs(INSTANCE_ID=12345)
+result = client.logs(instance_id=12345)
print(result)
```
diff --git a/sdk/python/reference/prepay-instance.mdx b/sdk/python/reference/prepay-instance.mdx
index ef3e74e..206247f 100644
--- a/sdk/python/reference/prepay-instance.mdx
+++ b/sdk/python/reference/prepay-instance.mdx
@@ -8,22 +8,25 @@ Prepay for an instance.
## Signature
```python
-VastAI.prepay_instance(id: int, amount: float) -> str
+VastAI.prepay_instance(
+ id: int,
+ amount: float
+) -> dict
```
## Parameters
- id
+ id of instance to prepay for
- amount
+ amount of instance credit prepayment (default discount func of 0.2 for 1 month, 0.3 for 3 months)
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/reboot-instance.mdx b/sdk/python/reference/reboot-instance.mdx
index f9e959d..efd64e3 100644
--- a/sdk/python/reference/reboot-instance.mdx
+++ b/sdk/python/reference/reboot-instance.mdx
@@ -8,18 +8,20 @@ Reboot an instance.
## Signature
```python
-VastAI.reboot_instance(id: int) -> str
+VastAI.reboot_instance(
+ id: int
+) -> dict
```
## Parameters
- id
+ id of instance to reboot
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/recycle-instance.mdx b/sdk/python/reference/recycle-instance.mdx
index 7f5ab86..4042e7d 100644
--- a/sdk/python/reference/recycle-instance.mdx
+++ b/sdk/python/reference/recycle-instance.mdx
@@ -8,18 +8,20 @@ Recycle an instance.
## Signature
```python
-VastAI.recycle_instance(id: int) -> str
+VastAI.recycle_instance(
+ id: int
+) -> dict
```
## Parameters
- id
+ id of instance to recycle
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/reject-price-increase.mdx b/sdk/python/reference/reject-price-increase.mdx
new file mode 100644
index 0000000..06bc51c
--- /dev/null
+++ b/sdk/python/reference/reject-price-increase.mdx
@@ -0,0 +1,34 @@
+---
+title: "VastAI.reject_price_increase"
+sidebarTitle: "reject_price_increase"
+---
+
+Reject the pending price increase on ``instance_id``.
+
+## Signature
+
+```python
+VastAI.reject_price_increase(
+ instance_id: int
+) -> dict
+```
+
+## Parameters
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.reject_price_increase(instance_id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/remove-defjob.mdx b/sdk/python/reference/remove-defjob.mdx
index 832292e..097def7 100644
--- a/sdk/python/reference/remove-defjob.mdx
+++ b/sdk/python/reference/remove-defjob.mdx
@@ -3,6 +3,32 @@ title: "VastAI.remove_defjob"
sidebarTitle: "remove_defjob"
---
-import RemoveDefjobSDK from '/snippets/host/sdk/remove-defjob.mdx';
+Remove the default job from a machine.
-
+## Signature
+
+```python
+VastAI.remove_defjob(
+ id: int
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to remove default instance from
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.remove_defjob(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/remove-machine-from-cluster.mdx b/sdk/python/reference/remove-machine-from-cluster.mdx
index 2c4f249..58719f2 100644
--- a/sdk/python/reference/remove-machine-from-cluster.mdx
+++ b/sdk/python/reference/remove-machine-from-cluster.mdx
@@ -8,26 +8,30 @@ Remove a machine from a cluster.
## Signature
```python
-VastAI.remove_machine_from_cluster(cluster_id: int, machine_id: int, new_manager_id: Optional[int] = None) -> str
+VastAI.remove_machine_from_cluster(
+ cluster_id: int,
+ machine_id: int,
+ new_manager_id: Optional[int] = None
+) -> dict
```
## Parameters
- cluster_id
+
- machine_id
+
- new_manager_id
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/remove-member.mdx b/sdk/python/reference/remove-member.mdx
index e71d0ce..2ff8f3f 100644
--- a/sdk/python/reference/remove-member.mdx
+++ b/sdk/python/reference/remove-member.mdx
@@ -3,23 +3,25 @@ title: "VastAI.remove_member"
sidebarTitle: "remove_member"
---
-Remove a team member by user ID.
+Remove a member from the team.
## Signature
```python
-VastAI.remove_member(id: int) -> str
+VastAI.remove_member(
+ id: int
+) -> dict
```
## Parameters
- id
+ id of user to remove
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/remove-team-member.mdx b/sdk/python/reference/remove-team-member.mdx
new file mode 100644
index 0000000..272633b
--- /dev/null
+++ b/sdk/python/reference/remove-team-member.mdx
@@ -0,0 +1,34 @@
+---
+title: "VastAI.remove_team_member"
+sidebarTitle: "remove_team_member"
+---
+
+Remove a member from the team.
+
+## Signature
+
+```python
+VastAI.remove_team_member(
+ id: int
+) -> dict
+```
+
+## Parameters
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.remove_team_member(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/remove-team-role.mdx b/sdk/python/reference/remove-team-role.mdx
index 076dbbc..04eb29b 100644
--- a/sdk/python/reference/remove-team-role.mdx
+++ b/sdk/python/reference/remove-team-role.mdx
@@ -3,23 +3,25 @@ title: "VastAI.remove_team_role"
sidebarTitle: "remove_team_role"
---
-Remove a role from the team.
+Remove a team role.
## Signature
```python
-VastAI.remove_team_role(NAME: str) -> str
+VastAI.remove_team_role(
+ name: str
+) -> dict
```
## Parameters
-
- NAME
+
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.remove_team_role(NAME: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.remove_team_role(NAME="...")
+result = client.remove_team_role(name="value")
print(result)
```
diff --git a/sdk/python/reference/reports.mdx b/sdk/python/reference/reports.mdx
index 7ef9369..413c872 100644
--- a/sdk/python/reference/reports.mdx
+++ b/sdk/python/reference/reports.mdx
@@ -8,18 +8,20 @@ Generate reports for a machine.
## Signature
```python
-VastAI.reports(id: int) -> str
+VastAI.reports(
+ id: int
+) -> list[dict]
```
## Parameters
- id
+ machine id
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/reset-api-key.mdx b/sdk/python/reference/reset-api-key.mdx
index 3aeb1cf..4aa5734 100644
--- a/sdk/python/reference/reset-api-key.mdx
+++ b/sdk/python/reference/reset-api-key.mdx
@@ -8,12 +8,12 @@ Reset the API key.
## Signature
```python
-VastAI.reset_api_key() -> str
+VastAI.reset_api_key() -> dict
```
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/schedule-maint.mdx b/sdk/python/reference/schedule-maint.mdx
index a794014..f5c1014 100644
--- a/sdk/python/reference/schedule-maint.mdx
+++ b/sdk/python/reference/schedule-maint.mdx
@@ -3,6 +3,47 @@ title: "VastAI.schedule_maint"
sidebarTitle: "schedule_maint"
---
-import ScheduleMaintSDK from '/snippets/host/sdk/schedule-maint.mdx';
+Schedule maintenance for a machine.
-
+## Signature
+
+```python
+VastAI.schedule_maint(
+ id: int,
+ sdate: Any,
+ duration: Any,
+ category: str = 'not provided'
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to schedule maintenance for
+
+
+
+ maintenance start date in unix epoch time (UTC seconds)
+
+
+
+ maintenance duration in hours
+
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.schedule_maint(id=12345, sdate="value", duration="value")
+print(result)
+```
diff --git a/sdk/python/reference/scp-url.mdx b/sdk/python/reference/scp-url.mdx
index 477da2f..e926151 100644
--- a/sdk/python/reference/scp-url.mdx
+++ b/sdk/python/reference/scp-url.mdx
@@ -3,23 +3,25 @@ title: "VastAI.scp_url"
sidebarTitle: "scp_url"
---
-Get the SCP URL for transferring files to/from an instance.
+Get the SCP URL for an instance.
## Signature
```python
-VastAI.scp_url(id: int) -> str
+VastAI.scp_url(
+ id: int
+) -> str
```
## Parameters
- ID of the instance.
+ id
## Returns
-`str`, Result from the API call.
+`str`
## Example
diff --git a/sdk/python/reference/search-benchmarks.mdx b/sdk/python/reference/search-benchmarks.mdx
index 0d47b5e..b37b10d 100644
--- a/sdk/python/reference/search-benchmarks.mdx
+++ b/sdk/python/reference/search-benchmarks.mdx
@@ -3,23 +3,25 @@ title: "VastAI.search_benchmarks"
sidebarTitle: "search_benchmarks"
---
-Search for benchmarks based on a query.
+Search for benchmarks.
## Signature
```python
-VastAI.search_benchmarks(query: Optional[str] = None) -> str
+VastAI.search_benchmarks(
+ query: Optional[str] = None
+) -> list[dict]
```
## Parameters
- query
+ Search query in simple query syntax (see below)
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/search-invoices.mdx b/sdk/python/reference/search-invoices.mdx
index 34dacff..d71a64d 100644
--- a/sdk/python/reference/search-invoices.mdx
+++ b/sdk/python/reference/search-invoices.mdx
@@ -3,23 +3,25 @@ title: "VastAI.search_invoices"
sidebarTitle: "search_invoices"
---
-Search for invoices based on a query.
+Search for invoices.
## Signature
```python
-VastAI.search_invoices(query: Optional[str] = None) -> str
+VastAI.search_invoices(
+ query: Optional[str] = None
+) -> list[dict]
```
## Parameters
- query
+ Search query in simple query syntax (see below)
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/search-offers-new.mdx b/sdk/python/reference/search-offers-new.mdx
new file mode 100644
index 0000000..983eaad
--- /dev/null
+++ b/sdk/python/reference/search-offers-new.mdx
@@ -0,0 +1,59 @@
+---
+title: "VastAI.search_offers_new"
+sidebarTitle: "search_offers_new"
+---
+
+Search for GPU offers using the new /search/asks/ endpoint.
+
+## Signature
+
+```python
+VastAI.search_offers_new(
+ query: Any = None,
+ type: str = 'on-demand',
+ order: str = 'score-',
+ limit: Optional[int] = None,
+ storage: float = 5.0,
+ no_default: bool = False
+) -> list
+```
+
+## Parameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Returns
+
+`list`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.search_offers_new()
+print(result)
+```
diff --git a/sdk/python/reference/search-offers.mdx b/sdk/python/reference/search-offers.mdx
index ebf0c56..0f36754 100644
--- a/sdk/python/reference/search-offers.mdx
+++ b/sdk/python/reference/search-offers.mdx
@@ -3,60 +3,55 @@ title: "VastAI.search_offers"
sidebarTitle: "search_offers"
---
-Search for offers based on various criteria.
+Search for GPU offers.
## Signature
```python
VastAI.search_offers(
- type: Optional[str] = None,
- no_default: bool = False,
- new: bool = False,
+ query: Any = None,
+ type: str = 'on-demand',
+ order: str = 'score-',
limit: Optional[int] = None,
- disable_bundling: bool = False,
- storage: Optional[float] = None,
- order: Optional[str] = None,
- query: Optional[str] = None
-) -> str
+ storage: float = 5.0,
+ no_default: bool = False,
+ new: bool = False
+) -> list
```
## Parameters
-
- Instance type filter: 'bid' for interruptible, 'reserved' for reserved, 'on-demand' for on-demand.
+
+ Query to search for. default: 'external=false rentable=true verified=true', pass -n to ignore default
-
- Disable the default query filters (external=false rentable=true verified=true).
+
+ Alias for --type=on-demand
-
- Use the new search algorithm (experimental).
+
+ Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'num_gpus,total_flops-'. default='score-'
- Maximum number of results to return.
-
-
-
- Disable offer bundling (show individual machine slots).
+
-
- Amount of storage in GiB to include in pricing calculations.
+
+ Amount of storage to use for pricing, in GiB. default=5.0GiB
-
- Comma-separated list of fields to sort on; append '-' to sort descending (e.g. "score-").
+
+ Disable default query
-
- Search query string (e.g. "gpu_name=RTX_4090 num_gpus>=2 rentable=True").
+
+ New search exp
## Returns
-`str`, Result from the API call.
+`list`
## Example
diff --git a/sdk/python/reference/search-templates.mdx b/sdk/python/reference/search-templates.mdx
index 3255ef3..37b2832 100644
--- a/sdk/python/reference/search-templates.mdx
+++ b/sdk/python/reference/search-templates.mdx
@@ -3,23 +3,25 @@ title: "VastAI.search_templates"
sidebarTitle: "search_templates"
---
-Search for templates based on a query.
+Search for templates.
## Signature
```python
-VastAI.search_templates(query: Optional[str] = None) -> str
+VastAI.search_templates(
+ query: Optional[str] = None
+) -> list[dict]
```
## Parameters
- query
+ Search query in simple query syntax (see below)
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/search-volumes.mdx b/sdk/python/reference/search-volumes.mdx
index 897e264..1a0fe47 100644
--- a/sdk/python/reference/search-volumes.mdx
+++ b/sdk/python/reference/search-volumes.mdx
@@ -3,31 +3,45 @@ title: "VastAI.search_volumes"
sidebarTitle: "search_volumes"
---
-Search for volume offers using custom query.
+Search for volume offers.
## Signature
```python
-VastAI.search_volumes(query: Optional[str] = None, storage: float = 1.0, order: str = "score-") -> str
+VastAI.search_volumes(
+ query: Optional[str] = None,
+ no_default: bool = False,
+ limit: Optional[int] = None,
+ storage: Optional[float] = 1.0,
+ order: Optional[str] = 'score-'
+) -> list[dict]
```
## Parameters
- query
+ Query to search for. default: 'external=false verified=true disk_space>=1', pass -n to ignore default
-
- storage
+
+ Disable default query
-
- order
+
+
+
+
+
+ Amount of storage to use for pricing, in GiB. default=1.0GiB
+
+
+
+ Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'disk_space,inet_up-'. default='score-'
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/self-test-machine.mdx b/sdk/python/reference/self-test-machine.mdx
index 5a91b70..c34159d 100644
--- a/sdk/python/reference/self-test-machine.mdx
+++ b/sdk/python/reference/self-test-machine.mdx
@@ -3,6 +3,57 @@ title: "VastAI.self_test_machine"
sidebarTitle: "self_test_machine"
---
-import SelfTestMachineSDK from '/snippets/host/sdk/self-test-machine.mdx';
+Perform a self-test on the specified machine.
-
+## Signature
+
+```python
+VastAI.self_test_machine(
+ machine_id: Any,
+ debugging: bool = False,
+ ignore_requirements: bool = False,
+ test_image: Optional[str] = None,
+ support_bundle_dir: Optional[str] = None,
+ no_support_bundle: bool = False
+)
+```
+
+## Parameters
+
+
+ Machine ID
+
+
+
+ Enable debugging output
+
+
+
+ Ignore the minimum system requirements and run the self test regardless
+
+
+
+ Use a custom self-test image for testing custom self-test images. Overrides VAST_SELF_TEST_IMAGE and CUDA mapping.
+
+
+
+ Directory for failure diagnostic bundles (default: /tmp)
+
+
+
+ Do not create a diagnostic tarball when the self-test fails
+
+
+## Returns
+
+`Any`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.self_test_machine(machine_id="value")
+print(result)
+```
diff --git a/sdk/python/reference/set-api-key.mdx b/sdk/python/reference/set-api-key.mdx
index a0d1690..8b735f9 100644
--- a/sdk/python/reference/set-api-key.mdx
+++ b/sdk/python/reference/set-api-key.mdx
@@ -3,23 +3,25 @@ title: "VastAI.set_api_key"
sidebarTitle: "set_api_key"
---
-Set a new API key.
+Update the API key used by this client.
## Signature
```python
-VastAI.set_api_key(new_api_key: str) -> str
+VastAI.set_api_key(
+ api_key: str
+) -> None
```
## Parameters
-
- new_api_key
+
+
## Returns
-`str`, Result from the API call.
+`None`
## Example
@@ -27,6 +29,6 @@ VastAI.set_api_key(new_api_key: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.set_api_key(new_api_key="...")
+result = client.set_api_key(api_key="value")
print(result)
```
diff --git a/sdk/python/reference/set-defjob.mdx b/sdk/python/reference/set-defjob.mdx
index 3300c0e..b88e350 100644
--- a/sdk/python/reference/set-defjob.mdx
+++ b/sdk/python/reference/set-defjob.mdx
@@ -3,6 +3,57 @@ title: "VastAI.set_defjob"
sidebarTitle: "set_defjob"
---
-import SetDefjobSDK from '/snippets/host/sdk/set-defjob.mdx';
+Set the default job on a machine.
-
+## Signature
+
+```python
+VastAI.set_defjob(
+ id: int,
+ price_gpu: Optional[float] = None,
+ price_inetu: Optional[float] = None,
+ price_inetd: Optional[float] = None,
+ image: Optional[str] = None,
+ args: Optional[str] = None
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to launch default instance on
+
+
+
+ per gpu rental price in $/hour
+
+
+
+ price for internet upload bandwidth in $/GB
+
+
+
+ price for internet download bandwidth in $/GB
+
+
+
+ docker container image to launch
+
+
+
+ list of arguments passed to container launch
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.set_defjob(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/set-min-bid.mdx b/sdk/python/reference/set-min-bid.mdx
index 3206fc9..406be66 100644
--- a/sdk/python/reference/set-min-bid.mdx
+++ b/sdk/python/reference/set-min-bid.mdx
@@ -3,6 +3,37 @@ title: "VastAI.set_min_bid"
sidebarTitle: "set_min_bid"
---
-import SetMinBidSDK from '/snippets/host/sdk/set-min-bid.mdx';
+Set the minimum bid price for a machine.
-
+## Signature
+
+```python
+VastAI.set_min_bid(
+ id: int,
+ price: Optional[float] = None
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to set min bid price for
+
+
+
+ per gpu min bid price in $/hour
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.set_min_bid(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/set-user.mdx b/sdk/python/reference/set-user.mdx
index 8c24795..490072a 100644
--- a/sdk/python/reference/set-user.mdx
+++ b/sdk/python/reference/set-user.mdx
@@ -3,23 +3,25 @@ title: "VastAI.set_user"
sidebarTitle: "set_user"
---
-Set user parameters from a file.
+Set user parameters.
## Signature
```python
-VastAI.set_user(file: Optional[str] = None) -> str
+VastAI.set_user(
+ params: Any
+) -> dict
```
## Parameters
-
- file
+
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.set_user(file: Optional[str] = None) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.set_user()
+result = client.set_user(params="value")
print(result)
```
diff --git a/sdk/python/reference/show-api-key.mdx b/sdk/python/reference/show-api-key.mdx
index c485ae6..9dbc90c 100644
--- a/sdk/python/reference/show-api-key.mdx
+++ b/sdk/python/reference/show-api-key.mdx
@@ -8,18 +8,20 @@ Show details of an API key.
## Signature
```python
-VastAI.show_api_key(id: int) -> str
+VastAI.show_api_key(
+ id: int
+) -> dict
```
## Parameters
- id
+ id of apikey to get
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/show-api-keys.mdx b/sdk/python/reference/show-api-keys.mdx
index 6620642..dff0570 100644
--- a/sdk/python/reference/show-api-keys.mdx
+++ b/sdk/python/reference/show-api-keys.mdx
@@ -3,17 +3,17 @@ title: "VastAI.show_api_keys"
sidebarTitle: "show_api_keys"
---
-Show all API keys.
+Return all API keys associated with the account.
## Signature
```python
-VastAI.show_api_keys() -> str
+VastAI.show_api_keys() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-audit-logs.mdx b/sdk/python/reference/show-audit-logs.mdx
index 2bc9715..741b78f 100644
--- a/sdk/python/reference/show-audit-logs.mdx
+++ b/sdk/python/reference/show-audit-logs.mdx
@@ -3,17 +3,17 @@ title: "VastAI.show_audit_logs"
sidebarTitle: "show_audit_logs"
---
-Display account's history of important actions.
+Display account audit logs.
## Signature
```python
-VastAI.show_audit_logs() -> str
+VastAI.show_audit_logs() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-clusters.mdx b/sdk/python/reference/show-clusters.mdx
index 830e830..3ee358a 100644
--- a/sdk/python/reference/show-clusters.mdx
+++ b/sdk/python/reference/show-clusters.mdx
@@ -8,12 +8,12 @@ Show clusters associated with your account.
## Signature
```python
-VastAI.show_clusters() -> str
+VastAI.show_clusters() -> dict
```
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/show-connections.mdx b/sdk/python/reference/show-connections.mdx
index d79f476..b277e5e 100644
--- a/sdk/python/reference/show-connections.mdx
+++ b/sdk/python/reference/show-connections.mdx
@@ -8,12 +8,12 @@ Show all connections.
## Signature
```python
-VastAI.show_connections() -> str
+VastAI.show_connections() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-deployment-versions.mdx b/sdk/python/reference/show-deployment-versions.mdx
index 42153fc..bc48981 100644
--- a/sdk/python/reference/show-deployment-versions.mdx
+++ b/sdk/python/reference/show-deployment-versions.mdx
@@ -3,23 +3,25 @@ title: "VastAI.show_deployment_versions"
sidebarTitle: "show_deployment_versions"
---
-Show version history for a deployment.
+Return version history for a deployment.
## Signature
```python
-VastAI.show_deployment_versions(id: int) -> str
+VastAI.show_deployment_versions(
+ id: int
+) -> list
```
## Parameters
- ID of the deployment to show versions for.
+ id of deployment to show versions for
## Returns
-`str`, Result from the API call.
+`list`
## Example
diff --git a/sdk/python/reference/show-deployment.mdx b/sdk/python/reference/show-deployment.mdx
index 037a05f..49de0d0 100644
--- a/sdk/python/reference/show-deployment.mdx
+++ b/sdk/python/reference/show-deployment.mdx
@@ -3,23 +3,25 @@ title: "VastAI.show_deployment"
sidebarTitle: "show_deployment"
---
-Show details for a single deployment.
+Return details of a single deployment.
## Signature
```python
-VastAI.show_deployment(id: int) -> str
+VastAI.show_deployment(
+ id: int
+) -> dict
```
## Parameters
- ID of the deployment to show.
+ id of deployment to show info for
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/show-deployments.mdx b/sdk/python/reference/show-deployments.mdx
index 38cfdf3..b75130d 100644
--- a/sdk/python/reference/show-deployments.mdx
+++ b/sdk/python/reference/show-deployments.mdx
@@ -3,17 +3,17 @@ title: "VastAI.show_deployments"
sidebarTitle: "show_deployments"
---
-Show all deployments.
+Return all deployments for the authenticated user.
## Signature
```python
-VastAI.show_deployments() -> str
+VastAI.show_deployments() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-deposit.mdx b/sdk/python/reference/show-deposit.mdx
index 9da8240..0f72da1 100644
--- a/sdk/python/reference/show-deposit.mdx
+++ b/sdk/python/reference/show-deposit.mdx
@@ -3,23 +3,25 @@ title: "VastAI.show_deposit"
sidebarTitle: "show_deposit"
---
-Show deposit/credit details for a user account.
+Show deposit details.
## Signature
```python
-VastAI.show_deposit(Id: int) -> str
+VastAI.show_deposit(
+ id: int
+) -> dict
```
## Parameters
-
- ID of the user account to show deposit details for.
+
+ id of instance to get info for
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.show_deposit(Id: int) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.show_deposit(Id=12345)
+result = client.show_deposit(id=12345)
print(result)
```
diff --git a/sdk/python/reference/show-earnings.mdx b/sdk/python/reference/show-earnings.mdx
index 71e4106..c27d7e0 100644
--- a/sdk/python/reference/show-earnings.mdx
+++ b/sdk/python/reference/show-earnings.mdx
@@ -13,30 +13,30 @@ VastAI.show_earnings(
start_date: Optional[str] = None,
end_date: Optional[str] = None,
machine_id: Optional[int] = None
-) -> str
+) -> list[dict]
```
## Parameters
-
- quiet
+
+ only display numeric ids
- start_date
+ start date and time for report. Many formats accepted
- end_date
+ end date and time for report. Many formats accepted
- machine_id
+ Machine id (optional)
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-endpoints.mdx b/sdk/python/reference/show-endpoints.mdx
index a6f7f5c..82acb3f 100644
--- a/sdk/python/reference/show-endpoints.mdx
+++ b/sdk/python/reference/show-endpoints.mdx
@@ -3,17 +3,17 @@ title: "VastAI.show_endpoints"
sidebarTitle: "show_endpoints"
---
-Show all endpoints.
+Show all serverless endpoints.
## Signature
```python
-VastAI.show_endpoints() -> str
+VastAI.show_endpoints() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-env-vars.mdx b/sdk/python/reference/show-env-vars.mdx
index 1735df3..a88e6ca 100644
--- a/sdk/python/reference/show-env-vars.mdx
+++ b/sdk/python/reference/show-env-vars.mdx
@@ -8,18 +8,20 @@ Show user environment variables.
## Signature
```python
-VastAI.show_env_vars(show_values: bool = False) -> str
+VastAI.show_env_vars(
+ show_values: bool = False
+) -> dict
```
## Parameters
-
- show_values
+
+ Show the values of environment variables
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/show-instance-filters.mdx b/sdk/python/reference/show-instance-filters.mdx
new file mode 100644
index 0000000..d352b6c
--- /dev/null
+++ b/sdk/python/reference/show-instance-filters.mdx
@@ -0,0 +1,26 @@
+---
+title: "VastAI.show_instance_filters"
+sidebarTitle: "show_instance_filters"
+---
+
+Return distinct filterable values for instances.
+
+## Signature
+
+```python
+VastAI.show_instance_filters() -> list
+```
+
+## Returns
+
+`list`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.show_instance_filters()
+print(result)
+```
diff --git a/sdk/python/reference/show-instance.mdx b/sdk/python/reference/show-instance.mdx
index 09281d5..2284934 100644
--- a/sdk/python/reference/show-instance.mdx
+++ b/sdk/python/reference/show-instance.mdx
@@ -3,45 +3,25 @@ title: "VastAI.show_instance"
sidebarTitle: "show_instance"
---
-Show details of an instance.
-
- Returns an instance object. Key status fields:
-
- **actual_status**, current container state:
-
- | Value | Meaning |
- |-------|---------|
- | `null` | Instance is being provisioned |
- | `loading` | Docker image is downloading or container is starting up |
- | `running` | Container is actively executing. GPU charges apply. |
- | `stopped` | Container is halted. Disk charges continue; no GPU charges. |
- | `frozen` | Container is paused with memory preserved. GPU charges apply. |
- | `exited` | Container process exited unexpectedly |
- | `rebooting` | Container is restarting (transient) |
- | `unknown` | No recent heartbeat from the host |
- | `offline` | Host machine disconnected from Vast servers (computed, not stored in DB) |
-
- **intended_status**, user's desired target state: `running`, `stopped`, or `frozen`.
-
- **cur_state**, machine contract / hardware allocation state: `running`, `stopped`, or `unloaded` (released on destroy).
-
- **status_msg**, human-readable detail on the current status.
+Return details of a single instance.
## Signature
```python
-VastAI.show_instance(id: int) -> str
+VastAI.show_instance(
+ id: int
+) -> Optional[dict]
```
## Parameters
- id
+ id of instance to get
## Returns
-`str`, Result from the API call.
+`Optional[dict]`
## Example
diff --git a/sdk/python/reference/show-instances-v1.mdx b/sdk/python/reference/show-instances-v1.mdx
index 3fa78ae..c2d7c1d 100644
--- a/sdk/python/reference/show-instances-v1.mdx
+++ b/sdk/python/reference/show-instances-v1.mdx
@@ -3,97 +3,25 @@ title: "VastAI.show_instances_v1"
sidebarTitle: "show_instances_v1"
---
-Show instances with pagination and filtering (v1).
-
- Returns a paginated list of instance objects. Key status fields per instance:
-
- **actual_status**, current container state:
-
- | Value | Meaning |
- |-------|---------|
- | `null` | Instance is being provisioned |
- | `loading` | Docker image is downloading or container is starting up |
- | `running` | Container is actively executing. GPU charges apply. |
- | `stopped` | Container is halted. Disk charges continue; no GPU charges. |
- | `frozen` | Container is paused with memory preserved. GPU charges apply. |
- | `exited` | Container process exited unexpectedly |
- | `rebooting` | Container is restarting (transient) |
- | `unknown` | No recent heartbeat from the host |
- | `offline` | Host machine disconnected from Vast servers (computed, not stored in DB) |
-
- **intended_status**, user's desired target state: `running`, `stopped`, or `frozen`.
-
- **cur_state**, machine contract / hardware allocation state: `running`, `stopped`, or `unloaded` (released on destroy).
-
- **status_msg**, human-readable detail on the current status.
+Return instances using the v1 paginated API.
## Signature
```python
VastAI.show_instances_v1(
- quiet: bool = False,
- verbose: bool = False,
- all: bool = False,
- status: Optional[List[str]] = None,
- label: Optional[List[str]] = None,
- gpu_name: Optional[List[str]] = None,
- verification: Optional[List[str]] = None,
- limit: Optional[int] = None,
- next_token: Optional[str] = None,
- order_by: Optional[str] = None,
- cols: Optional[str] = None
-) -> str
+ params: dict
+) -> dict
```
## Parameters
-
- Only print instance IDs, one per line.
-
-
-
- Show additional columns (SSH, location, template, etc.).
-
-
-
- Fetch all pages automatically and send to pager.
-
-
-
- Filter by container status: running, loading, exited.
-
-
-
- Filter by instance label; pass empty string to match unlabeled.
-
-
-
- Filter by GPU model name (e.g. 'RTX A5000').
-
-
-
- Filter by machine verification: verified, unverified, deverified.
-
-
-
- Max instances per page (1-25, default 25).
-
-
-
- Resume from a pagination token from a previous page.
-
-
-
- Sort column with optional direction, e.g. 'start_date desc'.
-
-
-
- Override displayed columns with a comma-separated list.
+
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -101,6 +29,6 @@ VastAI.show_instances_v1(
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.show_instances_v1()
+result = client.show_instances_v1(params={})
print(result)
```
diff --git a/sdk/python/reference/show-instances.mdx b/sdk/python/reference/show-instances.mdx
index 8943edd..acba465 100644
--- a/sdk/python/reference/show-instances.mdx
+++ b/sdk/python/reference/show-instances.mdx
@@ -3,45 +3,17 @@ title: "VastAI.show_instances"
sidebarTitle: "show_instances"
---
-Show all instances.
-
- Returns a list of instance objects. Key status fields per instance:
-
- **actual_status**, current container state:
-
- | Value | Meaning |
- |-------|---------|
- | `null` | Instance is being provisioned |
- | `loading` | Docker image is downloading or container is starting up |
- | `running` | Container is actively executing. GPU charges apply. |
- | `stopped` | Container is halted. Disk charges continue; no GPU charges. |
- | `frozen` | Container is paused with memory preserved. GPU charges apply. |
- | `exited` | Container process exited unexpectedly |
- | `rebooting` | Container is restarting (transient) |
- | `unknown` | No recent heartbeat from the host |
- | `offline` | Host machine disconnected from Vast servers (computed, not stored in DB) |
-
- **intended_status**, user's desired target state: `running`, `stopped`, or `frozen`.
-
- **cur_state**, machine contract / hardware allocation state: `running`, `stopped`, or `unloaded` (released on destroy).
-
- **status_msg**, human-readable detail on the current status.
+Return all instances for the authenticated user (deprecated; use show_instances_v1).
## Signature
```python
-VastAI.show_instances(quiet: bool = False) -> str
+VastAI.show_instances() -> list[dict]
```
-## Parameters
-
-
- quiet
-
-
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-invoices-v1.mdx b/sdk/python/reference/show-invoices-v1.mdx
index 3c57a36..448d3fa 100644
--- a/sdk/python/reference/show-invoices-v1.mdx
+++ b/sdk/python/reference/show-invoices-v1.mdx
@@ -10,68 +10,68 @@ Get billing history reports with advanced filtering and pagination.
```python
VastAI.show_invoices_v1(
invoices: bool = False,
- invoice_type: Optional[List[str]] = None,
+ invoice_type: Optional[str] = None,
charges: bool = False,
- charge_type: Optional[List[str]] = None,
+ charge_type: Optional[str] = None,
start_date: Optional[str] = None,
end_date: Optional[str] = None,
- limit: int = 20,
+ limit: Optional[int] = 20,
next_token: Optional[str] = None,
- format: str = "table",
+ format: Optional[str] = 'table',
verbose: bool = False,
latest_first: bool = False
-) -> str
+) -> dict
```
## Parameters
-
- invoices
+
+ Show invoices instead of charges
-
- invoice_type
+
+ Filter which types of invoices to show: {transfers, stripe, bitpay, coinbase, crypto.com, reserved, payout_paypal, payout_wise}
-
- charges
+
+ Show charges instead of invoices
-
- charge_type
+
+ Filter which types of charges to show: {i|instance, v|volume, s|serverless}
- start_date
+ Start date (YYYY-MM-DD or timestamp)
- end_date
+ End date (YYYY-MM-DD or timestamp)
-
- limit
+
+ Number of results per page (default: 20, max: 100)
- next_token
+ Pagination token for next page
-
- format
+
+ Output format for charges (default: table)
-
- verbose
+
+ Include full Instance Charge details and Invoice Metadata (tree view only)
-
- latest_first
+
+ Sort by latest first
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/show-invoices.mdx b/sdk/python/reference/show-invoices.mdx
index 503c6f0..09ed630 100644
--- a/sdk/python/reference/show-invoices.mdx
+++ b/sdk/python/reference/show-invoices.mdx
@@ -3,7 +3,7 @@ title: "VastAI.show_invoices"
sidebarTitle: "show_invoices"
---
-Show invoice details.
+Show invoice details (deprecated; use show_invoices_v1).
## Signature
@@ -15,38 +15,38 @@ VastAI.show_invoices(
only_charges: bool = False,
only_credits: bool = False,
instance_label: Optional[str] = None
-) -> str
+) -> dict
```
## Parameters
-
- quiet
+
+ only display numeric ids
- start_date
+ start date and time for report. Many formats accepted (optional)
- end_date
+ end date and time for report. Many formats accepted (optional)
-
- only_charges
+
+ Show only charge items
-
- only_credits
+
+ Show only credit items
- instance_label
+ Filter charges on a particular instance label (useful for autoscaler groups)
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/show-ipaddrs.mdx b/sdk/python/reference/show-ipaddrs.mdx
index 71c1541..dd3e6dd 100644
--- a/sdk/python/reference/show-ipaddrs.mdx
+++ b/sdk/python/reference/show-ipaddrs.mdx
@@ -8,12 +8,12 @@ Show IP addresses.
## Signature
```python
-VastAI.show_ipaddrs() -> str
+VastAI.show_ipaddrs() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-machine.mdx b/sdk/python/reference/show-machine.mdx
index 2b789d2..7e6ee4d 100644
--- a/sdk/python/reference/show-machine.mdx
+++ b/sdk/python/reference/show-machine.mdx
@@ -3,6 +3,32 @@ title: "VastAI.show_machine"
sidebarTitle: "show_machine"
---
-import ShowMachineSDK from '/snippets/host/sdk/show-machine.mdx';
+Return details of a single machine.
-
+## Signature
+
+```python
+VastAI.show_machine(
+ id: int
+) -> dict
+```
+
+## Parameters
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.show_machine(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/show-machines.mdx b/sdk/python/reference/show-machines.mdx
index cbe7041..f62ff67 100644
--- a/sdk/python/reference/show-machines.mdx
+++ b/sdk/python/reference/show-machines.mdx
@@ -3,6 +3,24 @@ title: "VastAI.show_machines"
sidebarTitle: "show_machines"
---
-import ShowMachinesSDK from '/snippets/host/sdk/show-machines.mdx';
+Return all hosted machines.
-
+## Signature
+
+```python
+VastAI.show_machines() -> list[dict]
+```
+
+## Returns
+
+`list[dict]`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.show_machines()
+print(result)
+```
diff --git a/sdk/python/reference/show-maints.mdx b/sdk/python/reference/show-maints.mdx
index a0b123d..e2503ea 100644
--- a/sdk/python/reference/show-maints.mdx
+++ b/sdk/python/reference/show-maints.mdx
@@ -3,6 +3,32 @@ title: "VastAI.show_maints"
sidebarTitle: "show_maints"
---
-import ShowMaintsSDK from '/snippets/host/sdk/show-maints.mdx';
+Show maintenance information for machines.
-
+## Signature
+
+```python
+VastAI.show_maints(
+ ids: Any
+) -> list[dict]
+```
+
+## Parameters
+
+
+ comma separated string of machine_ids for which to get maintenance information
+
+
+## Returns
+
+`list[dict]`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.show_maints(ids="value")
+print(result)
+```
diff --git a/sdk/python/reference/show-members.mdx b/sdk/python/reference/show-members.mdx
index 0399108..cf78bde 100644
--- a/sdk/python/reference/show-members.mdx
+++ b/sdk/python/reference/show-members.mdx
@@ -3,17 +3,17 @@ title: "VastAI.show_members"
sidebarTitle: "show_members"
---
-Show your team members.
+Show all team members.
## Signature
```python
-VastAI.show_members() -> str
+VastAI.show_members() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-overlays.mdx b/sdk/python/reference/show-overlays.mdx
index 789077b..2053c41 100644
--- a/sdk/python/reference/show-overlays.mdx
+++ b/sdk/python/reference/show-overlays.mdx
@@ -8,12 +8,12 @@ Show overlays associated with your account.
## Signature
```python
-VastAI.show_overlays() -> str
+VastAI.show_overlays() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-pending-price-increases.mdx b/sdk/python/reference/show-pending-price-increases.mdx
new file mode 100644
index 0000000..a3612b5
--- /dev/null
+++ b/sdk/python/reference/show-pending-price-increases.mdx
@@ -0,0 +1,26 @@
+---
+title: "VastAI.show_pending_price_increases"
+sidebarTitle: "show_pending_price_increases"
+---
+
+Return the pending-price-increase envelope for the authenticated user.
+
+## Signature
+
+```python
+VastAI.show_pending_price_increases() -> dict
+```
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.show_pending_price_increases()
+print(result)
+```
diff --git a/sdk/python/reference/show-scheduled-jobs.mdx b/sdk/python/reference/show-scheduled-jobs.mdx
index e44f562..9d2cf7e 100644
--- a/sdk/python/reference/show-scheduled-jobs.mdx
+++ b/sdk/python/reference/show-scheduled-jobs.mdx
@@ -3,17 +3,17 @@ title: "VastAI.show_scheduled_jobs"
sidebarTitle: "show_scheduled_jobs"
---
-Show the list of scheduled jobs for the account.
+Show scheduled jobs for the account.
## Signature
```python
-VastAI.show_scheduled_jobs() -> str
+VastAI.show_scheduled_jobs() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-ssh-keys.mdx b/sdk/python/reference/show-ssh-keys.mdx
index a5d4155..dc2cefc 100644
--- a/sdk/python/reference/show-ssh-keys.mdx
+++ b/sdk/python/reference/show-ssh-keys.mdx
@@ -8,12 +8,12 @@ Show all SSH keys.
## Signature
```python
-VastAI.show_ssh_keys() -> str
+VastAI.show_ssh_keys() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-subaccounts.mdx b/sdk/python/reference/show-subaccounts.mdx
index dce81d7..1fb3d30 100644
--- a/sdk/python/reference/show-subaccounts.mdx
+++ b/sdk/python/reference/show-subaccounts.mdx
@@ -3,23 +3,17 @@ title: "VastAI.show_subaccounts"
sidebarTitle: "show_subaccounts"
---
-Show all subaccounts of the current user.
+Show all subaccounts.
## Signature
```python
-VastAI.show_subaccounts(quiet: bool = False) -> str
+VastAI.show_subaccounts() -> list[dict]
```
-## Parameters
-
-
- quiet
-
-
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-team-members.mdx b/sdk/python/reference/show-team-members.mdx
new file mode 100644
index 0000000..1d414bc
--- /dev/null
+++ b/sdk/python/reference/show-team-members.mdx
@@ -0,0 +1,26 @@
+---
+title: "VastAI.show_team_members"
+sidebarTitle: "show_team_members"
+---
+
+Show all team members.
+
+## Signature
+
+```python
+VastAI.show_team_members() -> list[dict]
+```
+
+## Returns
+
+`list[dict]`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.show_team_members()
+print(result)
+```
diff --git a/sdk/python/reference/show-team-role.mdx b/sdk/python/reference/show-team-role.mdx
index 82ffeed..8b332b1 100644
--- a/sdk/python/reference/show-team-role.mdx
+++ b/sdk/python/reference/show-team-role.mdx
@@ -8,18 +8,20 @@ Show details of a specific team role.
## Signature
```python
-VastAI.show_team_role(NAME: str) -> str
+VastAI.show_team_role(
+ name: str
+) -> dict
```
## Parameters
-
- NAME
+
+
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.show_team_role(NAME: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.show_team_role(NAME="...")
+result = client.show_team_role(name="value")
print(result)
```
diff --git a/sdk/python/reference/show-team-roles.mdx b/sdk/python/reference/show-team-roles.mdx
index 078236b..e2eb4f5 100644
--- a/sdk/python/reference/show-team-roles.mdx
+++ b/sdk/python/reference/show-team-roles.mdx
@@ -8,12 +8,12 @@ Show all team roles.
## Signature
```python
-VastAI.show_team_roles() -> str
+VastAI.show_team_roles() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-user.mdx b/sdk/python/reference/show-user.mdx
index 4f72319..53c042a 100644
--- a/sdk/python/reference/show-user.mdx
+++ b/sdk/python/reference/show-user.mdx
@@ -3,23 +3,17 @@ title: "VastAI.show_user"
sidebarTitle: "show_user"
---
-Show user details.
+Show current user details.
## Signature
```python
-VastAI.show_user(quiet: bool = False) -> str
+VastAI.show_user() -> dict
```
-## Parameters
-
-
- quiet
-
-
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/show-volumes.mdx b/sdk/python/reference/show-volumes.mdx
index d91c12b..8a3e69f 100644
--- a/sdk/python/reference/show-volumes.mdx
+++ b/sdk/python/reference/show-volumes.mdx
@@ -8,18 +8,20 @@ Show stats on owned volumes.
## Signature
```python
-VastAI.show_volumes(type: str = "all") -> str
+VastAI.show_volumes(
+ type: str = 'all'
+) -> list[dict]
```
## Parameters
-
- type
+
+ volume type to display. Default to all. Possible values are "local", "all", "network"
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/show-workergroups.mdx b/sdk/python/reference/show-workergroups.mdx
index df932db..43edb93 100644
--- a/sdk/python/reference/show-workergroups.mdx
+++ b/sdk/python/reference/show-workergroups.mdx
@@ -3,17 +3,17 @@ title: "VastAI.show_workergroups"
sidebarTitle: "show_workergroups"
---
-Display current worker groups.
+Show all worker groups.
## Signature
```python
-VastAI.show_workergroups() -> str
+VastAI.show_workergroups() -> list[dict]
```
## Returns
-`str`, Result from the API call.
+`list[dict]`
## Example
diff --git a/sdk/python/reference/ssh-url.mdx b/sdk/python/reference/ssh-url.mdx
index 267e912..6d077da 100644
--- a/sdk/python/reference/ssh-url.mdx
+++ b/sdk/python/reference/ssh-url.mdx
@@ -8,18 +8,20 @@ Get the SSH URL for an instance.
## Signature
```python
-VastAI.ssh_url(id: int) -> str
+VastAI.ssh_url(
+ id: int
+) -> str
```
## Parameters
- id
+ id of instance
## Returns
-`str`, Result from the API call.
+`str`
## Example
diff --git a/sdk/python/reference/start-instance.mdx b/sdk/python/reference/start-instance.mdx
index aeff1c7..9d6e7b7 100644
--- a/sdk/python/reference/start-instance.mdx
+++ b/sdk/python/reference/start-instance.mdx
@@ -3,23 +3,25 @@ title: "VastAI.start_instance"
sidebarTitle: "start_instance"
---
-Start an instance.
+Start a stopped instance.
## Signature
```python
-VastAI.start_instance(id: int) -> str
+VastAI.start_instance(
+ id: int
+) -> dict
```
## Parameters
- id
+ ID of instance to start/restart
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/start-instances.mdx b/sdk/python/reference/start-instances.mdx
index c6db95e..8f8fbd5 100644
--- a/sdk/python/reference/start-instances.mdx
+++ b/sdk/python/reference/start-instances.mdx
@@ -8,18 +8,20 @@ Start multiple instances.
## Signature
```python
-VastAI.start_instances(ids: List[int]) -> str
+VastAI.start_instances(
+ ids: List[int]
+) -> dict
```
## Parameters
- ids
+ ids of instance to start
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.start_instances(ids: List[int]) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.start_instances(ids=[12345])
+result = client.start_instances(ids=12345)
print(result)
```
diff --git a/sdk/python/reference/stop-instance.mdx b/sdk/python/reference/stop-instance.mdx
index 07e65c0..aaa6970 100644
--- a/sdk/python/reference/stop-instance.mdx
+++ b/sdk/python/reference/stop-instance.mdx
@@ -3,23 +3,25 @@ title: "VastAI.stop_instance"
sidebarTitle: "stop_instance"
---
-Stop an instance.
+Stop a running instance.
## Signature
```python
-VastAI.stop_instance(id: int) -> str
+VastAI.stop_instance(
+ id: int
+) -> dict
```
## Parameters
- id
+ id of instance to stop
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/stop-instances.mdx b/sdk/python/reference/stop-instances.mdx
index 96ee919..3d6d189 100644
--- a/sdk/python/reference/stop-instances.mdx
+++ b/sdk/python/reference/stop-instances.mdx
@@ -8,18 +8,20 @@ Stop multiple instances.
## Signature
```python
-VastAI.stop_instances(ids: List[int]) -> str
+VastAI.stop_instances(
+ ids: List[int]
+) -> dict
```
## Parameters
- ids
+ ids of instance to stop
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -27,6 +29,6 @@ VastAI.stop_instances(ids: List[int]) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.stop_instances(ids=[12345])
+result = client.stop_instances(ids=12345)
print(result)
```
diff --git a/sdk/python/reference/take-snapshot.mdx b/sdk/python/reference/take-snapshot.mdx
new file mode 100644
index 0000000..23c1023
--- /dev/null
+++ b/sdk/python/reference/take-snapshot.mdx
@@ -0,0 +1,59 @@
+---
+title: "VastAI.take_snapshot"
+sidebarTitle: "take_snapshot"
+---
+
+Take a container snapshot and push to a registry.
+
+## Signature
+
+```python
+VastAI.take_snapshot(
+ instance_id: Any,
+ container_registry: Optional[str] = 'docker.io',
+ repo: Optional[str] = None,
+ docker_login_user: Optional[str] = None,
+ docker_login_pass: Optional[str] = None,
+ pause: Optional[str] = 'true'
+) -> dict
+```
+
+## Parameters
+
+
+ instance_id of the container instance to snapshot
+
+
+
+ Container registry to push the snapshot to. Default will be docker.io
+
+
+
+ repo to push the snapshot to
+
+
+
+ Username for container registry with repo
+
+
+
+ Password or token for container registry with repo
+
+
+
+ Pause container's processes being executed by the CPU to take snapshot (true/false). Default will be true
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.take_snapshot(instance_id="value")
+print(result)
+```
diff --git a/sdk/python/reference/tfa-activate.mdx b/sdk/python/reference/tfa-activate.mdx
new file mode 100644
index 0000000..c3c2e9a
--- /dev/null
+++ b/sdk/python/reference/tfa-activate.mdx
@@ -0,0 +1,49 @@
+---
+title: "VastAI.tfa_activate"
+sidebarTitle: "tfa_activate"
+---
+
+Activate a new 2FA method by verifying the code.
+
+## Signature
+
+```python
+VastAI.tfa_activate(
+ method_type: Optional[str] = 'totp',
+ secret: Optional[str] = None,
+ phone_number: Optional[str] = None,
+ label: Optional[str] = None
+) -> dict
+```
+
+## Parameters
+
+
+ New 2FA Method type to activate
+
+
+
+ Secret token from setup process (required)
+
+
+
+ Phone number for SMS method (E.164 format)
+
+
+
+ Label for the new 2FA method
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_activate()
+print(result)
+```
diff --git a/sdk/python/reference/tfa-delete.mdx b/sdk/python/reference/tfa-delete.mdx
new file mode 100644
index 0000000..0d5e017
--- /dev/null
+++ b/sdk/python/reference/tfa-delete.mdx
@@ -0,0 +1,59 @@
+---
+title: "VastAI.tfa_delete"
+sidebarTitle: "tfa_delete"
+---
+
+Remove a 2FA method from your account.
+
+## Signature
+
+```python
+VastAI.tfa_delete(
+ id_to_delete: Optional[int] = None,
+ code: Optional[str] = None,
+ method_type: Optional[str] = None,
+ secret: Optional[str] = None,
+ backup_code: Optional[str] = None,
+ method_id: Optional[str] = None
+) -> dict
+```
+
+## Parameters
+
+
+ ID of the 2FA method to delete (see `vastai tfa status`)
+
+
+
+ 2FA code from your Authenticator app, SMS, or Email to authorize deletion
+
+
+
+ 2FA Method type. Only use when you only have one method of this type
+
+
+
+ Secret token (required for SMS or Email 2FA)
+
+
+
+ One-time backup code (alternative to regular 2FA code)
+
+
+
+ 2FA Method ID to use if you have more than one of the same type ('id' from `tfa status`)
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_delete()
+print(result)
+```
diff --git a/sdk/python/reference/tfa-login.mdx b/sdk/python/reference/tfa-login.mdx
new file mode 100644
index 0000000..179f3f3
--- /dev/null
+++ b/sdk/python/reference/tfa-login.mdx
@@ -0,0 +1,54 @@
+---
+title: "VastAI.tfa_login"
+sidebarTitle: "tfa_login"
+---
+
+Complete 2FA login by verifying code.
+
+## Signature
+
+```python
+VastAI.tfa_login(
+ code: Optional[str] = None,
+ method_type: Optional[str] = None,
+ secret: Optional[str] = None,
+ backup_code: Optional[str] = None,
+ method_id: Optional[str] = None
+) -> dict
+```
+
+## Parameters
+
+
+ 2FA code from Authenticator app, SMS, or Email
+
+
+
+ 2FA Method type. Only use when you only have one method of this type
+
+
+
+ Secret token from previous login step (required for SMS or Email 2FA)
+
+
+
+ One-time backup code (alternative to regular 2FA code)
+
+
+
+ 2FA Method ID if you have more than one of the same type ('id' from `tfa status`)
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_login()
+print(result)
+```
diff --git a/sdk/python/reference/tfa-regen-codes.mdx b/sdk/python/reference/tfa-regen-codes.mdx
new file mode 100644
index 0000000..9d448f9
--- /dev/null
+++ b/sdk/python/reference/tfa-regen-codes.mdx
@@ -0,0 +1,54 @@
+---
+title: "VastAI.tfa_regen_codes"
+sidebarTitle: "tfa_regen_codes"
+---
+
+Regenerate backup codes for 2FA.
+
+## Signature
+
+```python
+VastAI.tfa_regen_codes(
+ code: Optional[str] = None,
+ method_type: Optional[str] = None,
+ secret: Optional[str] = None,
+ backup_code: Optional[str] = None,
+ method_id: Optional[str] = None
+) -> dict
+```
+
+## Parameters
+
+
+ 2FA code from Authenticator app, SMS, or Email
+
+
+
+ 2FA Method type. Only use when you only have one method of this type
+
+
+
+ Secret token from previous login step (required for SMS or Email 2FA)
+
+
+
+ One-time backup code (alternative to regular 2FA code)
+
+
+
+ 2FA Method ID if you have more than one of the same type ('id' from `tfa status`)
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_regen_codes()
+print(result)
+```
diff --git a/sdk/python/reference/tfa-resend-sms.mdx b/sdk/python/reference/tfa-resend-sms.mdx
new file mode 100644
index 0000000..5dd4420
--- /dev/null
+++ b/sdk/python/reference/tfa-resend-sms.mdx
@@ -0,0 +1,39 @@
+---
+title: "VastAI.tfa_resend_sms"
+sidebarTitle: "tfa_resend_sms"
+---
+
+Resend SMS 2FA code.
+
+## Signature
+
+```python
+VastAI.tfa_resend_sms(
+ phone_number: Optional[str] = None,
+ secret: Optional[str] = None
+) -> dict
+```
+
+## Parameters
+
+
+ Phone number to receive SMS code (E.164 format, e.g., +1234567890)
+
+
+
+ Secret token from the original 2FA login attempt
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_resend_sms()
+print(result)
+```
diff --git a/sdk/python/reference/tfa-send-sms.mdx b/sdk/python/reference/tfa-send-sms.mdx
new file mode 100644
index 0000000..a7854db
--- /dev/null
+++ b/sdk/python/reference/tfa-send-sms.mdx
@@ -0,0 +1,34 @@
+---
+title: "VastAI.tfa_send_sms"
+sidebarTitle: "tfa_send_sms"
+---
+
+Request a 2FA SMS verification code.
+
+## Signature
+
+```python
+VastAI.tfa_send_sms(
+ phone_number: Optional[str] = None
+) -> dict
+```
+
+## Parameters
+
+
+ Phone number to receive SMS code (E.164 format, e.g., +1234567890)
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_send_sms()
+print(result)
+```
diff --git a/sdk/python/reference/tfa-status.mdx b/sdk/python/reference/tfa-status.mdx
new file mode 100644
index 0000000..c3eb28e
--- /dev/null
+++ b/sdk/python/reference/tfa-status.mdx
@@ -0,0 +1,26 @@
+---
+title: "VastAI.tfa_status"
+sidebarTitle: "tfa_status"
+---
+
+Show the current 2FA status and configured methods.
+
+## Signature
+
+```python
+VastAI.tfa_status() -> dict
+```
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_status()
+print(result)
+```
diff --git a/sdk/python/reference/tfa-totp-setup.mdx b/sdk/python/reference/tfa-totp-setup.mdx
new file mode 100644
index 0000000..133bbba
--- /dev/null
+++ b/sdk/python/reference/tfa-totp-setup.mdx
@@ -0,0 +1,26 @@
+---
+title: "VastAI.tfa_totp_setup"
+sidebarTitle: "tfa_totp_setup"
+---
+
+Generate TOTP secret and QR code for Authenticator app setup.
+
+## Signature
+
+```python
+VastAI.tfa_totp_setup() -> dict
+```
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_totp_setup()
+print(result)
+```
diff --git a/sdk/python/reference/tfa-update.mdx b/sdk/python/reference/tfa-update.mdx
new file mode 100644
index 0000000..c0867a0
--- /dev/null
+++ b/sdk/python/reference/tfa-update.mdx
@@ -0,0 +1,39 @@
+---
+title: "VastAI.tfa_update"
+sidebarTitle: "tfa_update"
+---
+
+Update a 2FA method's settings.
+
+## Signature
+
+```python
+VastAI.tfa_update(
+ label: Optional[str] = None,
+ set_primary: Optional[str] = None
+) -> dict
+```
+
+## Parameters
+
+
+ New label/name for this 2FA method
+
+
+
+ Set this method as the primary/default 2FA method
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.tfa_update()
+print(result)
+```
diff --git a/sdk/python/reference/transfer-credit.mdx b/sdk/python/reference/transfer-credit.mdx
index 39a651d..a0606a0 100644
--- a/sdk/python/reference/transfer-credit.mdx
+++ b/sdk/python/reference/transfer-credit.mdx
@@ -8,22 +8,25 @@ Transfer credit to another account.
## Signature
```python
-VastAI.transfer_credit(recipient: str, amount: float) -> str
+VastAI.transfer_credit(
+ recipient: str,
+ amount: float
+) -> dict
```
## Parameters
- recipient
+ email (or id) of recipient account
- amount
+ dollars of credit to transfer
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.transfer_credit(recipient: str, amount: float) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.transfer_credit(recipient="...", amount=1.0)
+result = client.transfer_credit(recipient="value", amount=1.0)
print(result)
```
diff --git a/sdk/python/reference/unlist-machine.mdx b/sdk/python/reference/unlist-machine.mdx
index 1a525e2..8337ced 100644
--- a/sdk/python/reference/unlist-machine.mdx
+++ b/sdk/python/reference/unlist-machine.mdx
@@ -3,6 +3,32 @@ title: "VastAI.unlist_machine"
sidebarTitle: "unlist_machine"
---
-import UnlistMachineSDK from '/snippets/host/sdk/unlist-machine.mdx';
+Unlist a machine from being available.
-
+## Signature
+
+```python
+VastAI.unlist_machine(
+ id: int
+) -> dict
+```
+
+## Parameters
+
+
+ id of machine to unlist
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.unlist_machine(id=12345)
+print(result)
+```
diff --git a/sdk/python/reference/unlist-volume.mdx b/sdk/python/reference/unlist-volume.mdx
index f0524d5..e25fe4b 100644
--- a/sdk/python/reference/unlist-volume.mdx
+++ b/sdk/python/reference/unlist-volume.mdx
@@ -8,18 +8,20 @@ Unlist a volume offer.
## Signature
```python
-VastAI.unlist_volume(id: int) -> str
+VastAI.unlist_volume(
+ id: int
+) -> dict
```
## Parameters
- id
+ volume ID you want to unlist
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/update-endpoint.mdx b/sdk/python/reference/update-endpoint.mdx
index 9564a36..538a82a 100644
--- a/sdk/python/reference/update-endpoint.mdx
+++ b/sdk/python/reference/update-endpoint.mdx
@@ -3,7 +3,7 @@ title: "VastAI.update_endpoint"
sidebarTitle: "update_endpoint"
---
-Update an existing serverless endpoint group.
+Update an existing endpoint.
## Signature
@@ -11,47 +11,72 @@ Update an existing serverless endpoint group.
VastAI.update_endpoint(
id: int,
min_load: Optional[float] = None,
+ min_cold_load: Optional[float] = None,
+ endpoint_state: Optional[str] = None,
target_util: Optional[float] = None,
cold_mult: Optional[float] = None,
cold_workers: Optional[int] = None,
max_workers: Optional[int] = None,
- endpoint_name: Optional[str] = None
-) -> str
+ endpoint_name: Optional[str] = None,
+ max_queue_time: Optional[float] = None,
+ target_queue_time: Optional[float] = None,
+ inactivity_timeout: Optional[int] = None
+) -> dict
```
## Parameters
- ID of the endpoint to update.
+ id of endpoint group to update
- Minimum load (requests/sec) below which idle workers are scaled down.
+ minimum floor load in perf units/s (token/s for LLms)
+
+
+
+ minimum floor load in perf units/s (token/s for LLms), but allow handling with cold workers
+
+
+
+ active, suspended, or stopped
- Target worker utilization ratio (0.0-1.0).
+ target capacity utilization (fraction, max 1.0, default 0.9)
- Multiplier applied to warm worker count for pre-warming cold workers.
+ cold/stopped instance capacity target as multiple of hot capacity target (default 2.5)
- Number of pre-warmed (cold) workers to keep ready.
+ min number of workers to keep 'cold' when you have no load (default 5)
- Maximum number of workers allowed in this endpoint.
+ max number of workers your endpoint group can have (default 20)
- Human-readable name for the endpoint.
+ deployment endpoint name (allows multiple workergroups to share same deployment endpoint)
+
+
+
+ maximum seconds requests may be queued on each worker (default 30.0)
+
+
+
+ target seconds for the queue to be cleared (default 10.0)
+
+
+
+ seconds of no traffic before the endpoint can scale to zero active workers
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/update-env-var.mdx b/sdk/python/reference/update-env-var.mdx
index 2c7dbb0..f9c783c 100644
--- a/sdk/python/reference/update-env-var.mdx
+++ b/sdk/python/reference/update-env-var.mdx
@@ -8,22 +8,25 @@ Update an existing user environment variable.
## Signature
```python
-VastAI.update_env_var(name: str, value: str) -> str
+VastAI.update_env_var(
+ name: str,
+ value: str
+) -> dict
```
## Parameters
- name
+ Environment variable name to update
- value
+ New environment variable value
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.update_env_var(name: str, value: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.update_env_var(name="...", value="...")
+result = client.update_env_var(name="value", value="value")
print(result)
```
diff --git a/sdk/python/reference/update-instance.mdx b/sdk/python/reference/update-instance.mdx
index a2c7fe9..a80880a 100644
--- a/sdk/python/reference/update-instance.mdx
+++ b/sdk/python/reference/update-instance.mdx
@@ -14,44 +14,44 @@ VastAI.update_instance(
template_hash_id: Optional[str] = None,
image: Optional[str] = None,
args: Optional[str] = None,
- env: Optional[str] = None,
+ env: Optional[loads] = None,
onstart: Optional[str] = None
-) -> str
+) -> dict
```
## Parameters
- id
+ id of instance to update
- template_id
+ new template ID to associate with the instance
- template_hash_id
+ new template hash ID to associate with the instance
- image
+ new image UUID for the instance
- args
+ new arguments for the instance
-
- env
+
+ new environment variables for the instance
- onstart
+ new onstart script for the instance
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/update-scheduled-job.mdx b/sdk/python/reference/update-scheduled-job.mdx
new file mode 100644
index 0000000..ba508f1
--- /dev/null
+++ b/sdk/python/reference/update-scheduled-job.mdx
@@ -0,0 +1,39 @@
+---
+title: "VastAI.update_scheduled_job"
+sidebarTitle: "update_scheduled_job"
+---
+
+Update an existing scheduled job.
+
+## Signature
+
+```python
+VastAI.update_scheduled_job(
+ id: int,
+ request_body: Any
+) -> dict
+```
+
+## Parameters
+
+
+
+
+
+
+
+
+
+## Returns
+
+`dict`
+
+## Example
+
+```python
+from vastai import VastAI
+
+client = VastAI(api_key="YOUR_API_KEY")
+result = client.update_scheduled_job(id=12345, request_body="value")
+print(result)
+```
diff --git a/sdk/python/reference/update-ssh-key.mdx b/sdk/python/reference/update-ssh-key.mdx
index 54790c8..978204f 100644
--- a/sdk/python/reference/update-ssh-key.mdx
+++ b/sdk/python/reference/update-ssh-key.mdx
@@ -8,22 +8,25 @@ Update an SSH key.
## Signature
```python
-VastAI.update_ssh_key(id: int, ssh_key: str) -> str
+VastAI.update_ssh_key(
+ id: int,
+ ssh_key: str
+) -> dict
```
## Parameters
- id
+ id of the ssh key to update
- ssh_key
+ new public key value
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -31,6 +34,6 @@ VastAI.update_ssh_key(id: int, ssh_key: str) -> str
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.update_ssh_key(id=12345, ssh_key="...")
+result = client.update_ssh_key(id=12345, ssh_key="value")
print(result)
```
diff --git a/sdk/python/reference/update-team-role.mdx b/sdk/python/reference/update-team-role.mdx
index 78453d1..fe1c7f9 100644
--- a/sdk/python/reference/update-team-role.mdx
+++ b/sdk/python/reference/update-team-role.mdx
@@ -3,31 +3,35 @@ title: "VastAI.update_team_role"
sidebarTitle: "update_team_role"
---
-Update details of a team role.
+Update an existing team role.
## Signature
```python
-VastAI.update_team_role(id: int, name: Optional[str] = None, permissions: Optional[str] = None) -> str
+VastAI.update_team_role(
+ id: int,
+ name: Optional[str] = None,
+ permissions: Optional[str] = None
+) -> dict
```
## Parameters
- id
+ id of the role
- name
+ name of the role
- permissions
+ file path for json encoded permissions, look in the docs for more information
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/update-template.mdx b/sdk/python/reference/update-template.mdx
index 1d2d4e8..dfe7288 100644
--- a/sdk/python/reference/update-template.mdx
+++ b/sdk/python/reference/update-template.mdx
@@ -9,64 +9,119 @@ Update an existing template.
```python
VastAI.update_template(
- HASH_ID: str,
+ hash_id: str,
name: Optional[str] = None,
image: Optional[str] = None,
+ image_tag: Optional[str] = None,
+ href: Optional[str] = None,
+ repo: Optional[str] = None,
+ login: Optional[str] = None,
env: Optional[str] = None,
- onstart_cmd: Optional[str] = None,
- search_params: Optional[str] = None,
- disk: Optional[float] = None,
ssh: bool = False,
+ jupyter: bool = False,
direct: bool = False,
- jupyter: bool = False
-) -> str
+ jupyter_dir: Optional[str] = None,
+ jupyter_lab: bool = False,
+ onstart_cmd: Optional[str] = None,
+ search_params: Optional[str] = None,
+ no_default: bool = False,
+ disk_space: Optional[str] = None,
+ readme: Optional[str] = None,
+ hide_readme: bool = False,
+ desc: Optional[str] = None,
+ public: bool = False
+) -> dict
```
## Parameters
-
- Hash ID of the template to update.
+
+
- New name for the template.
+ name of the template
- New Docker image for the template.
+ docker container image to launch
+
+
+
+ docker image tag
+
+
+
+ link you want to provide
+
+
+
+ link to repository
+
+
+
+ docker login arguments for private repo authentication, surround with ''
- Environment variables to set (formatted as Docker -e flags).
+ Contents of the 'Docker options' field
+
+
+
+ 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
+
+
+
+ For runtype 'jupyter', Launch instance with jupyter lab
- Shell command to run on instance start.
+ contents of onstart script as single argument
- Default search query parameters for this template.
+ search offers filters
+
+
+
+ Disable default search param query args
+
+
+
+ disk storage space, in GB
-
- Disk space allocation in GB.
+
+ readme string
-
- Enable SSH access for instances created from this template.
+
+ hide the readme from users
-
- Enable direct (peer-to-peer) connections.
+
+ description string
-
- Enable Jupyter notebook server.
+
+ make template available to public
## Returns
-`str`, Result from the API call.
+`dict`
## Example
@@ -74,6 +129,6 @@ VastAI.update_template(
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
-result = client.update_template(HASH_ID="...")
+result = client.update_template(hash_id="value")
print(result)
```
diff --git a/sdk/python/reference/update-workergroup.mdx b/sdk/python/reference/update-workergroup.mdx
index 2736bbc..3c1d38f 100644
--- a/sdk/python/reference/update-workergroup.mdx
+++ b/sdk/python/reference/update-workergroup.mdx
@@ -23,70 +23,70 @@ VastAI.update_workergroup(
launch_args: Optional[str] = None,
endpoint_name: Optional[str] = None,
endpoint_id: Optional[int] = None
-) -> str
+) -> dict
```
## Parameters
- ID of the worker group to update.
+ id of autoscale group to update
- Minimum load (requests/sec) below which idle workers are scaled down.
+ minimum floor load in perf units/s (token/s for LLms)
- Target worker utilization ratio (0.0-1.0).
+ target capacity utilization (fraction, max 1.0, default 0.9)
- Multiplier applied to warm worker count for pre-warming cold workers.
+ cold/stopped instance capacity target as multiple of hot capacity target (default 2.5)
- Number of pre-warmed (cold) workers to keep ready.
+ min number of workers to keep 'cold' for this workergroup
- Number of test workers to spin up during scaling evaluation.
+ number of workers to create to get an performance estimate for while initializing workergroup (default 3)
- Minimum GPU RAM in GiB required per worker.
+ estimated GPU RAM req (independent of search string)
- Hash of the instance template to use for workers.
+ template hash (**Note**: if you use this field, you can skip search_params, as they are automatically inferred from the template)
- ID of the instance template to use for workers.
+ template id
- Query string for filtering available GPU offers.
+ search param string for search offers ex: "gpu_ram>=23 num_gpus=2 gpu_name=RTX_4090 inet_down>200 direct_port_count>2 disk_space>=64"
-
- Disable the default search query filters when finding offers.
+
+ Disable default search param query args
- Additional CLI arguments passed when launching worker instances.
+ launch args string for create instance ex: "--onstart onstart_wget.sh --env '-e ONSTART_PATH=https://s3.amazonaws.com/public.vast.ai/onstart_OOBA.sh' --image atinoda/text-generation-webui:default-nightly --disk 64"
- Human-readable name for the endpoint.
+ deployment endpoint name (allows multiple workergroups to share same deployment endpoint)
- ID of the endpoint this worker group belongs to.
+ deployment endpoint id (allows multiple workergroups to share same deployment endpoint)
## Returns
-`str`, Result from the API call.
+`dict`
## Example
diff --git a/sdk/python/reference/update-workers.mdx b/sdk/python/reference/update-workers.mdx
index af673fe..cbffbe1 100644
--- a/sdk/python/reference/update-workers.mdx
+++ b/sdk/python/reference/update-workers.mdx
@@ -3,27 +3,30 @@ title: "VastAI.update_workers"
sidebarTitle: "update_workers"
---
-Trigger a rolling update of all workers in a workergroup.
+Trigger a rolling update of all workers in a workergroup, or cancel an in-progress update.
## Signature
```python
-VastAI.update_workers(id: int, cancel: bool = False) -> str
+VastAI.update_workers(
+ id: int,
+ cancel: bool = False
+) -> dict
```
## Parameters
- ID of the workergroup to update workers for.
+ id of workergroup to update workers for
-
- Cancel an in-progress update for the workergroup.
+
+ cancel an in-progress update for the workergroup
## Returns
-`str`, Result from the API call.
+`dict`
## Example