OS Manuals

/opt/chainguard/checkov/bin/hcl2tojson

static code and composition analysis tool for IaC

From checkov 3.4.3-r0 (enterprise-packages), captured 2026-11-08 by running hcl2tojson --help (exit 0). permalink

usage: hcl2tojson [-h] [-s] [--version] PATH [OUT_PATH]

This script recursively converts hcl2 files to json

positional arguments:
  PATH        The file or directory to convert
  OUT_PATH    The path where to write files to. Optional when parsing a single file. Output is
              printed to stdout if OUT_PATH is blank

options:
  -h, --help  show this help message and exit
  -s          Skip un-parsable files
  --version   show program's version number and exit
Options (3)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
-sSkip un-parsable fileshelp
--versionshow program's version number and exithelp

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