Skip to main content
Reboot (stop/start) an instance

Usage

vastai reboot instance ID [OPTIONS]

Arguments

id
integer
required
id of instance to reboot

Options

--schedule
string
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
--start_date
string
Start date/time in format ‘YYYY-MM-DD HH:MM:SS PM’ (UTC). Default is now. (optional)
--end_date
string
End date/time in format ‘YYYY-MM-DD HH:MM:SS PM’ (UTC). Default is 7 days from now. (optional)
--day
integer
default:"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
integer
default:"0"
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

vastai reboot instance <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)