> For the complete documentation index, see [llms.txt](https://docs.snyk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snyk.io/developer-tools/snyk-cli/commands/cos-finding-list.md).

# COS finding list

Use snyk cos finding list to list the findings for a target or scan.

## Usage

`snyk cos finding list [<OPTIONS>]`

## Description

The `snyk cos finding list` command lists the findings for a target or scan.

Use the `--target-id`, `--scan-id`, `--severity`, or `--state` options to filter the results.

For a list of related commands, visit the [Snyk COS](/developer-tools/snyk-cli/commands/cos.md) help, `snyk cos --help`.

## Exit codes

Possible exit codes and their meaning:

**0**: findings retrieved\
**3**: failure, target ID or scan ID not found

## Configure the Snyk CLI

You can use environment variables to configure the Snyk CLI and set variables to connect to the Snyk API. For more information, visit [Configure the Snyk CLI](https://docs.snyk.io/snyk-cli/configure-the-snyk-cli).

## Debug

Use the `-d` option to output the debug logs.

## Options

### `--target-id=<TARGET_ID>`

Specify the target whose findings you want to list.

Example:

```bash
$ snyk cos finding list --target-id=92b10f07ec07c7b1b73305181398ccf5
```

### `--scan-id=<SCAN_ID>`

Scope the findings to the occurrences in a single scan.

Example:

```bash
$ snyk cos finding list --scan-id=f3a8c2d1-4b5e-6f7a-8b9c-0d1e2f3a4b5c
```

### `--severity=<SEVERITY>`

Filter the results by severity.

Allowed values: `critical`, `high`, `medium`, `low`

Example:

```bash
$ snyk cos finding list --target-id=92b10f07ec07c7b1b73305181398ccf5 --severity=critical
```

### `--state=<STATE>`

Filter the results by lifecycle state.

Allowed values: `open`, `fixed`

Example:

```bash
$ snyk cos finding list --target-id=92b10f07ec07c7b1b73305181398ccf5 --state=open
```

### `--limit=<LIMIT>`

Specify the maximum number of findings to return. Set to `0` to return all findings.

Default: `0`

Example:

```bash
$ snyk cos finding list --target-id=92b10f07ec07c7b1b73305181398ccf5 --limit=20
```

### `--output=<FORMAT>`, `-o <FORMAT>`

Specify the output format.

Allowed values: `table`, `json`, `yaml`, `ids`

Default: `table`

Example:

```bash
$ snyk cos finding list --target-id=92b10f07ec07c7b1b73305181398ccf5 --output=json
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.snyk.io/developer-tools/snyk-cli/commands/cos-finding-list.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
