From a9660c0aeaf478b9f13cb31c8ccbc2df0b48df54 Mon Sep 17 00:00:00 2001 From: Matthew Aynalem Date: Sun, 25 Mar 2018 20:38:41 -0700 Subject: [PATCH] docs/commands - update options to match those listed in command help output --- website/source/docs/commands/build.html.md | 5 +++++ website/source/docs/commands/fix.html.md | 4 ++++ website/source/docs/commands/validate.html.md | 13 +++++++++++++ 3 files changed, 22 insertions(+) diff --git a/website/source/docs/commands/build.html.md b/website/source/docs/commands/build.html.md index 7d331159e..575f9ed84 100644 --- a/website/source/docs/commands/build.html.md +++ b/website/source/docs/commands/build.html.md @@ -49,3 +49,8 @@ that are created will be outputted at the end of the build. - `-parallel=false` - Disable parallelization of multiple builders (on by default). + +- `-var` - Set a variable in your packer template. This option can be used + multiple times. This is useful for setting version numbers for your build. + +- `-var-file` - Set template variables from a file. diff --git a/website/source/docs/commands/fix.html.md b/website/source/docs/commands/fix.html.md index 1793d3275..428ad0e11 100644 --- a/website/source/docs/commands/fix.html.md +++ b/website/source/docs/commands/fix.html.md @@ -35,3 +35,7 @@ human readability. The full list of fixes that the fix command performs is visible in the help output, which can be seen via `packer fix -h`. + +## Options + +- `-validate=false` - Disables validation of the fixed template. True by default. diff --git a/website/source/docs/commands/validate.html.md b/website/source/docs/commands/validate.html.md index d1102f2d1..aba07175a 100644 --- a/website/source/docs/commands/validate.html.md +++ b/website/source/docs/commands/validate.html.md @@ -32,3 +32,16 @@ Errors validating build 'vmware'. 1 error(s) occurred: - `-syntax-only` - Only the syntax of the template is checked. The configuration is not validated. + +- `-except=foo,bar,baz` - Builds all the builds except those with the given + comma-separated names. Build names by default are the names of their builders, + unless a specific `name` attribute is specified within the configuration. + +- `-only=foo,bar,baz` - Only build the builds with the given comma-separated + names. Build names by default are the names of their builders, unless a + specific `name` attribute is specified within the configuration. + +- `-var` - Set a variable in your packer template. This option can be used + multiple times. This is useful for setting version numbers for your build. + +- `-var-file` - Set template variables from a file.