# File Transfers

> Move files to and from Thunder instances using the CLI. Upload or download data between local and cloud GPU hardware.

VS Code

Editor extension

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

CLI

Command line

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

Console

Web interface

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

## Transfer Files

```bash theme={null}
tnr scp <source> <destination>
```

Prefix a path with `instance_id:` to indicate it's remote.

```bash theme={null}
# Upload: local → remote
tnr scp ./data.csv 0:/home/user/

# Download: remote → local
tnr scp 0:/home/user/results.csv ./
```

> [!NOTE]
>
> Directories are transferred recursively. SSH keys and `~/` expansion are handled automatically.

> [!NOTE]
>
> Uses `rsync` on Linux and macOS for better performance and progress display. Falls back to `scp` if rsync is unavailable. On Windows/WSL, uses `scp`.

## Best Practices

* **Compress large transfers**: Zip files before transferring to reduce time
* **Use cloud storage for big files**: For datasets over a few GB, upload to cloud storage and download directly to your instance
