Synopsis
Show signatures and descriptions for the available functionsUsage
Description
Theterraform metadata functions command prints out a JSON representation of the available function signatures in Terraform. This command provides information about all built-in functions available in the Terraform language, including their parameters, return types, and descriptions.
This command is useful for tooling and IDE integrations that need to provide autocomplete, validation, or documentation for Terraform functions.
Options
Produce JSON output. This flag is required for the command to execute. The command will not run without this flag.Default:
falseOutput Format
The command outputs a JSON object where each key is a function name and each value contains the function’s signature information, including:- Parameter names and types
- Return type
- Variadic parameter information (if applicable)
- Function description
Ignored Functions
The following legacy functions are excluded from the output:maplistcore::mapcore::list
Exit Codes
- 0 - Success
- 1 - Error parsing command-line flags, missing required
-jsonflag, or marshaling errors