From 96e33c549778bc5b597b8c878418e5cfd56916e0 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 13 May 2024 11:07:16 -0400 Subject: [PATCH] init:Document force flag option for init command --- website/content/docs/commands/init.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/content/docs/commands/init.mdx b/website/content/docs/commands/init.mdx index 940751c5b..e1f74f320 100644 --- a/website/content/docs/commands/init.mdx +++ b/website/content/docs/commands/init.mdx @@ -7,7 +7,7 @@ page_title: packer init - Commands # `init` Command -> **Note:** Packer init does not work with legacy JSON templates. You can -upgrade your JSON config files to HCL using the [hcl2_upgrade](/packer/docs/commands/hcl2_upgrade) command. +upgrade your JSON template files to HCL using the [hcl2_upgrade](/packer/docs/commands/hcl2_upgrade) command. -> **Note:** Packer init will only work with multi-component plugins -- that is plugins that are named `packer-plugin-*`. To install a single-component plugin -- @@ -91,4 +91,8 @@ See [Installing Plugins](/packer/docs/plugins#installing-plugins) for more infor - `-upgrade` - On top of installing missing plugins, update installed plugins to the latest available version, if there is a new higher one. Note that this - still takes into consideration the version constraint of the config. + still takes into consideration the version constraint of the template. + +- `-force` - Forces reinstallation of plugins, even if already installed. Note + that only the highest installed version matching the template version + constraint will be reinstalled, all other plugins will be left untouched.