|
| 1 | +--- |
| 2 | +id: artifacts-download |
| 3 | +title: saucectl imagerunner artifacts download |
| 4 | +sidebar_label: artifacts download |
| 5 | +--- |
| 6 | + |
| 7 | +Get artifacts/files of the container from a Sauce Orchestrate run. Only the files specified in `artifacts` configuration are downloaded. Supports glob pattern. |
| 8 | + |
| 9 | +## Usage |
| 10 | + |
| 11 | +```bash |
| 12 | +$ saucectl imagerunner artifacts download <runID> <globPattern> [flags] |
| 13 | +``` |
| 14 | + |
| 15 | +## Available Options |
| 16 | + |
| 17 | +<table id="table-cli"> |
| 18 | + <thead> |
| 19 | + <tr> |
| 20 | + <th width="30%">Flag</th> |
| 21 | + <th width="10%">Shorthand</th> |
| 22 | + <th>Description</th> |
| 23 | + </tr> |
| 24 | + </thead> |
| 25 | + <tbody> |
| 26 | + <tr> |
| 27 | + <td><span className="t-cli"><a href="#--target-dir">--target-dir</a></span></td> |
| 28 | + <td><span className="t-cli">None</span></td> |
| 29 | + <td>Save files to target directory. Defaults to current working directory.</td> |
| 30 | + </tr> |
| 31 | + <tr> |
| 32 | + <td><span className="t-cli"><a href="#--out">--out</a></span></td> |
| 33 | + <td><span className="t-cli">-o</span></td> |
| 34 | + <td>Output format to the console. Options: <code>text</code> (default) and <code>json</code>.</td> |
| 35 | + </tr> |
| 36 | + <tr> |
| 37 | + <td><span className="t-cli"><a href="#--region">--region</a></span></td> |
| 38 | + <td><span className="t-cli">-r</span></td> |
| 39 | + <td>The Sauce Labs region. Options are <code>us-west-1</code> (default) and <code>eu-central-1</code>.</td> |
| 40 | + </tr> |
| 41 | + </tbody> |
| 42 | +</table> |
| 43 | + |
| 44 | +## Options Details |
| 45 | + |
| 46 | +### <span className="cli">--target-dir</span> |
| 47 | + |
| 48 | +<div className="cli-desc"> |
| 49 | +<p><small>| OPTIONAL | STRING |</small></p> |
| 50 | + |
| 51 | +Save files to target directory. Defaults to current working directory. |
| 52 | + |
| 53 | +```bash |
| 54 | +saucectl imagerunner artifacts download <runID> <globPattern> --target-dir my-artifacts-dir |
| 55 | +``` |
| 56 | + |
| 57 | +</div> |
| 58 | + |
| 59 | +### <span className="cli">--out</span> |
| 60 | + |
| 61 | +<div className="cli-desc"> |
| 62 | +<p><small>| OPTIONAL | STRING |</small></p> |
| 63 | + |
| 64 | +Specifies the output format for the console. Options include: "text" or "json". The default setting is "text". |
| 65 | + |
| 66 | +**Shorthand:** `-o <text/json>` |
| 67 | + |
| 68 | +```bash |
| 69 | +saucectl imagerunner artifacts download <runID> <globPattern> --out json |
| 70 | +``` |
| 71 | + |
| 72 | +</div> |
| 73 | + |
| 74 | +### <span className="cli">--region</span> |
| 75 | + |
| 76 | +<div className="cli-desc"> |
| 77 | +<p><small>| OPTIONAL | STRING |</small></p> |
| 78 | + |
| 79 | +The Sauce Labs region. Options are `us-west-1` (default) and `eu-central-1`. |
| 80 | + |
| 81 | +**Shorthand:** `-r <region>` |
| 82 | + |
| 83 | +```bash |
| 84 | +saucectl imagerunner artifacts download <runID> <globPattern> --region us-west-1 |
| 85 | +``` |
| 86 | + |
| 87 | +</div> |
0 commit comments