mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-20 23:11:40 -04:00
docs: add exerpt on packer plugins install --path
This commit is contained in:
committed by
Lucas Bajolet
parent
4a4597d828
commit
cc9e9a774c
+1
-1
@@ -169,7 +169,7 @@ Options:
|
||||
version, if there is a new higher one. Note that
|
||||
this still takes into consideration the version
|
||||
constraint of the config.
|
||||
-force Forces installation of plugins, even if already
|
||||
-force Forces reinstallation of plugins, even if already
|
||||
installed.
|
||||
`
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ Options:
|
||||
not try to download it from a remote location, and instead
|
||||
install the binary in the Packer plugins path.
|
||||
This option cannot be specified with a version constraint.
|
||||
- force: forces installation of a plugin, even if it is already there.
|
||||
- force: forces reinstallation of plugins, even if already installed.
|
||||
`
|
||||
|
||||
return strings.TrimSpace(helpText)
|
||||
|
||||
@@ -227,5 +227,15 @@ If you have a `required_plugins` for the plugin you're manually installing, make
|
||||
it respects the constraints described in the [Plugin loading workflow](#plugin-loading-workflow)
|
||||
section, otherwise Packer will not be able to load it.
|
||||
|
||||
Starting with v1.10.0 of Packer, you can also use `packer plugins install` with the
|
||||
`--path` flag to install a plugin from a binary, following the layout that is required to
|
||||
work with `required_plugins` block.
|
||||
|
||||
```shell
|
||||
packer plugins install --path <path-to-plugin-binary> github.com/hashicorp/vagrant
|
||||
```
|
||||
|
||||
-> packer plugins install --path only works with release versions of plugins.
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
Reference in New Issue
Block a user