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

### --container\_name, -c \<name>

Target a container by name.

### --mkdir

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.