---
title: "exo compute instance scp"
description: "SCP files to/from a Compute instance"
url: https://community.exoscale.com/reference/cli/exo/compute/instance/scp/
section: reference
last_updated: 2026-10-14
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# exo compute instance scp

### Description

This command executes the scp(1) command to send or receive files to/from the
specified Compute instance. TARGET (or SOURCE, depending on the direction
of the transfer) must contain the "{}" marker which will be interpolated at
run time with the actual Compute instance IP address, similar to xargs(1).
This marker can be replaced by another string via the --replace-str|-i flag.

Example:

    exo compute instance scp my-instance hello-world.txt {}:
    exo compute instance scp -i%% my-instance %%:/etc/motd .


```
exo compute instance scp INSTANCE-NAME|ID SOURCE TARGET [flags]
```

### Options

| Option | Description |
| --------- | ------------ |
| `--help, -h` | help for scp |
| `--ipv6, -6` |  |
| `--login, -l` |  |
| `--print-command` | print the SCP command that would be executed instead of executing it |
| `--recursive, -r` | recursively copy entire directories |
| `--replace-str, -i` | string to replace with the actual Compute instance information (i.e. username@IP-ADDRESS) |
| `--scp-options, -o` | additional options to pass to the scp(1) command |
| `--zone, -z` | instance zone |


### Options inherited from parent commands

| Option | Description |
| --------- | ------------ |
| `--config, -C` | Specify an alternate config file [env EXOSCALE_CONFIG] |
| `--output-format, -O` | Output format (table\|json\|text), see &#34;exo output --help&#34; for more information |
| `--output-template` | Template to use if output format is &#34;text&#34; |
| `--quiet, -Q` | Quiet mode (disable non-essential command output) |
| `--timeout` | Per-zone timeout for list operations; -1s disables timeout [env EXOSCALE_TIMEOUT] |
| `--use-account, -A` | Account to use in config file [env EXOSCALE_ACCOUNT] |


### Related Commands

* [instance](https://community.exoscale.com/reference/cli/exo/compute/instance/index.md)	 - Compute instances management


