zowe-cli icon indicating copy to clipboard operation
zowe-cli copied to clipboard

Plugins location option

Open EmlynWill opened this issue 1 year ago • 3 comments

Enhancement suggestion: I'd like a "plugins install location" option similar to ZOWE_CLI_HOME so that the plugin directory can be separated from the configs. In this way we can pre install the plugins for our users and allow them to update the configs in their own location. We still need ZOWE_CLI_HOME to save the configs in their own/separate location. ZOWE_CLI_HOME will typically be on a network drive whereas the plugins would be on the C: drive.

EmlynWill avatar Aug 08 '22 14:08 EmlynWill

The desire to control the location of plugins separately from the Zowe home directory is something that we have heard before and casually discussed within the team. Usually the request stems from a desire to share one common set of plugins among an entire group of people.

This is a reasonable enhancement request. We expect it will require some serious design thought and rigorous testing to ensure that we properly accommodate all situations. No work in this area is currently in-progress.

Another consideration will be how to specify the location for the plugin directory. My first inclination would be to use an environment variable to override the default location. However, another of your enhancement requests suggests that the use of environment variables may need to have zowe-cli configuration properties as alternatives. This enhancement might need to go hand-in-hand with that enhancement.

Even if our product management group gives this a moderately high priority, I expect we would take 3 to 6 months to deliver such a feature. Of course we will update you if the status of this request changes. Also, we may solicit your input as we do any design work on such a feature.

gejohnston avatar Aug 12 '22 17:08 gejohnston

An environment variable to set the plugins location would be fine for us, we would set it for the users in the same way that we do for ZOWE_CLI_HOME.

EmlynWill avatar Aug 15 '22 08:08 EmlynWill

A new environment variable ZOWE_CLI_PLUGINS_DIR has been added in Zowe CLI v7.5.0 that allows you to control the plugin install location independently of ZOWE_CLI_HOME.

@anaxceron @JamesBauman Before closing this issue, we should document the new environment variable here: https://docs.zowe.org/stable/user-guide/cli-configuringcli-ev/

t1m0thyj avatar Aug 31 '22 13:08 t1m0thyj

Added to the Zowe docs site in https://github.com/zowe/docs-site/pull/2382. The new env var will be documented at the link above once the Zowe 2.3 release goes live.

t1m0thyj avatar Sep 07 '22 14:09 t1m0thyj