# Modifying Instances

> Reconfigure compute instances using the CLI. Swap GPUs, add vCPUs and RAM, or increase storage space for your compute resources.

VS Code

Editor extension

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

CLI

Command line

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

Console

Web interface

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

## Modify an Instance

Use the modify command with the instance ID and new configuration:

```bash theme={null}
tnr modify <instance_id> [options]
```

### Available Options

| Option | Description |
| - | - |
| `--gpu` | GPU type |
| `--num-gpus` | Number of GPUs: 1, 2, 4, or 8 when available |
| `--vcpus` | Number of virtual CPUs; options vary by GPU type and count |
| `--disk` | Disk size in GB (can only be increased) |

### Examples

```bash theme={null}
# Switch to a different GPU
tnr modify 0 --gpu a100

# Scale up CPUs
tnr modify 0 --vcpus 16

# Increase disk size
tnr modify 0 --disk 300

# Move to 4 GPUs
tnr modify 0 --num-gpus 4
```

> [!NOTE]
>
> Disk size can only be increased, not decreased.

## What Can Be Modified

| Resource | Can Modify? | Notes |
| - | - | - |
| GPU Type | Yes | |
| GPU Count | Yes | |
| vCPUs | Yes | Options vary by GPU configuration |
| RAM | Yes | Automatically determined from the selected CPU/GPU configuration |
| Disk | Increase only | Cannot shrink disk |

> [!NOTE]
>
> RAM is automatically determined based on your configuration. See the [pricing page](https://www.thundercompute.one/pricing) for details.
