github.com/askholme/packer@v0.7.2-0.20140924152349-70d9566a6852/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  * `-color=false` - Disables colorized output. Enabled by default.
    16  
    17  * `-debug` - Disables parallelization and enables debug mode. Debug mode flags
    18    the builders that they should output debugging information. The exact behavior
    19    of debug mode is left to the builder. In general, builders usually will stop
    20    between each step, waiting for keyboard input before continuing. This will allow
    21    the user to inspect state and so on.
    22  
    23  * `-except=foo,bar,baz` - Builds all the builds except those with the given
    24    comma-separated names. Build names by default are the names of their builders,
    25    unless a specific `name` attribute is specified within the configuration.
    26  
    27  * `-force` - Forces a builder to run when artifacts from a previous build prevent
    28    a build from running. The exact behavior of a forced build is left to the builder.
    29    In general, a builder supporting the forced build will remove the artifacts from
    30    the previous build. This will allow the user to repeat a build without having to
    31    manually clean these artifacts beforehand.
    32  
    33  * `-only=foo,bar,baz` - Only build the builds with the given comma-separated
    34    names. Build names by default are the names of their builders, unless a
    35    specific `name` attribute is specified within the configuration.