mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-23 09:51:08 -05:00
732 B
732 B
| layout | page_title |
|---|---|
| docs | Validate - Command-Line |
Command-Line: Validate
The packer validate command is used to validate the syntax and configuration
of a template. The command will return
a zero exit status on success, and a non-zero exit status on failure. Additionally,
if a template doesn't validate, any error messages will be outputted.
Example usage:
$ packer validate my-template.json
Template validation failed. Errors are shown below.
Errors validating build 'vmware'. 1 error(s) occurred:
* Either a path or inline script must be specified.
Options
-syntax-only- Only the syntax of the template is checked. The configuration is not validated.