# phi artifacts

Manage run artifacts.

## phi artifacts download

Download run artifacts. With several run ids, --ids-file or --project, each run lands in OUT/<run_id>/ and OUT/summary.json records the outcome per run. Re-running skips files already present.

```bash
phi artifacts download [RUN_IDS...] --out OUT [options]
```

### Arguments

| Name | Required | Description |
|---|---|---|
| `RUN_IDS...` | Optional | Run ids; defaults to .phi/state.json. Several ids download one folder each. |

### Options

| Flag | Value | Description |
|---|---|---|
| `--out` (required) | OUT | Output directory. |
| `--stage` | STAGE | Filter by pipeline stage. |
| `--suffix` | SUFFIX | Filter by filename suffix. |
| `--all` | switch | Download every artifact in the run. |
| `--concurrency` | CONCURRENCY, default 8 | Parallel downloads. |
| `--overwrite` | switch | Re-download existing files. |
| `--ids-file` | IDS_FILE | File of run ids, one per line; # starts a comment. |
| `--project` | PROJECT | Download every completed run in this project. |
| `--batch` | BATCH | With --project, only this batch id. |
| `--expires-in` | EXPIRES_IN | Signed URL lifetime in seconds. |
| `--fail-fast, --keep-going` | switch, default true | Continue past a failed run (exit 1 at the end). |

## phi artifacts list

```bash
phi artifacts list [RUN_ID] [options]
```

### Arguments

| Name | Required | Description |
|---|---|---|
| `RUN_ID` | Optional | Run id; defaults to .phi/state.json. |

### Options

| Flag | Value | Description |
|---|---|---|
| `--stage` | STAGE | Filter by pipeline stage. |
| `--suffix` | SUFFIX | Filter by filename suffix. |


---
Source: https://dynophi.com/docs/cli/artifacts. From the installed client, phi 0.4.2, 2026-11-23.
