Skip to main content
This command is deprecated. Deprecated commands will be removed in a future release.
use ‘kosli evaluate policy —context trail=FLOW-NAME/TRAIL-NAME’ instead, which evaluates the policy in Kosli

Synopsis

Evaluate multiple trails against a policy. Fetch multiple trails from Kosli and evaluate them together against a Rego policy. The trail data is passed to the policy as input.trails (an array), unlike evaluate trail which passes input.trail (a single object). Use --attestations to enrich the input with detailed attestation data (e.g. pull request approvers, scan results). Use --show-input to inspect the full data structure available to the policy. Use --output json for structured output, and --output-rule to add other rules of the policy, like a report, to it.

Flags

Flags inherited from parent commands

JSON output

With --output json, this command prints JSON that the CLI builds itself. The shape follows the CLI version, not the server’s API spec.

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on November 25, 2026