For AI agents: the complete documentation index is available at /hclapi/llms.txt, the full documentation bundle is available at /hclapi/llms-full.txt, and this page is available as Markdown at /hclapi/cli/hclapi-openapi.md.

hclapi openapi

NAME

openapi - Export the compiled OpenAPI 3.1 specification for your manifests.

SYNOPSIS

openapi

[--config|-c|--manifests|-m]=[value]
[--format|-f]=[value]
[--output|-o]=[value]
[--pretty]

Usage:

openapi [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]

GLOBAL OPTIONS

--config, -c, --manifests, -m="": Path to .hcl file or directory containing manifests. (default: ".")

--format, -f="": Output format: json or yaml. (default: "json")

--output, -o="": Path to output file (defaults to stdout).

--pretty: Pretty-print JSON output.