opa-parse(1)

Open Policy Agent(1) Open Policy Agent(1)

NAME

opa-parse - Parse Rego source file

SYNOPSIS

opa parse [flags]

DESCRIPTION

Parse Rego source file and print AST.

OPTIONS

-f, --format=pretty set output format

-h, --help[=false] help for parse

--json-include="" include or exclude optional elements. By default comments are included. Current options: locations, comments. E.g. --json-include locations,-comments will include locations and exclude comments.

--v0-compatible[=false] opt-in to OPA features and behaviors prior to the OPA v1.0 release

SEE ALSO

opa(1)

Oct 2026