rwx artifacts
Download artifacts for a task and the artifact key.
Usage
rwx artifacts download <task-id> <artifact-key> [flags]
Arguments
<task-id> (required)
The ID of the task to download artifacts for. You can find this key in the Artifacts tab of a task in the RWX UI.
<artifact-key> (required)
The key given to your artifact in your RWX task definition. You can find the task ID in the URL when viewing a task in the RWX UI.
Options
--auto-extract
Specify to automatically extract directory artifacts. Single file artifacts are always extracted.
--json
When specified, JSON will be emitted to stdout instead of plain text. The emitted JSON will be an array of locations of the output files, like so:
{
"outputFiles": [
"/Users/me/Downloads/<task-scope>-<task-id>-<artifact-key>/a.txt",
"/Users/me/Downloads/<task-scope>-<task-id>-<artifact-key>/b.txt"
]
}
This can be helpful if you want to programmatically process the resulting files, as the output can easily be piped into jq, for example.
--open
When specified, the CLI will automatically open the artifact in your default application for viewing them.
--output-file <path> or --output-dir <directory>
These two flags are mutually exclusive.
The path or directory to save the artifact to.
By default, artifacts are placed inside your system's configured downloads directory inside a directory that looks like: <task-scope>-<task-id>-<artifact-key>.