dcloud ecr packages searchFind the images that contain a package
Every scan keeps the full package list of the image, vulnerable packages or not, so the question "which images contain this package" is answered the day an advisory is published, before any vulnerability database knows the CVE. Names match exactly (case-insensitive) unless contains=true. Images scanned before package lists were kept get one on their next scan.
Synopsis
dcloud ecr packages search --name name [flags]Flags
--nameRequiredstring
Package name, case-insensitive (`log4j-core`, `openssl`, `next`)
Constraints: 1-214 chars
--containsOptionalenum
true matches every package whose name contains `name`; exact when omitted
One of:
true,false--versionOptionalstring
Only this exact version
Constraints: 1-128 chars
--ecosystemOptionalstring
Only this ecosystem as the scanner names it: `debian`, `alpine`, `npm`, `gomod` …
Constraints: /^[a-z0-9-]{1,32}$/
--limitOptionalnumber
Matches per page, 1–500; 100 when omitted
Constraints: integer, 1-500
Default:
100--offsetOptionalnumber
Matches to skip; 0 when omitted
Constraints: integer, 0-1000000
Default:
0
Example
dcloud ecr packages search --name exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.