github.com/kikitux/packer@v0.10.1-0.20160322154024-6237df566f9f/website/source/docs/command-line/build.html.md (about) 1 --- 2 description: | 3 The `packer build` Packer command takes a template and runs all the builds 4 within it in order to generate a set of artifacts. The various builds specified 5 within a template are executed in parallel, unless otherwise specified. And the 6 artifacts that are created will be outputted at the end of the build. 7 layout: docs 8 page_title: 'Build - Command-Line' 9 ... 10 11 # Command-Line: Build 12 13 The `packer build` Packer command takes a template and runs all the builds 14 within it in order to generate a set of artifacts. The various builds specified 15 within a template are executed in parallel, unless otherwise specified. And the 16 artifacts that are created will be outputted at the end of the build. 17 18 ## Options 19 20 - `-color=false` - Disables colorized output. Enabled by default. 21 22 - `-debug` - Disables parallelization and enables debug mode. Debug mode flags 23 the builders that they should output debugging information. The exact 24 behavior of debug mode is left to the builder. In general, builders usually 25 will stop between each step, waiting for keyboard input before continuing. 26 This will allow the user to inspect state and so on. 27 28 - `-except=foo,bar,baz` - Builds all the builds except those with the given 29 comma-separated names. Build names by default are the names of their 30 builders, unless a specific `name` attribute is specified within 31 the configuration. 32 33 - `-force` - Forces a builder to run when artifacts from a previous build 34 prevent a build from running. The exact behavior of a forced build is left 35 to the builder. In general, a builder supporting the forced build will 36 remove the artifacts from the previous build. This will allow the user to 37 repeat a build without having to manually clean these artifacts beforehand. 38 39 - `-only=foo,bar,baz` - Only build the builds with the given 40 comma-separated names. Build names by default are the names of their 41 builders, unless a specific `name` attribute is specified within 42 the configuration.