## zowe › rse-api-for-zowe-cli › download › uss-file

Download content from a z/OS UNIX System Services file to a local file on your PC

#### Usage

zowe rse-api-for-zowe-cli download uss-file <ussFileName> [options]

#### Positional Arguments

- `ussFileName` (string)

  - The name of the z/OS UNIX System Services file you want to download

#### Options

- `--binary` | `-b` (boolean)

  - Download the file content in binary mode, which means that no data conversion is performed. The data transfer process returns each line as-is, without translation. No delimiters are added between records.

- `--encoding` | `--ec` (string)

  - Upload the file content with encoding mode, which means that data conversion is performed using the file encoding specified.

- `--file` | `-f` (string)

  - The path to the local file where you want to download the content. When you omit the option, the command generates a file name automatically for you.

#### 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 the file "/a/ibmuser/my_text.txt" to "./my_text.txt":

  - `zowe rse-api-for-zowe-cli download uss-file "/a/ibmuser/my_text.txt" -f "./my_text.txt"`

- Download the file "/a/ibmuser/my_text.txt" to "./my_text.txt" in binary mode:

  - `zowe rse-api-for-zowe-cli download uss-file "/a/ibmuser/my_text.txt" -b -f "./my_text.txt"`