This PowerShell module will help you to easily instal PowerShell modules directly from Azure DevOps (aka VSTS) or GitHub or any other git repository. All you need to know is a URL of the git repository and the module will take care of everything else.
The module is compatible both with Linux and Windows versions of PowerShell (Windows PowerShell 5 or PowerShell Core 6).
❗ Git client must be installed and available on path. If you don't have it, you can get it for example from git-scm.com. You can check if you have it by running Get-Command git in your PowerShell.
💨 (not yet available)
git clone https://github.com/iricigor/InstallModuleFromGit Import-Module ./InstallModuleFromGit/InstallModuleFromGit.psd1 # and this is the last time you will be doing it like this # after you install this module you can do it like this Install-GitModule https://github.com/iricigor/InstallModuleFromGit# Check for module existence and its version PS:\> Get-GitModule 'https://github.com/iricigor/FIFA2018' -Verbose # Download and import module in one line PS:\> (Install-GitModule 'https://github.com/iricigor/psaptgetupdate').Name | Import-ModuleChecks for module existence and returns its version. More info here.
Installs PowerShell module to user's default install folder. More info here.
😏 So far the module has a basic testing only, but it is doing that against two platforms - Linux and Windows. Tests results are available on the Tests tab (example here).
Click on images to see details about the latest build runs.
- 📣 dfinke/InstallModuleFromGitHub
- (pluses) does not require git client
- (minuses) works only with GitHub
