rwx artifacts download
Download an artifact from a task.
Usage
rwx artifacts download [task-id | run-id --task <key>] [artifact-key] [flags]
Arguments
[task-id]
The ID of the task to download artifacts for. You can find the task ID in the URL when viewing a task in the RWX UI.
Alternatively, pass a run ID with --task <key> to resolve the task by key.
[artifact-key]
The key given to your artifact in your RWX task definition. Not required when using --all.
Options
--task <key>
Resolve the task by key (e.g. ci.checks.lint) instead of ID. Use with a run ID as the first argument.
--all
Download all artifacts for the task.
--auto-extract
Specify to automatically extract directory artifacts. Single file artifacts are always extracted.
--open
Automatically open the artifact in your default application.
--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 .rwx/downloads in your current working directory, or your downloads directory if not in an RWX project, inside a directory that looks like: <task-scope>-<task-id>-<artifact-key>.
Global Options
--output <format>
Output format: text or json. Defaults to text.
Example JSON output:
{
"OutputFiles": [
"/Users/me/Downloads/org-task123-artifacts/a.txt",
"/Users/me/Downloads/org-task123-artifacts/b.txt"
]
}
--access-token <token>
The access token for RWX. Defaults to the value of the $RWX_ACCESS_TOKEN environment variable.