Skip to main content
Create a new volume

Usage

vastai create volume ID [options]

Arguments

id
integer
required
id of volume offer

Options

-s
number
default:"15"
size in GB of volume. Default 15 GB. (alias: --size)
-n
string
Optional name of volume. (alias: --name)

Description

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

vastai create volume <ID>

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)