Canonical: https://weaveos.com/reference/weights-and-biases/download-artifact-version

1. [Software capabilities](https://weaveos.com/reference)
2. /[Weights & Biases](https://weaveos.com/reference/weights-and-biases)
3. /How to download a Weights & Biases artifact version

[![](https://weaveos.com/reference/logos/weights-and-biases.svg)Weights & Biases](https://weaveos.com/reference/weights-and-biases)

# How to download a Weights & Biases artifact version

Use wandb artifact get for a terminal download or the Python Public API to select the artifact version and download its files.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1SDK: wandb.Api().artifact().download()](https://weaveos.com/reference/weights-and-biases/download-artifact-version#method-1)
2. [2CLI: wandb artifact get](https://weaveos.com/reference/weights-and-biases/download-artifact-version#method-2)

SDK

### wandb.Api().artifact().download()

Fetch a specific artifact version using an entity, project, artifact name, and version. Download its files without starting a W\&B Run.

[Read source: W\&B download and use an artifact](https://docs.coreweave.com/products/wandb/artifacts/download-and-use-an-artifact)

- Requirements

  The wandb Python package, authenticated W\&B credentials, and read access to the artifact's project.

- Limitations

  download() writes files locally. Use path\_prefix to download only a named file or subdirectory when eligible.

Example text

Copy

```
import os
import wandb

artifact = wandb.Api().artifact(os.environ["WANDB_ARTIFACT_REF"])
artifact.download(root="./artifact-preview")
```

CLI

### wandb artifact get

Download an artifact by reference into a local directory.

[Read source: W\&B artifact get CLI reference](https://docs.coreweave.com/products/wandb/ref/cli/wandb-artifact/wandb-artifact-get)

- Requirements

  The wandb CLI, authenticated W\&B credentials, and read access to the artifact's project.

- Limitations

  Use an explicit version such as v0 for a reproducible download. --root sets the local destination.

Example shell

Copy

```
wandb artifact get "$WANDB_ARTIFACT_REF" --root ./artifact-preview
```

## More from Weights & Biases

[View all 1 Weights & Biases tasks](https://weaveos.com/reference/weights-and-biases)
