# Severity thresholds for CLI tests

To improve control over your tests, you can use the `--severity-threshold` option for the `snyk test` command with one of the supported levels: `low|medium|high|critical`. With this option, only vulnerabilities of **the specified level or higher** are reported.

`$ snyk test --severity-threshold=medium`

{% hint style="info" %}
Setting `--severity-threshold` to `low` has the same effect as running the command without specifying the threshold; all vulnerabilities are reported.
{% endhint %}

Note: The `--severity-threshold` option is available with the `snyk test`, `snyk code`, `snyk container`, and `snyk iac test` commands. See the [CLI commands help](/developer-tools/snyk-cli/commands.md) pages for each command for details.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snyk.io/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/set-severity-thresholds-for-cli-tests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
