github.com/phobos182/packer@v0.2.3-0.20130819023704-c84d2aeffc68/website/source/docs/command-line/inspect.html.markdown (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Inspect - Command-Line"
     4  ---
     5  
     6  # Command-Line: Inspect
     7  
     8  The `packer inspect` command takes a template and outputs the various components
     9  a template defines. This can help you quickly learn about a template without
    10  having to dive into the JSON itself.
    11  The command will tell you things like what variables a template accepts,
    12  the builders it defines, the provisioners it defines and the order they'll
    13  run, and more.
    14  
    15  This command is extra useful when used with
    16  [machine-readable output](/docs/command-line/machine-readable.html) enabled.
    17  The command outputs the components in a way that is parseable by machines.
    18  
    19  The command doesn't validate the actual configuration of the various
    20  components (that is what the `validate` command is for), but it will
    21  validate the syntax of your template by necessity.
    22  
    23  ## Usage Example
    24  
    25  Given a basic template, here is an example of what the output might
    26  look like:
    27  
    28  ```
    29  $ packer inspect template.json
    30  Variables and their defaults:
    31  
    32    aws_access_key =
    33    aws_secret_key =
    34  
    35  Builders:
    36  
    37    amazon-ebs
    38    amazon-instance
    39    virtualbox
    40  
    41  Provisioners:
    42  
    43    shell
    44  ```