@@ -44,6 +44,8 @@ trustify sbom duplicates delete
4444 - [ ` sbom duplicates find ` ] ( #sbom-duplicates-find )
4545 - [ ` sbom duplicates delete ` ] ( #sbom-duplicates-delete )
4646 - [ ` sbom prune ` ] ( #sbom-prune )
47+ - [ ` advisory list ` ] ( #advisory-list )
48+ - [ ` advisory prune ` ] ( #advisory-prune )
4749
4850- [ API Reference] ( #api-reference )
4951- [ License] ( #license )
@@ -228,4 +230,63 @@ trustify sbom prune --output results.json --quiet # Save results to f
228230 "failed_total" : 2 ,
229231 "total" : 4
230232}
233+ ```
234+
235+ ---
236+
237+ ### ` advisory list `
238+
239+ List advisories with filtering, pagination, and output formatting.
240+
241+ ``` bash
242+ trustify advisory list # Full JSON
243+ trustify advisory list --query " title=CVE-2024-1234" # Filter by advisory title
244+ trustify advisory list --limit 10 --offset 20 # Pagination
245+ ```
246+
247+ ---
248+
249+ ### ` advisory prune `
250+
251+ Prune advisories based on various criteria like age or labels. Always preview with ` --dry-run ` first!
252+
253+ ``` bash
254+ trustify advisory prune --dry-run # Preview what will be pruned
255+ trustify advisory prune --older-than 90 # Delete advisories older than 90 days
256+ trustify advisory prune --published-before 2026-01-15T10:30:45Z # Delete advisories published before the specified date
257+ trustify advisory prune --label type=csaf --label importer=run # Delete advisories with specific labels
258+ trustify advisory prune --keep-latest 5 # Keep only 5 most recent per identifier
259+ trustify advisory prune --query " title=CVE-2024-1234" # Custom query filter
260+ trustify advisory prune --limit 1000 # Limit results and increase concurrency
261+ trustify advisory prune --output results.json --quiet # Save results to file, suppress output
262+ ```
263+
264+ ** Output file format:**
265+
266+ ``` json
267+ {
268+ "deleted" : [
269+ {
270+ "id" : " urn:uuid:7f774d1f-bd19-425c-aa7d-1e35e6d527dc" ,
271+ "identifier" : " CVE-2019-7589"
272+ }
273+ ],
274+ "deleted_total" : 1 ,
275+ "skipped" : [
276+ {
277+ "id" : " urn:uuid:3ab23f78-4bf0-44a7-9f1e-2e2bd672643a" ,
278+ "identifier" : " CVE-2019-7304"
279+ }
280+ ],
281+ "skipped_total" : 1 ,
282+ "failed" : [
283+ {
284+ "id" : " urn:uuid:abc123" ,
285+ "identifier" : " CVE-2024-1234" ,
286+ "error" : " HTTP 408: Server timeout"
287+ }
288+ ],
289+ "failed_total" : 1 ,
290+ "total" : 3
291+ }
231292```
0 commit comments