Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
e1985e7f
Commit
e1985e7f
authored
Jun 20, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: validate command docs
parent
f1f0e020
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
website/source/docs/command-line/validate.html.markdown
website/source/docs/command-line/validate.html.markdown
+26
-0
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-1
No files found.
website/source/docs/command-line/validate.html.markdown
0 → 100644
View file @
e1985e7f
---
layout
:
"
docs"
---
# Command-Line: Validate
The
`packer validate`
command is used to validate the syntax and configuration
of a
[
template
](
/docs/templates/introduction.html
)
. The command will return
a zero exit status on success, and a non-zero exit status on failure. Additionally,
if a template doesn't validate, any error messages will be outputted.
Example usage:
```
$ packer validate my-template.json
Template validation failed. Errors are shown below.
Errors validating build 'vmware'. 1 error(s) occurred:
* Either a path or inline script must be specified.
```
## Options
*
`-syntax-only`
- Only the syntax of the template is checked. The configuration
is not validated.
website/source/layouts/docs.erb
View file @
e1985e7f
...
...
@@ -33,7 +33,7 @@
<li
class=
"nav-header"
>
Command-Line
</li>
<li><a
href=
"/docs/command-line/introduction.html"
>
Introduction
</a></li>
<li><a
href=
"#"
>
Build
</a></li>
<li><a
href=
"
#
"
>
Validate
</a></li>
<li><a
href=
"
/docs/command-line/validate.html
"
>
Validate
</a></li>
<li
class=
"nav-header"
>
Templates
</li>
<li><a
href=
"/docs/templates/introduction.html"
>
Introduction
</a></li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment