@@ -14,7 +14,7 @@ wolfictl advisory list
1414
1515List advisories for specific packages, vulnerabilities, or the entire data set.
1616
17- The 'list' (or 'ls') command prints a list of advisories based on the given
17+ The 'list' (or 'ls') command prints a table of advisories based on the given
1818selection criteria. By default, all advisories in the current advisory data set
1919will be listed.
2020
@@ -28,6 +28,21 @@ You can list all advisories for a given vulnerability ID across all packages:
2828
2929 wolfictl adv ls -V CVE-2023-38545
3030
31+ You can filter advisories by the type of the latest event:
32+
33+ wolfictl adv ls -t detection
34+
35+ You can filter advisories by the detected component type:
36+
37+ wolfictl adv ls -c python
38+
39+ You can filter advisories by the date they were created or last updated:
40+
41+ wolfictl adv ls --created-since 2024-01-01
42+ wolfictl adv ls --created-before 2023-12-31
43+ wolfictl adv ls --updated-since 2024-06-01
44+ wolfictl adv ls --updated-before 2024-06-01
45+
3146You can show only advisories that are considered not to be "resolved":
3247
3348 wolfictl adv ls --unresolved
@@ -40,19 +55,41 @@ Using the --history flag, you can list advisory events instead of just
4055advisories' latest states. This is useful for viewing a summary of an
4156investigation over time for a given package/vulnerability match.'
4257
58+ COUNT
59+
60+ You get a count of the advisories that match the criteria by using the --count
61+ flag. This will report just the count, not the full list of advisories.
62+
63+ wolfictl adv ls <various filter flags> --count
64+
65+
4366
4467### Options
4568
4669```
4770 -a, --advisories-repo-dir string directory containing the advisories repository
71+ --aliases show other known vulnerability IDs for each advisory (default true)
72+ -c, --component-type string filter advisories by detected component type
73+ --count show only the count of advisories that match the criteria
74+ --created-before string filter advisories created before a given date
75+ --created-since string filter advisories created since a given date
4876 -h, --help help for list
4977 --history show full history for advisories
50- --no-distro-detection do not attempt to auto-detect the distro
5178 -p, --package string package name
79+ -t, --type string filter advisories by event type
5280 --unresolved only show advisories considered to be unresolved
81+ --updated-before string filter advisories updated before a given date
82+ --updated-since string filter advisories updated since a given date
5383 -V, --vuln string vulnerability ID for advisory
5484```
5585
86+ ### Options inherited from parent commands
87+
88+ ```
89+ --log-level string log level (e.g. debug, info, warn, error) (default "info")
90+ --log-policy strings log policy (e.g. builtin:stderr, /tmp/log/foo) (default [builtin:stderr])
91+ ```
92+
5693### SEE ALSO
5794
5895* [ wolfictl advisory] ( wolfictl_advisory.md ) - Commands for consuming and maintaining security advisory data
0 commit comments