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

# nsc instance upload

Upload a file to an instance.

`instance upload` copies a file from your local machine to a Namespace instance.

## Usage

```bash theme={null}
nsc instance upload [instance-id] <local-path> <remote-path>
```

### Example

Upload a configuration file to an instance:

```bash theme={null}
nsc instance upload 85a32emcg99ii ./config.yaml /etc/app/config.yaml
```

```text nocopy Output theme={null}
Uploaded config.yaml (12 KiB) to /etc/app/config.yaml. Took 1.2s.
```

## Options

<h3 id="--container_name--c-name">
  \--container\_name, -c \<name>
</h3>

Target a container by name.

<h3 id="--mkdir">
  \--mkdir
</h3>

Create parent directories on the remote if they don't exist.
