## nsc artifact download

Download an artifact.

`artifact download` downloads an [artifact](/content/docs/architecture/storage/artifact-storage.md) for this workspace. Currently, only single file downloads are supported.

## Usage

```bash theme={null}
nsc artifact download <src> <dest> [--namespace <namespace>] [--resume] [--unpack]
```

### Example

```sh theme={null}
% nsc artifact download remote.txt local.txt
Downloaded remote.txt (namespace main) to local.txt
```

## Options

### --namespace <namespace>

Namespace of the artifact.

### --resume

Enable resumable downloads with a persistent state file. If the download is interrupted, re-running the same command picks up where it left off instead of starting over.

### --unpack

Unpack the downloaded artifact into the destination directory. The artifact is assumed to be a zip file.
