## zowe › omview › download › report

Download report data.
Optionally convert text report to PDF.

#### Usage

zowe omview download report <repositoryId> <reportHandle> [fileTarget] [options]

#### Positional Arguments

- `repositoryId` (number)

  - Repository identifier.

- `reportHandle` (string)

  - Report handle.

- `fileTarget` (string)

  - Local file path.
    If the path represents a directory location, the report will be downloaded into that directory using a default file name.
    If the path does not represent a directory location, the report will be downloaded into the specified path.
    If the path is not specified, the file will be saved to the current working directory using the default file name.
    Any missing directories will be created. If the target file already exists, the file will be overwritten.

#### Options

- `--convert-to-pdf` | `--to-pdf` (boolean)

  - Converts text report to PDF.

    Default value: false

- `--page-orientation` | `--orientation` (string)

  - Page orientation for converted PDF.

    Default value: PORTRAIT
    Allowed values: PORTRAIT, LANDSCAPE

- `--font-size` | `--font` (number)

  - Font size for converted PDF.

    Default value: 12

- `--green-bar` (boolean)

  - Include green-bar background in converted PDF.

    Default value: false

- `--pages` (string)

  - Include the specified page numbers (or page ranges). Separate page numbers (or page ranges) with commas.
    Separate boundaries of a page range with a dash (-). If you do not specify this option, all the pages of the report are downloaded.

    Allowed values: (\d+(-\d+)?)(,(\d+(-\d+)?))*

- `--content-filter` | `--filter` (string)

  - Filter text report content using a permanent filter definition.
    If the product instance does not support this feature, this option is ignored.

#### OM Web Viewer Connection Options

- `--host` | `--hostname` (string)

  - Hostname or ip address of the target OM Web Viewer instance.

- `--port` (number)

  - Port of the target OM Web Viewer instance.

    Default value: 443

- `--user` | `--username` (string)

  - User name used to authenticate against the target OM Web Viewer instance.

- `--password` (string)

  - Password used to authenticate against the target OM Web Viewer instance.

- `--base-path` (string)

  - Context name of the target OM Web Viewer instance.

    Default value: web-viewer

- `--protocol` (string)

  - Protocol of the target OM Web Viewer instance.

    Default value: https
    Allowed values: http, https

#### Profile Options

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

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

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

  - The name of a (caview) 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

- `--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