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

# royaltyport contracts download

> Download a contract file from a project.

```bash theme={null}
royaltyport contracts download <project_id> <contract_id>
```

Downloads the original contract file to your local machine.

***

## Arguments

| Argument      | Required | Description      |
| ------------- | -------- | ---------------- |
| `project_id`  | Yes      | The project UUID |
| `contract_id` | Yes      | The contract ID  |

***

## Options

| Option            | Short | Description                                                        |
| ----------------- | ----- | ------------------------------------------------------------------ |
| `--output <path>` | `-o`  | Output file path (default: original filename in current directory) |

***

## Behavior

* Downloads the file to the current directory using the original filename, unless `--output` is specified
* Uses a pre-signed URL — no credentials are sent to the storage provider

***

## Examples

Download with original filename:

```bash theme={null}
royaltyport contracts download a1b2c3d4-e5f6-7890-abcd-ef1234567890 contract-123
```

Download to a specific path:

```bash theme={null}
royaltyport contracts download a1b2c3d4-e5f6-7890-abcd-ef1234567890 contract-123 \
  --output ./downloads/contract.pdf
```
