Update plug-ins.
Usage
zowe plugins update [plugin...] [options]
Positional Arguments
Options
-
--registry (string)
-
The NPM registry that is used when installing remote packages. When omitted, the value returned by `npm config get registry` is used.
For more information about NPM registries, see: https://docs.npmjs.com/misc/registry
-
--login (boolean)
-
The flag to add a registry user account to install from secure registry. It saves credentials to the `.npmrc` file using `npm login`.
When omitted, credentials from `.npmrc` file are used. If you used this flag once for specific registry, you do not have to use it again, it uses credentials from `.npmrc` file.
For more information about NPM registries, see:
https://docs.npmjs.com/cli/login
-
--allow-scripts (string)
-
A comma-separated list of package names that are allowed to run their NPM install scripts (preinstall, install, postinstall, and prepare). The names must match. Zowe passes this list to NPM as its own --allow-scripts option.
NPM 12 blocks these scripts unless the package is in the list. This breaks plug-ins that have a dependency that must be built during install, such as the Db2 plug-in and its ibm_db dependency. Older versions of NPM do not know this option and ignore it, so using this option does not change how they work. Older versions of NPM may show a warning about the --allow-scripts option being unknown. This warning can be safely ignored. When omitted, Zowe does not pass anything to NPM, and NPM decides what to do.
Only list packages that you trust. Install scripts can run any code on your machine.
Examples
-
Update a plug-in:
zowe plugins update my-plugin
-
Update a remote plug-in from the registry which requires authorization(don't need to use this flag if you have already logged in before):
zowe plugins update my-plugin --registry https://registry.npmjs.org/ --login
-
Update a plug-in and let one of its dependencies run its npm install scripts:
zowe plugins update my-plugin --allow-scripts="ibm_db"