Rewrites pkr.hcl files in the current directory to canonical HCL2 formatting, aligning indentation and spacing. Add -check in CI to fail when templates are not formatted. Related: packer validate .
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.