github.com/jerryclinesmith/packer@v0.3.7/command/validate/help.go (about)

     1  package validate
     2  
     3  const helpString = `
     4  Usage: packer validate [options] TEMPLATE
     5  
     6    Checks the template is valid by parsing the template and also
     7    checking the configuration with the various builders, provisioners, etc.
     8  
     9    If it is not valid, the errors will be shown and the command will exit
    10    with a non-zero exit status. If it is valid, it will exit with a zero
    11    exit status.
    12  
    13  Options:
    14  
    15    -syntax-only           Only check syntax. Do not verify config of the template.
    16    -except=foo,bar,baz    Validate all builds other than these
    17    -only=foo,bar,baz      Validate only these builds
    18    -var 'key=value'       Variable for templates, can be used multiple times.
    19    -var-file=path         JSON file containing user variables.
    20  `