circleci policy eval

perform raw opa evaluation locally

Synopsis

perform raw opa evaluation locally

circleci policy eval <policy_file_or_dir_path> [flags]

Examples

circleci policy eval ./policies --input ./.circleci/config.yml

Flags

      --context string               policy context for decision (default "config")
  -h, --help                         help for eval
      --input string                 path to input file
      --meta string                  decision metadata (json string)
      --metafile string              decision metadata file
      --no-compile                   skip config compilation (evaluate policy against source config only)
      --owner-id string              the id of the policy's owner
      --pipeline-parameters string   YAML/JSON map of pipeline parameters, accepts either YAML/JSON directly or file path (for example: my-params.yml)
      --query string                 policy decision query (default "data")

Flags inherited from parent commands

      --host string              URL to your CircleCI host, also CIRCLECI_CLI_HOST (default "https://circleci.com")
      --policy-base-url string   base url for policy api (default "https://internal.circleci.com")
      --skip-update-check        Skip the check for updates check run before every command. (default true)
      --token string             your token for using CircleCI, also CIRCLECI_CLI_TOKEN

SEE ALSO