-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2652 from saucelabs/DEVX-2749-part4
docs: Add docs for saucectl imagerunner cli
- Loading branch information
Showing
6 changed files
with
313 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
id: artifacts-download | ||
title: saucectl imagerunner artifacts download | ||
sidebar_label: artifacts download | ||
--- | ||
|
||
Get artifacts/files of the container from a Sauce Orchestrate run. Only the files specified in `artifacts` configuration are downloaded. Supports glob pattern. | ||
|
||
## Usage | ||
|
||
```bash | ||
$ saucectl imagerunner artifacts download <runID> <globPattern> [flags] | ||
``` | ||
|
||
## Available Options | ||
|
||
<table id="table-cli"> | ||
<thead> | ||
<tr> | ||
<th width="30%">Flag</th> | ||
<th width="10%">Shorthand</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><span className="t-cli"><a href="#--target-dir">--target-dir</a></span></td> | ||
<td><span className="t-cli">None</span></td> | ||
<td>Save files to target directory. Defaults to current working directory.</td> | ||
</tr> | ||
<tr> | ||
<td><span className="t-cli"><a href="#--out">--out</a></span></td> | ||
<td><span className="t-cli">-o</span></td> | ||
<td>Output format to the console. Options: <code>text</code> (default) and <code>json</code>.</td> | ||
</tr> | ||
<tr> | ||
<td><span className="t-cli"><a href="#--region">--region</a></span></td> | ||
<td><span className="t-cli">-r</span></td> | ||
<td>The Sauce Labs region. Options are <code>us-west-1</code> (default) and <code>eu-central-1</code>.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
## Options Details | ||
|
||
### <span className="cli">--target-dir</span> | ||
|
||
<div className="cli-desc"> | ||
<p><small>| OPTIONAL | STRING |</small></p> | ||
|
||
Save files to target directory. Defaults to current working directory. | ||
|
||
```bash | ||
saucectl imagerunner artifacts download <runID> <globPattern> --target-dir my-artifacts-dir | ||
``` | ||
|
||
</div> | ||
|
||
### <span className="cli">--out</span> | ||
|
||
<div className="cli-desc"> | ||
<p><small>| OPTIONAL | STRING |</small></p> | ||
|
||
Specifies the output format for the console. Options include: "text" or "json". The default setting is "text". | ||
|
||
**Shorthand:** `-o <text/json>` | ||
|
||
```bash | ||
saucectl imagerunner artifacts download <runID> <globPattern> --out json | ||
``` | ||
|
||
</div> | ||
|
||
### <span className="cli">--region</span> | ||
|
||
<div className="cli-desc"> | ||
<p><small>| OPTIONAL | STRING |</small></p> | ||
|
||
The Sauce Labs region. Options are `us-west-1` (default) and `eu-central-1`. | ||
|
||
**Shorthand:** `-r <region>` | ||
|
||
```bash | ||
saucectl imagerunner artifacts download <runID> <globPattern> --region us-west-1 | ||
``` | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
id: list | ||
title: saucectl imagerunner list | ||
sidebar_label: list | ||
--- | ||
|
||
Returns the list of Sauce Orchestrate containers. | ||
|
||
## Usage | ||
|
||
```bash | ||
$ saucectl imagerunner list [flags] | ||
``` | ||
|
||
## Available Options | ||
|
||
<table id="table-cli"> | ||
<thead> | ||
<tr> | ||
<th width="30%">Flag</th> | ||
<th width="10%">Shorthand</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><span className="t-cli"><a href="#--out">--out</a></span></td> | ||
<td><span className="t-cli">-o</span></td> | ||
<td>Output format to the console. Options: <code>text</code> (default) and <code>json</code>.</td> | ||
</tr> | ||
<tr> | ||
<td><span className="t-cli"><a href="#--region">--region</a></span></td> | ||
<td><span className="t-cli">-r</span></td> | ||
<td>The Sauce Labs region. Options are <code>us-west-1</code> (default) and <code>eu-central-1</code>.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
## Options Details | ||
|
||
### <span className="cli">--out</span> | ||
|
||
<div className="cli-desc"> | ||
<p><small>| OPTIONAL | STRING |</small></p> | ||
|
||
Specifies the output format for the console. Options include: "text" or "json". The default setting is "text". | ||
|
||
**Shorthand:** `-o <text/json>` | ||
|
||
```bash | ||
saucectl imagerunner list --out json | ||
``` | ||
|
||
</div> | ||
|
||
### <span className="cli">--region</span> | ||
|
||
<div className="cli-desc"> | ||
<p><small>| OPTIONAL | STRING |</small></p> | ||
|
||
The Sauce Labs region. Options are `us-west-1` (default) and `eu-central-1`. | ||
|
||
**Shorthand:** `-r <region>` | ||
|
||
```bash | ||
saucectl imagerunner list --region us-west-1 | ||
``` | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
id: logs | ||
title: saucectl imagerunner logs | ||
sidebar_label: logs | ||
--- | ||
|
||
Fetches the logs from an imagerunner run. | ||
|
||
## Usage | ||
|
||
```bash | ||
$ saucectl imagerunner logs <runID> [flags] | ||
``` | ||
|
||
## Available Options | ||
|
||
<table id="table-cli"> | ||
<thead> | ||
<tr> | ||
<th width="30%">Flag</th> | ||
<th width="10%">Shorthand</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><span className="t-cli"><a href="#--live">--live</a></span></td> | ||
<td><span className="t-cli">None</span></td> | ||
<td>Tail the live log output from a running Sauce Orchestrate container. Defaults to `false`.</td> | ||
</tr> | ||
<tr> | ||
<td><span className="t-cli"><a href="#--region">--region</a></span></td> | ||
<td><span className="t-cli">-r</span></td> | ||
<td>The Sauce Labs region. Options are <code>us-west-1</code> (default) and <code>eu-central-1</code>.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
## Options Details | ||
|
||
### <span className="cli">--live</span> | ||
|
||
<div className="cli-desc"> | ||
<p><small>| OPTIONAL | BOOLEAN |</small></p> | ||
|
||
Tail the live log output from a running Sauce Orchestrate container. | ||
|
||
```bash | ||
saucectl imagerunner logs <runID> --live | ||
``` | ||
|
||
</div> | ||
|
||
### <span className="cli">--region</span> | ||
|
||
<div className="cli-desc"> | ||
<p><small>| OPTIONAL | STRING |</small></p> | ||
|
||
The Sauce Labs region. Options are `us-west-1` (default) and `eu-central-1`. | ||
|
||
**Shorthand:** `-r <region>` | ||
|
||
```bash | ||
saucectl imagerunner logs <runID> --region us-west-1 | ||
``` | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
id: stop | ||
title: saucectl imagerunner stop | ||
sidebar_label: stop | ||
--- | ||
|
||
Stops a running Sauce Orchestrate container. | ||
|
||
## Usage | ||
|
||
```bash | ||
$ saucectl imagerunner stop <runID> [flags] | ||
``` | ||
|
||
## Available Options | ||
|
||
<table id="table-cli"> | ||
<thead> | ||
<tr> | ||
<th width="30%">Flag</th> | ||
<th width="10%">Shorthand</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><span className="t-cli"><a href="#--region">--region</a></span></td> | ||
<td><span className="t-cli">-r</span></td> | ||
<td>The Sauce Labs region. Options are <code>us-west-1</code> (default) and <code>eu-central-1</code>.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
## Options Details | ||
|
||
### <span className="cli">--region</span> | ||
|
||
<div className="cli-desc"> | ||
<p><small>| OPTIONAL | STRING |</small></p> | ||
|
||
The Sauce Labs region. Options are `us-west-1` (default) and `eu-central-1`. | ||
|
||
**Shorthand:** `-r <region>` | ||
|
||
```bash | ||
saucectl imagerunner stop <runID> --region us-west-1 | ||
``` | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters