Skip to content

iricigor/InstallModuleFromGit

Repository files navigation

Install Module from Git

:bowtie: 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).

Prerequisites

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.

Installation

from PowerShell gallery

💨 (not yet available)

clone GitHub repository

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

Examples

# 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-Module

Commands

Get-GitModule

Checks for module existence and returns its version. More info here.

Install-GitModule

Installs PowerShell module to user's default install folder. More info here.

Tests

😏 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).

Windows build status Build Status

Linux build status Build Status

Click on images to see details about the latest build runs.

Similar PowerShell modules