Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 660 Bytes

template-validate.rst

File metadata and controls

17 lines (10 loc) · 660 Bytes

Validating Your Template

Once you have created and modified your template file, it is best practice to validate your template before you build or publish it. In order to check that your template does not have any syntax errors or missing mandatory values, run the command validate.

$ hammr validate --file <path/filename>.json
Validating the template file [/Users/james/nginx-template.json] ...
OK: Syntax of template file [/Users/james/nginx-template.json] is ok

If there are any errors, this command will tell you.