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

> Download a statement file from a project.

```bash theme={null}
royaltyport statements download <project_id> <statement_id>
```

Downloads the original statement file to your local machine.

***

## Arguments

| Argument       | Required | Description      |
| -------------- | -------- | ---------------- |
| `project_id`   | Yes      | The project UUID |
| `statement_id` | Yes      | The statement 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 statements download a1b2c3d4-e5f6-7890-abcd-ef1234567890 1234
```

Download to a specific path:

```bash theme={null}
royaltyport statements download a1b2c3d4-e5f6-7890-abcd-ef1234567890 1234 \
  --output ./downloads/Q1-2025-royalties.xlsx
```
