Skip to main content
Create a new network volume

Usage

vastai create network volume ID [options]

Arguments

id
integer
required
id of network volume offer

Options

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

Description

Creates a network volume from an offer ID (which is returned from “search network 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.

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)