dcloud ecr packages search

Find the images that contain a package

IAM ecr:GetScanResultsRead

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

  • --nameRequired

    string

    Package name, case-insensitive (`log4j-core`, `openssl`, `next`)

    Constraints: 1-214 chars

  • --containsOptional

    enum

    true matches every package whose name contains `name`; exact when omitted

    One of: true, false

  • --versionOptional

    string

    Only this exact version

    Constraints: 1-128 chars

  • --ecosystemOptional

    string

    Only this ecosystem as the scanner names it: `debian`, `alpine`, `npm`, `gomod` …

    Constraints: /^[a-z0-9-]{1,32}$/

  • --limitOptional

    number

    Matches per page, 1–500; 100 when omitted

    Constraints: integer, 1-500

    Default: 100

  • --offsetOptional

    number

    Matches to skip; 0 when omitted

    Constraints: integer, 0-1000000

    Default: 0

Example

dcloud ecr packages search --name example

Generated from the API description, the same one the API checks requests against and the CLI is built from.