github.com/tonnydourado/packer@v0.6.1-0.20140701134019-5d0cd9676a37/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  * `-except=foo,bar,baz` - Builds all the builds except those with the given
    22    comma-separated names. Build names by default are the names of their builders,
    23    unless a specific `name` attribute is specified within the configuration.
    24  
    25  * `-force` - Forces a builder to run when artifacts from a previous build prevent
    26    a build from running. The exact behavior of a forced build is left to the builder.
    27    In general, a builder supporting the forced build will remove the artifacts from
    28    the previous build. This will allow the user to repeat a build without having to
    29    manually clean these artifacts beforehand.
    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.