github.com/phobos182/packer@v0.2.3-0.20130819023704-c84d2aeffc68/website/source/docs/command-line/validate.html.markdown (about) 1 --- 2 layout: "docs" 3 page_title: "Validate - Command-Line" 4 --- 5 6 # Command-Line: Validate 7 8 The `packer validate` command is used to validate the syntax and configuration 9 of a [template](/docs/templates/introduction.html). The command will return 10 a zero exit status on success, and a non-zero exit status on failure. Additionally, 11 if a template doesn't validate, any error messages will be outputted. 12 13 Example usage: 14 15 ``` 16 $ packer validate my-template.json 17 Template validation failed. Errors are shown below. 18 19 Errors validating build 'vmware'. 1 error(s) occurred: 20 21 * Either a path or inline script must be specified. 22 ``` 23 24 ## Options 25 26 * `-syntax-only` - Only the syntax of the template is checked. The configuration 27 is not validated.