autonomy policy build

Build a policy bundle .tar.gz from a directory of .rego files

Synopsis

Compiles all .rego files in –in into a versioned bundle archive at –out.

The archive contains: manifest.json — version, required runtime range, content hash, name, timestamp *.rego — all Open Policy Agent source files from –in

Example: autonomy policy build –in ./policies –out bundle.tar.gz –version 1.2.0
–runtime-version “>=0.1.0 <2.0.0”

Usage

autonomy policy build [flags]

Options

      --in string                source directory containing .rego files (default: .)
      --name string              bundle name (default: basename of --in)
      --out string               output .tar.gz path (default: bundle.tar.gz)
      --runtime-version string   required runtime semver range, e.g. ">=0.1.0 <2.0.0" (default: no constraint)
      --version string           bundle semver version (required)

See also