Skip to content

Commit

Permalink
add example how to use multiple groups (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkyeck committed Jun 9, 2021
1 parent b5607b8 commit 3e7854d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lang/en/docs/cli/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,17 @@ Applying the level flag will limit the audit table to vulnerabilities of the cor

##### `yarn audit [--groups group_name ...]` <a class="toc" id="toc-yarn-add" href="#toc-yarn-add"></a>

Applying the groups flag will limit the audit table to vulnerabilities of the corresponding dependency groups (e.g dependencies,devDependencies).
Applying the groups flag will limit the audit table to vulnerabilities of the corresponding dependency groups (e.g dependencies, devDependencies).

Example for auditing only one group:

```sh
$ yarn audit --groups dependencies
```

Or multiple groups:

```sh
$ yarn audit --groups "dependencies devDependencies"
```

0 comments on commit 3e7854d

Please sign in to comment.