PATH can be a local file, a local directory, or a URL
(containing ://) to log as a reference artifact.
If --name is not specified, the artifact name defaults to the
basename of the path. If the project cannot be parsed from the
name, you are prompted to enter one.
Examples:
Upload all files in a local directory ./data/training as a dataset artifact in W&B.
Usage
Options
name
Artifact name in project/artifact_name format. Defaults to the basename of the path.
| Flag | Default | Type |
|---|---|---|
-n, --name | None | STRING |
description
A description of this artifact.
| Flag | Default | Type |
|---|---|---|
-d, --description | None | STRING |
type
The type of the artifact. Defaults to ‘dataset’.
| Flag | Default | Type |
|---|---|---|
-t, --type | dataset | STRING |
alias
An alias to apply to this artifact. Can be specified multiple times. Defaults to ‘latest’.
| Flag | Default | Type |
|---|---|---|
-a, --alias | [‘latest’] | STRING |
run_id
Upload to an existing run with this ID.
| Flag | Default | Type |
|---|---|---|
--id | None | STRING |
resume
Resume the last run from your current directory.
| Flag | Default | Type |
|---|---|---|
--resume | None | BOOL |
skip_cache
Skip caching while uploading artifact files.
| Flag | Default | Type |
|---|---|---|
--skip_cache | False | BOOL |
policy
Set the storage policy for artifact files. Either ‘mutable’ (default) or ‘immutable’.
| Flag | Default | Type |
|---|---|---|
--policy | mutable | Choice([‘mutable’, ‘immutable’]) |
help
Show this message and exit.
| Flag | Default | Type |
|---|---|---|
--help | False | BOOL |
CLI Help
wandb artifact put --type dataset --description "Training data, Jan