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

# Modifying Instances

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

<Columns cols={3}>
  <Card title="VS Code" icon="window" href="/vscode/operations/modifying-instances" color="#95c5ea" className="platform-card">
    Editor extension
  </Card>

  <Card title="CLI" icon="terminal" color="#95c5ea" className="platform-card platform-current">
    Command line
  </Card>

  <Card title="Console" icon="browser" href="/console/operations/modifying-instances" color="#95c5ea" className="platform-card">
    Web interface
  </Card>
</Columns>

## 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. Options depend on mode                                              |
| `--num-gpus` | Number of GPUs. Options depend on mode and GPU type                           |
| `--vcpus`    | Number of virtual CPUs (development mode; options vary by GPU type and count) |
| `--disk`     | Disk size in GB (can only be increased)                                       |
| `--mode`     | Switch between `development` and `production`                                 |

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

# Switch to production mode
tnr modify 0 --mode production
```

<Note>
  Disk size can only be increased, not decreased.
</Note>

## What Can Be Modified

| Resource  | Can Modify?   | Notes                                                |
| --------- | ------------- | ---------------------------------------------------- |
| GPU Type  | Yes           |                                                      |
| GPU Count | Yes           |                                                      |
| vCPUs     | Yes           | Development mode only                                |
| RAM       | Yes           | Scales with vCPUs (development) or GPUs (production) |
| Mode      | Yes           | Switch between development and production            |
| Disk      | Increase only | Cannot shrink disk                                   |

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