## zowe › rse-api-for-zowe-cli › download › output

Download all job output to a local directory. Each spool DD will be downloaded to its own file in the directory.

#### Usage

zowe rse-api-for-zowe-cli download output <jobid> [options]

#### Positional Arguments

- `jobid` (string)

  - The z/OS JOBID of the job containing the spool files you want to view. No pre-validation of the JOBID is performed.

#### Options

- `--directory` | `-d` | `--dir` (string)

  - The local directory you would like to download the output for the job to.

- `--extension` | `-e` (string)

  - A file extension to save the job output with. Defaults to '.txt'.

- `--omit-jobid-directory` | `--ojd` (boolean)

  - If specified, job output will be saved directly to the specified directory rather than creating a subdirectory named after the ID of the job.

#### Profile Options

- `--rse-profile` | `--rse-p` (string)

  - The name of a (rse) profile to load for this command execution.

- `--base-profile` | `--base-p` (string)

  - The name of a (base) profile to load for this command execution.

#### Base Connection Options

- `--host` | `-H` (string)

  - Host name of service on the mainframe.

- `--port` | `-P` (number)

  - Port number of service on the mainframe.

- `--user` | `-u` (string)

  - User name to authenticate to service on the mainframe.

- `--password` | `--pass` | `--pw` (string)

  - Password to authenticate to service on the mainframe.

- `--reject-unauthorized` | `--ru` (boolean)

  - Reject self-signed certificates.

    Default value: true

- `--token-type` | `--tt` (string)

  - The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'.

- `--token-value` | `--tv` (string)

  - The value of the token to pass to the API.

- `--cert-file` (local file path)

  - The file path to a certificate file to use for authentication.

    Note: The CLI does not support certificate files that require a password. For more information, search Troubleshooting PEM Certificates in Zowe Docs.

- `--cert-key-file` (local file path)

  - The file path to a certificate key file to use for authentication

#### Examples

- Download all the output of the job with job ID JOB00234 to an automatically generated directory.:

  - `zowe rse-api-for-zowe-cli download output JOB00234`