github.com/mattyr/nomad@v0.3.3-0.20160919021406-3485a065154a/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 [HCL 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 [HCL job specification](/docs/jobspec/index.html). This file
    22  will be read and the job checked for any problems. If the
    23  supplied path is "-", the jobfile is read from STDIN. Otherwise it is read
    24  from the file at the supplied path or downloaded and read from URL specified.
    25  Nomad downloads jobfile using [`go-getter`](https://github.com/hashicorp/go-getter)
    26  and support `go-getter` syntax.
    27  
    28  On successful validation, exit code 0 will be returned, otherwise an exit code
    29  of 1 indicates an error.
    30