mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
syft: add page (#22489)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# syft
|
||||
|
||||
> Generate a Software Bill of Materials (SBOM) from container images and filesystems.
|
||||
> More information: <https://oss.anchore.com/docs/reference/syft/cli/>.
|
||||
|
||||
- Generate an SBOM from a container image:
|
||||
|
||||
`syft {{image:tag}}`
|
||||
|
||||
- Generate an SBOM from a local directory:
|
||||
|
||||
`syft {{path/to/directory}}`
|
||||
|
||||
- Generate an SBOM from a container archive file:
|
||||
|
||||
`syft {{path/to/archive.tar}}`
|
||||
|
||||
- Generate an SBOM in SPDX JSON format:
|
||||
|
||||
`syft {{image:tag}} {{[-o|--output]}} spdx-json`
|
||||
|
||||
- Generate an SBOM in CycloneDX JSON format:
|
||||
|
||||
`syft {{image:tag}} {{[-o|--output]}} cyclonedx-json`
|
||||
|
||||
- Write the SBOM to a file in a specific format:
|
||||
|
||||
`syft {{image:tag}} {{[-o|--output]}} {{format}}={{path/to/output_file}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`syft {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`syft --version`
|
||||
Reference in New Issue
Block a user