Skip to content
dfinke edited this page Mar 28, 2021 · 2 revisions

Requirements

You'll require:

  • PowerShell
  • Git
  • A GitHub personal access token

Setting the tool up

Once you've got basic environment ready:

  1. Installing the PSAdvantage module

Simply run the command to get your setup up and running:

Install-Module -Name PSAdvantage
  1. Setup the access token

There are three ways to pass the GitHub public access token to PSAdvantage:

Each function supports the parameter -AccessToken

Get-GHRepo dfinke pstest -AccessToken 234234bc234245345a1232342345b5989cba989000a

Copy the public access token from GitHub and paste it in the AccessToken value Line 2 in config.ps1. It should look like:

@{
    AccessToken = '234234bc234245345a1232342345b5989cba989000a'
}

Set the $env:PSAdvantageGHToken variable. This can be set at the cli or in your PowerShell $PROFILE

$env:PSAdvantageGHToken = '234234bc234245345a1232342345b5989cba989000a'
  1. That's it you're all set!

Now, take a look at the Usage section for more info on how to use this tool.

Wiki Index

Clone this wiki locally