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
ae3fdaea
Commit
ae3fdaea
authored
Aug 13, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: document the inspect command
parent
f36d5f35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
website/source/docs/command-line/inspect.html.markdown
website/source/docs/command-line/inspect.html.markdown
+44
-0
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-0
No files found.
website/source/docs/command-line/inspect.html.markdown
0 → 100644
View file @
ae3fdaea
---
layout
:
"
docs"
page_title
:
"
Inspect
-
Command-Line"
---
# Command-Line: Inspect
The
`packer inspect`
command takes a template and outputs the various components
a template defines. This can help you quickly learn about a template without
having to dive into the JSON itself.
The command will tell you things like what variables a template accepts,
the builders it defines, the provisioners it defines and the order they'll
run, and more.
This command is extra useful when used with
[
machine-readable output
](
/docs/command-line/machine-readable.html
)
enabled.
The command outputs the components in a way that is parseable by machines.
The command doesn't validate the actual configuration of the various
components (that is what the
`validate`
command is for), but it will
validate the syntax of your template by necessity.
## Usage Example
Given a basic template, here is an example of what the output might
look like:
```
$ packer inspect template.json
Variables and their defaults:
aws_access_key =
aws_secret_key =
Builders:
amazon-ebs
amazon-instance
virtualbox
Provisioners:
shell
```
website/source/layouts/docs.erb
View file @
ae3fdaea
...
...
@@ -12,6 +12,7 @@
<li><a
href=
"/docs/command-line/introduction.html"
>
Introduction
</a></li>
<li><a
href=
"/docs/command-line/build.html"
>
Build
</a></li>
<li><a
href=
"/docs/command-line/fix.html"
>
Fix
</a></li>
<li><a
href=
"/docs/command-line/inspect.html"
>
Inspect
</a></li>
<li><a
href=
"/docs/command-line/validate.html"
>
Validate
</a></li>
<li><a
href=
"/docs/command-line/machine-readable.html"
>
Machine-Readable Output
</a></li>
</ul>
...
...
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