| 454 | } |
| 455 | |
| 456 | func (*BuildCommand) Help() string { |
| 457 | helpText := ` |
| 458 | Usage: packer build [options] TEMPLATE |
| 459 | |
| 460 | Will execute multiple builds in parallel as defined in the template. |
| 461 | The various artifacts created by the template will be outputted. |
| 462 | |
| 463 | Options: |
| 464 | |
| 465 | -color=false Disable color output. (Default: color) |
| 466 | -debug Debug mode enabled for builds. |
| 467 | -except=foo,bar,baz Run all builds and post-processors other than these. |
| 468 | -only=foo,bar,baz Build only the specified builds. |
| 469 | -force Force a build to continue if artifacts exist, deletes existing artifacts. |
| 470 | -machine-readable Produce machine-readable output. |
| 471 | -on-error=[cleanup|abort|ask|run-cleanup-provisioner] If the build fails do: clean up (default), abort, ask, or run-cleanup-provisioner. |
| 472 | -parallel-builds=1 Number of builds to run in parallel. 1 disables parallelization. 0 means no limit (Default: 0) |
| 473 | -timestamp-ui Enable prefixing of each ui output with an RFC3339 timestamp. |
| 474 | -var 'key=value' Variable for templates, can be used multiple times. |
| 475 | -var-file=path JSON or HCL2 file containing user variables, can be used multiple times. |
| 476 | -warn-on-undeclared-var Display warnings for user variable files containing undeclared variables. |
| 477 | -ignore-prerelease-plugins Disable the loading of prerelease plugin binaries (x.y.z-dev). |
| 478 | -use-sequential-evaluation Fallback to using a sequential approach for local/datasource evaluation. |
| 479 | -skip-enforcement Skip injection of HCP Packer enforced provisioners. |
| 480 | ` |
| 481 | |
| 482 | return strings.TrimSpace(helpText) |
| 483 | } |
| 484 | |
| 485 | func (*BuildCommand) Synopsis() string { |
| 486 | return "build image(s) from template" |