OS Manuals

/usr/bin/conftest

Write tests against structured configuration data using the Open Policy Agent Rego query language

From conftest 0.71.1-r7 (os), captured 2026-11-07 by running conftest --help (exit 0). permalink

Also provided by 1 other package version
Test your configuration files using Open Policy Agent

Usage:
  conftest [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  doc         Generate documentation
  fmt         Format Rego files
  help        Help about any command
  parse       Print out structured data from your input files
  plugin      Manage conftest plugins
  pull        Download individual policies
  push        Push OPA bundles to an OCI registry
  reformat    Reformat conftest JSON output to different formats
  test        Test your configuration files using Open Policy Agent
  verify      Verify Rego unit tests

Flags:
  -c, --config-file string   path to configuration file
  -h, --help                 help for conftest
  -v, --version              version for conftest

Use "conftest [command] --help" for more information about a command.
Options (3)
OptionDescriptionSource
-c, --config-file stringpath to configuration filehelp
-h, --helphelp for conftesthelp
-v, --versionversion for conftesthelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.