Options (3)
-o, --outputbooleanScan an image and display results in a specific format
Example:
grype {{image:tag}} {{[-o|--output]}} {{json|table|cyclonedx|cyclonedx-json|sarif|template}}-f, --fail-onbooleanScan an image and fail on vulnerabilities with a severity at or above the given level
Example:
grype {{image:tag}} {{[-f|--fail-on]}} {{negligible|low|medium|high|critical}}-h, --helpbooleanDisplay help
Example:
grype {{[-h|--help]}}Examples (8)
Scan a container image
grype image:tagScan an image and display results in a specific format
grype image:tag [-o|--output] json|table|cyclonedx|cyclonedx-json|sarif|templateScan an image, ignoring unfixed vulnerabilities
grype image:tag --only-fixedScan an image and fail on vulnerabilities with a severity at or above the given level
grype image:tag [-f|--fail-on] negligible|low|medium|high|criticalScan a local directory and save the report to a file
grype path/to/directory --file path/to/reportUpdate the vulnerability database
grype db updateDisplay the current database status
grype db statusDisplay help
grype [-h|--help]made by @shridhargupta | data from tldr-pages