> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# vastai reboot instance

Reboot (stop/start) an instance

## Usage

```bash theme={null}
vastai reboot instance ID [OPTIONS]
```

## Arguments

<ParamField path="id" type="integer" required>
  id of instance to reboot
</ParamField>

## Options

<ParamField path="--schedule" type="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`
</ParamField>

<ParamField path="--start_date" type="string">
  Start date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is now. (optional)
</ParamField>

<ParamField path="--end_date" type="string">
  End date/time in format 'YYYY-MM-DD HH:MM:SS PM' (UTC). Default is 7 days from now. (optional)
</ParamField>

<ParamField path="--day" type="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
</ParamField>

<ParamField path="--hour" type="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
</ParamField>

## Description

Stops and starts container without any risk of losing GPU priority.

## Examples

```bash theme={null}
vastai reboot instance <ID>
```

## 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`) |
