github.com/aspring/packer@v0.8.1-0.20150629211158-9db281ac0f89/website/source/docs/command-line/inspect.html.markdown (about)

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