Skip to main content
Download an artifact from W&B. Download an artifact by its path. The PATH format is entity/project/artifact_name:version. If the version is omitted, use the ‘latest’ alias. Examples: Download the latest version of an artifact
wandb artifact get entity/project/artifact_name:latest
Download a specific version to a custom directory (”./data” in this example)
wandb artifact get --root ./data entity/project/artifact_name:v2

Usage

wandb artifact get [OPTIONS] PATH

Options

root

Directory to download the artifact to. Uses the default artifact cache if not set.
FlagDefaultType
--rootNoneSTRING

type

Expected artifact type. Fails if the artifact does not match.
FlagDefaultType
--typeNoneSTRING

help

Show this message and exit.
FlagDefaultType
--helpFalseBOOL

CLI Help

Usage: artifact get [OPTIONS] PATH

  Download an artifact from W&B.

  Download an artifact by its path. The PATH format is
  `entity/project/artifact_name:version`. If the version is omitted, use the
  'latest' alias.

  Examples:

  Download the latest version of an artifact

  ```bash wandb artifact get entity/project/artifact_name:latest ```

  Download a specific version to a custom directory ("./data" in this example)

  ```bash wandb artifact get --root ./data entity/project/artifact_name:v2 ```

Options:
  --root TEXT  Directory to download the artifact to. Uses the default
               artifact cache if not set.
  --type TEXT  Expected artifact type. Fails if the artifact does not match.
  --help       Show this message and exit.