Skip to main content
This is a beta feature. Beta features provide early access to product functionality. These features may change between releases without warning, or can be removed in a future release. Please contact us to enable this feature for your organization.

Synopsis

Get a server-side evaluation, or what it was given. The evaluation is shown with its status, the policy it ran, the trails it was asked about, its outcome when it completed, the error when it failed, and the decision it recorded, if any. The command exits 0 whatever the outcome. With --show-input and --output json, the document the policy read as input is added under .input: each trail as it stood at the evaluation’s request time. With --fixture and --dir, what the evaluation was given is written to the directory, so it can be replayed with stock OPA:
  • input.json: the document the policy read as input.
  • data.json: the params, which the policy reads as data.params.
  • policy/: the files of the policy that ran, at their paths in the bundle. The directory must be empty or not exist yet. An evaluation that is still pending can be written too, as its input does not depend on its outcome.

Flags

Flags inherited from parent commands

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 3, 2026