syft <image>Lists every package found in an image as a table.
Example
syft nginx:1.27Generates a software bill of materials (SBOM) from container images and filesystems in SPDX, CycloneDX and other formats.
brew install syftsyft <image>Lists every package found in an image as a table.
Example
syft nginx:1.27syft dir:<path>Catalogues a directory — lock files, manifests and binaries.
Example
syft dir:.syft file:<path>Catalogues a single file such as a JAR or binary.
Example
syft file:./app.jarsyft docker-archive:<file>Reads an image saved with docker save.
Example
syft docker-archive:image.tarsyft registry:<image>Pulls straight from a registry without a Docker daemon.
Example
syft registry:ghcr.io/org/app:latestsyft <image> --scope all-layersIncludes packages from every layer, even ones deleted later.
Example
syft app:latest --scope all-layerssyft <image> --exclude <glob>Skips paths you do not want catalogued.
Example
syft dir:. --exclude './node_modules/**'syft <image> -o spdx-jsonSPDX JSON, a widely accepted SBOM standard.
Example
syft app:latest -o spdx-json > sbom.spdx.jsonsyft <image> -o cyclonedx-jsonCycloneDX JSON, preferred by many security platforms.
Example
syft app:latest -o cyclonedx-json > sbom.cdx.jsonsyft <image> -o syft-jsonSyft’s own lossless format with the most detail.
Example
syft app:latest -o syft-json > sbom.jsonsyft <image> -o table -o spdx-json=<file>Writes several formats in one run.
Example
syft app:latest -o table -o spdx-json=sbom.jsonsyft convert <sbom> -o <format>Converts an existing SBOM between formats.
Example
syft convert sbom.json -o cyclonedx-jsonsyft <image> -o json | jq '.artifacts[] | {name, version, type}'Extracts package names, versions and ecosystems with jq.
Example
syft alpine -o json | jq '.artifacts[] | {name, version, type}'syft <image> --select-catalogers <name>Runs only particular catalogers, such as Python or Java.
Example
syft dir:. --select-catalogers pythonsyft cataloger listLists all available catalogers.