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