github.com/kardianos/nomad@v0.1.3-0.20151022182107-b13df73ee850/website/source/docs/commands/validate.html.md.erb (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Commands: validate"
     4  sidebar_current: "docs-commands-validate"
     5  description: >
     6    The validate command is used to check a job specification for syntax errors and validation problems.
     7  ---
     8  
     9  # Command: validate
    10  
    11  The `validate` command is used to check a [job specification](/docs/jobspec/index.html)
    12  for any syntax errors or validation problems.
    13  
    14  ## Usage
    15  
    16  ```
    17  nomad validate <file>
    18  ```
    19  
    20  The validate command requires a single argument, specifying the path to a file
    21  containing a [job specification](/docs/jobspec/index.html). This file
    22  will be read and the job checked for any problems.
    23  
    24  On successful validation, exit code 0 will be returned, otherwise an exit code
    25  of 1 indicates an error.
    26