diff --git a/website/content/docs/commands/fmt.mdx b/website/content/docs/commands/fmt.mdx index 03a24e800..23e7909ff 100644 --- a/website/content/docs/commands/fmt.mdx +++ b/website/content/docs/commands/fmt.mdx @@ -32,6 +32,15 @@ my-template.pkr.hcl ``` +Format multiple configuration files, writing the changes back to respective original files. + +```shell-session +$ packer fmt my-template.pkr.hcl my-varfile.pkrvars.hcl +my-template.pkr.hcl +my-varfile.pkrvars.hcl + +``` + Format a configuration file, reading from stdin and writing to stdout. ```shell-session