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