github.com/aclaygray/packer@v1.3.2/website/source/docs/commands/fix.html.md (about) 1 --- 2 description: | 3 The `packer fix` command takes a template and finds backwards incompatible 4 parts of it and brings it up to date so it can be used with the latest version 5 of Packer. After you update to a new Packer release, you should run the fix 6 command to make sure your templates work with the new release. 7 layout: docs 8 page_title: 'packer fix - Commands' 9 sidebar_current: 'docs-commands-fix' 10 --- 11 12 # `fix` Command 13 14 The `packer fix` command takes a template and finds backwards incompatible 15 parts of it and brings it up to date so it can be used with the latest version 16 of Packer. After you update to a new Packer release, you should run the fix 17 command to make sure your templates work with the new release. 18 19 The fix command will output the changed template to standard out, so you should 20 redirect standard using standard OS-specific techniques if you want to save it 21 to a file. For example, on Linux systems, you may want to do this: 22 23 ``` shell 24 $ packer fix old.json > new.json 25 ``` 26 27 If fixing fails for any reason, the fix command will exit with a non-zero exit 28 status. Error messages appear on standard error, so if you're redirecting 29 output, you'll still see error messages. 30 31 -> **Even when Packer fix doesn't do anything** to the template, the template 32 will be outputted to standard out. Things such as configuration key ordering and 33 indentation may be changed. The output format however, is pretty-printed for 34 human readability. 35 36 The full list of fixes that the fix command performs is visible in the help 37 output, which can be seen via `packer fix -h`. 38 39 ## Options 40 41 - `-validate=false` - Disables validation of the fixed template. True by default.