# Ignore vulnerabilities using the Snyk CLI

{% hint style="info" %}
For [Snyk Open Source](https://docs.snyk.io/scan-with-snyk/snyk-open-source), these options work by default.

For [Snyk Container](https://docs.snyk.io/scan-with-snyk/snyk-container), these options also work, but after registering an ignore, when you call `snyk test` or `snyk monitor`, you must use the `--policy-path=` option, for example: `snyk container test node --policy-path=.snyk.`

For [Snyk Infrastructure as Code](https://docs.snyk.io/scan-with-snyk/snyk-iac/scan-your-iac-source-code), see [IaC ignores using the snyk policy file](https://docs.snyk.io/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-cli-for-iac/iac-ignores-using-the-.snyk-policy-file).

For [Snyk Code](https://docs.snyk.io/scan-with-snyk/snyk-code), see [Excluding directories and files from the Snyk Code CLI test](https://docs.snyk.io/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-cli-for-snyk-code/exclude-directories-and-files-from-snyk-code-cli-tests).
{% endhint %}

Sometimes, Snyk alerts you to a vulnerability that has no update or Snyk patch available, or that you do not believe to be currently exploitable in your application. When this happens you may want to tell Snyk to ignore the vulnerability for a certain period of time.

You can ignore a specific vulnerability in a project using the `snyk ignore` command.

`snyk ignore --id=<ISSUE_ID> [--expiry=<EXPIRY>] [--reason=<REASON>] [--policy-path=<PATH_TO_POLICY_FILE>] [<OPTIONS>]`

The `snyk ignore` command updates the `.snyk` file and supports the following options:

| **OPTION**                            | **DESCRIPTION**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | **DEFAULT** | **REQUIRED** |
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- | ------------ |
| `--id`                                | <p>The Snyk ID for the issue to ignore. Found by running <code>snyk test</code> and grabbing the last segment of the URL for a given vulnerability.</p><p><strong>Example:</strong> For the vulnerability found at <a href="https://security.snyk.io/vuln/SNYK-DEBIAN10-NODETOUGHCOOKIE-5759362"><https://security.snyk.io/vuln/SNYK-DEBIAN10-NODETOUGHCOOKIE-5759362></a>, the Snyk ID is:</p><p><a href="https://security.snyk.io/vuln/SNYK-DEBIAN10-NODETOUGHCOOKIE-5759362">SNYK-DEBIAN10-NODETOUGHCOOKIE-5759362</a>.</p> | None        | Yes          |
| `--expiry`                            | <p>Expiry date in YYYY-MM-DD format (<a href="https://tools.ietf.org/html/rfc2822#page-14">RFC2822</a> and <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> are supported).</p><p>Example: <code>--expiry=2017-04-30</code>.</p>                                                                                                                                                                                                                                                                  | 30 days     | No           |
| `--reason`                            | Human-readable \<REASON> to ignore this issue. Example: `reason='Not currently exploitable'`.                                                                                                                                                                                                                                                                                                                                                                                                                                  | None        | No           |
| `--policy-path=<PATH_TO_POLICY_FILE>` | Path to a .snyk policy file to pass manually.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | None        | No           |
| `--path`                              | Path to resource for which to ignore the issue. Example: `path='tough-cookie@2.15.8'`                                                                                                                                                                                                                                                                                                                                                                                                                                          | All         | No           |
