|
|
|
|
@ -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.
|
|
|
|
|
|