Buildkite CLI artifacts command
The bk artifacts command allows you to manage build artifacts from the command line.
Commands
| Command | Description |
|---|---|
bk artifacts download |
Download an artifact by its UUID. |
bk artifacts list |
List artifacts for a build or a job in a build. |
Download an artifact
Download an artifact by its UUID.
bk artifacts download <artifact-id>
Arguments
| Argument | Description |
|---|---|
<artifact-id> |
Artifact UUID to download |
Flags
| Flag | Description |
|---|---|
--debug |
Enable debug output for REST API calls |
Examples
Download an artifact by UUID:
bk artifacts download 0191727d-b5ce-4576-b37d-477ae0ca830c
List artifacts
List artifacts for a build or a job in a build.
bk artifacts list [<build-number>] [flags]
Arguments
| Argument | Description |
|---|---|
[<build-number>] |
Build number to list artifacts for |
Flags
| Flag | Description |
|---|---|
-j, --job=STRING
|
List artifacts for a specific job on the given build. |
-o, --output="json"
|
Output format. One of: json, yaml, text |
-p, --pipeline=STRING
|
The pipeline to view. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}. If omitted, it will be resolved using the current directory. |
--debug |
Enable debug output for REST API calls |
Examples
By default, artifacts of the most recent build for the current branch is shown:
bk artifacts list
To list artifacts of a specific build:
bk artifacts list 429
To list artifacts of a specific job in a build:
bk artifacts list 429 --job 0193903e-ecd9-4c51-9156-0738da987e87
If not inside a repository or to use a specific pipeline, pass -p:
bk artifacts list 429 -p monolith