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

export const QuickstartCard = ({ title, icon, href, children, selected }) => {
  const enter = e => { if (selected) return; const el = e.currentTarget; el.style.borderColor = '#555'; el.querySelector('[data-title]').style.color = '#fff'; el.querySelector('[data-sub]').style.opacity = '0.7'; el.querySelector('[data-icon]').style.opacity = '0.7'; };
  const leave = e => { if (selected) return; const el = e.currentTarget; el.style.borderColor = '#333'; el.querySelector('[data-title]').style.color = ''; el.querySelector('[data-sub]').style.opacity = '0.5'; el.querySelector('[data-icon]').style.opacity = '0.35'; };
  return (
  <a href={href} className="group" style={{ textDecoration: 'none', borderBottom: 'none', color: 'inherit', display: 'block', marginBottom: '0.75rem' }}>
    <div className="border rounded-xl p-5 transition-all duration-150 border-zinc-200 dark:border-zinc-800" style={{
      minHeight: '8rem',
      height: '100%',
      borderWidth: '1.5px',
      borderColor: selected ? '#95c5ea' : '#333',
    }} onMouseEnter={enter} onMouseLeave={leave}>
      <div data-icon style={{ marginBottom: '0.75rem', opacity: selected ? 1 : 0.35, transition: 'opacity 0.15s ease' }}>
        <Icon icon={icon} size={24} color="#95c5ea" />
      </div>
      <div data-title style={{ fontWeight: 600, fontSize: '1.05rem', marginBottom: '0.25rem', color: selected ? '#fff' : undefined, transition: 'color 0.15s ease' }}>{title}</div>
      <div data-sub style={{ fontSize: '0.9rem', opacity: selected ? 0.7 : 0.5, transition: 'opacity 0.15s ease' }}>{children}</div>
    </div>
  </a>
  );
};

<Columns cols={3}>
  <QuickstartCard title="VS Code" icon="window" href="/docs/vscode/operations/modifying-instances">
    Editor extension
  </QuickstartCard>

  <QuickstartCard title="CLI" icon="terminal" href="/docs/cli/operations/modifying-instances" selected={true}>
    Command line
  </QuickstartCard>

  <QuickstartCard title="Console" icon="browser" href="/docs/console/operations/modifying-instances">
    Web interface
  </QuickstartCard>
</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                                                   |
| `--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.
</Note>

## 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.com/pricing) for details.
</Note>
