Skip to content

Build Policy Pack packages.

Usage

rootform package policy-packs <directory> [options]
SHELL

Options

FlagTypeDefaultDescription
--documentation-urlstring""record the documentation url in OCI provenance
--licensesstring""record the SPDX license expression in OCI provenance
--revisionstring""record the source-control revision in OCI provenance
--source-urlstring""record the canonical source url in OCI provenance
--tostring""write the registry layout to directory

Global options

FlagTypeDefaultDescription
-h, --helpboolfalseshow how to use rootform package policy-packs
--colormodeautocolor human output: auto|always|never; default: auto
--no-pagerboolfalseprint a long report in full instead of opening it in less

Behavior

Compile a Policy Pack source set and write one deterministic, local-only registry layout of exact Policy Pack packages. Nothing is sent to a registry.

The summary goes to standard output. Diagnostics go to standard error.

Exit status

StatusDescription
0the registry layout was written
1the Policy Pack source is invalid
2the command was used incorrectly
4a source could not be read or the layout could not be written

Examples

rootform package policy-packs ./policies --to ./artifacts/policies
rootform package policy-packs ./baseline --to ./baseline-oci
rootform package policy-packs . --to ./oci
Shell