1Open Policy Agent(1)                                      Open Policy Agent(1)
2
3
4

NAME

6       opa-check - Check Rego source files
7
8
9

SYNOPSIS

11       opa check  [path [...]] [flags]
12
13
14

DESCRIPTION

16       Check Rego source files for parse and compilation errors.
17
18
19       If  the  'check'  command  succeeds in parsing and compiling the source
20       file(s), no output is produced. If  the  parsing  or  compiling  fails,
21       'check' will output the errors and exit with a non-zero exit code.
22
23
24

OPTIONS

26       -b,  --bundle[=false]       load paths as bundle files or root directo‐
27       ries
28
29
30       --capabilities=""      set capabilities.json file path
31
32
33       -f, --format=pretty      set output format
34
35
36       -h, --help[=false]      help for check
37
38
39       --ignore=[]      set file and directory names to ignore during  loading
40       (e.g., '.*' excludes hidden files)
41
42
43       -m,  --max-errors=10      set the number of errors to allow before com‐
44       pilation fails early
45
46
47       -s, --schema=""      set schema file path or directory path
48
49
50

SEE ALSO

52       opa(1)
53
54
55
56                                   Jan 2023               Open Policy Agent(1)
Impressum