Skip to content

PowerTrello is a PowerShell module for interacting with the Trello web service.

Notifications You must be signed in to change notification settings

thomassvensen/PowerTrello

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

PowerTrello

PowerTrello is a PowerShell module for interacting with the Trello web service.

How to Use

  1. Sign up for an API key and secret for your Trello subscription here.

  2. Open up your PowerShell console as administrator.

  3. Download the PowerTrello module from Github from within PowerShell into your modules folder.

     $uri = 'https://raw.githubusercontent.com/adbertram/PowerTrello/master/Trello.psm1'
     $sysModulePath = 'C:\Program Files\WindowsPowerShell\Modules'
     if ($sysModulePath -in $env:PSModulePath.Split(';')) {
       $fileName = $uri | Split-Path -Leaf
       $null = mkdir "$sysModulePath\$($fileName.Trim('.psm1'))"
       $filePath = "C:\Program Files\WindowsPowerShell\Modules\$($fileName.Trim('.psm1'))\$($uri | Split-Path -Leaf)"
       Invoke-WebRequest -Uri $uri -OutFile $filePath
     } else {
       throw 'Unable to download PowerTrello into system module path. Please put it there manually.'
     }
    

NOTE: If you use PSGET, you can install this way:

    $uri = 'https://raw.githubusercontent.com/adbertram/PowerTrello/master/Trello.psm1'
    Import-module psget
    Install-module -ModuleUrl $uri 
  1. Retrieve a token from Trello and save to a variable.

$token = Request-TrelloAccessToken –ApiKey MYAPIKEY

  1. Save the token and API key to the registry so you don't have to specify it every time.

Set-TrelloConfiguration –ApiKey MYAPIKEY –AccessToken $token

  1. Make the Trello configuration available in your current PowerShell session.

Get-TrelloConfiguration

  1. Run any of the functions in the module to interact with your Trello boards. For example, just to ensure you can communicate with Trello, run the Get-TrelloBoard function. This function should return all of your Trello boards.

About

PowerTrello is a PowerShell module for interacting with the Trello web service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%