2013-06-13 13:03:44 -04:00
|
|
|
package validate
|
|
|
|
|
|
|
|
const helpString = `
|
2013-07-02 16:06:34 -04:00
|
|
|
Usage: packer validate [options] TEMPLATE
|
2013-06-13 13:03:44 -04:00
|
|
|
|
|
|
|
Checks the template is valid by parsing the template and also
|
|
|
|
checking the configuration with the various builders, provisioners, etc.
|
|
|
|
|
|
|
|
If it is not valid, the errors will be shown and the command will exit
|
|
|
|
with a non-zero exit status. If it is valid, it will exit with a zero
|
|
|
|
exit status.
|
|
|
|
|
|
|
|
Options:
|
|
|
|
|
2013-08-09 18:12:33 -04:00
|
|
|
-syntax-only Only check syntax. Do not verify config of the template.
|
|
|
|
-except=foo,bar,baz Validate all builds other than these
|
|
|
|
-only=foo,bar,baz Validate only these builds
|
2013-08-09 19:46:06 -04:00
|
|
|
-var 'key=value' Variable for templates, can be used multiple times.
|
|
|
|
-var-file=path JSON file containing user variables.
|
2013-06-13 13:03:44 -04:00
|
|
|
`
|