# Creating Instances

> Create new GPU instances via the CLI. Execute terminal commands to select hardware profiles and initialize remote environments.

VS Code

Editor extension

[Open](https://www.thundercompute.one/docs/vscode/operations/creating-instances.md)

CLI

Command line

[Open](https://www.thundercompute.one/docs/cli/operations/creating-instances.md)

Console

Web interface

[Open](https://www.thundercompute.one/docs/console/operations/creating-instances.md)

## Create an Instance

### Interactive Mode

Run the create command to launch an interactive menu:

```bash theme={null}
tnr create
```

This walks you through selecting your instance configuration step by step.

### One-Line Creation

Specify all options in a single command:

```bash theme={null}
tnr create --gpu a6000 --num-gpus 1 --vcpus 8 --template base --disk 100
```

## Configuration Options

| Flag | Description |
| - | - |
| `--gpu` | GPU type |
| `--num-gpus` | Number of GPUs: 1, 2, 4, or 8 when available |
| `--vcpus` | CPU cores. Options vary by GPU type and count |
| `--template` | `base`, `comfy-ui`, `ollama`, or a snapshot name |
| `--disk` | Disk storage in GB. Range varies by GPU configuration |

### GPU, CPU, and RAM

Available GPU types, GPU counts, vCPU options, and RAM configurations vary by configuration. Use `tnr create` to see current options interactively, or check the [pricing page](https://www.thundercompute.one/pricing) for details.

## Templates

Templates pre-configure your instance for common AI workflows:

| Template | Description |
| - | - |
| `base` | Ubuntu with PyTorch + CUDA |
| `ollama` | Ollama server environment |
| `comfy-ui` | ComfyUI for AI image generation |

After connecting to an instance with a template, start the server with:

```bash theme={null}
start-ollama      # or start-comfy-ui, etc.
```

See [Using Instance Templates](https://www.thundercompute.one/docs/guides/using-instance-templates.md) for more details.

## Restore from Snapshot

Your snapshots appear alongside templates in the selection menu. Select a snapshot to create an instance with your previously saved state.

```bash theme={null}
tnr create
# Select your snapshot in the "Templates" step
```
