PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
494 stars 93 forks source link

Add the prefix option to install-module #524

Open steskalja opened 3 years ago

steskalja commented 3 years ago

Summary of the new feature / enhancement

When installing modules it would be ideal to have the option to add a prefix to the modules to avoid conflicts with existing modules. This would help when installing items like powercli and hyper-v modules on the same machine.

Proposed technical implementation details (optional)

The -prefix option would work in a similar fashion to the way it works with import-module. This would append the prefix to each of the modules and cmdlets.

iSazonov commented 3 years ago

Does Import-Module -Prefix address your scenario?

steskalja commented 3 years ago

No it does not, The issue arises when installing modules with conflicting cmdlet names. A good example is PowerCLI from VMWare. It would be helpful to add the -prefix option to install-module in this case.