anchorectl generate

Generate analysis artifacts locally.

Every command on this page also accepts the global flags.

Subcommands

generate analysis-bundle

Generate an analysis bundle from a source.

anchorectl generate analysis-bundle [command]

Subcommands

  • generate analysis-bundle filesystem — Generate an analysis bundle (an uncompressed tar archive containing the SBOM) for a local filesystem directory
  • generate analysis-bundle image — Run a full local analysis of a container image (SBOM, secrets, content search, file contents, manifests) and package the result set into an analysis bundle for later upload with app version asset add analysis.

generate analysis-bundle filesystem

Generate an analysis bundle (an uncompressed tar archive containing the SBOM) for a local filesystem directory.

anchorectl generate analysis-bundle filesystem SOURCE [flags]

Arguments

ArgumentDescription
SOURCEPath to the directory to analyze.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-f, --output-filestringANCHORECTL_OUTPUT_FILE""YesFile to write the analysis bundle tar archive (uncompressed; typically named .tar).
-o, --outputstringANCHORECTL_FORMATsyft-jsonNoThe SBOM format inside the bundle, options: cyclonedx-json, cyclonedx-xml, spdx-json, spdx-tag-value, syft-json. See Output Formats.
--overwriteboolANCHORECTL_OVERWRITEfalseNoOverwrite the output file if it exists.

generate analysis-bundle image

Run a full local analysis of a container image (SBOM, secrets, content search, file contents, manifests) and package the result set into an analysis bundle for later upload with app version asset add analysis.

anchorectl generate analysis-bundle image IMAGE [flags]

Arguments

ArgumentDescription
IMAGEThe image reference to analyze.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-f, --output-filestringANCHORECTL_OUTPUT_FILE""YesWrite the analysis bundle tar archive to this file.
--fromstringANCHORECTL_FROM""NoThe image source: registry (default), docker, podman, or docker-archive:<path> (docker and podman: if the image is not present in the daemon it is pulled from the registry).
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json. See Output Formats.
--overwriteboolANCHORECTL_OVERWRITEfalseNoOverwrite the output file if it exists.
--platformstringANCHORECTL_PLATFORM""NoPlatform to analyze for multi-arch images, e.g. linux/amd64.
Last modified September 22, 2026