{"id":17601238,"url":"https://github.com/sam-martin/leankit-powershell","last_synced_at":"2025-04-30T07:49:45.894Z","repository":{"id":31391552,"uuid":"34954699","full_name":"Sam-Martin/leankit-powershell","owner":"Sam-Martin","description":"PowerShell module which provides a series of cmdlets for interacting with LeanKit's REST API ","archived":false,"fork":false,"pushed_at":"2020-02-18T18:01:42.000Z","size":46,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T07:49:41.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sam-Martin.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-02T16:21:58.000Z","updated_at":"2020-02-18T18:01:44.000Z","dependencies_parsed_at":"2022-08-29T08:51:18.711Z","dependency_job_id":null,"html_url":"https://github.com/Sam-Martin/leankit-powershell","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sam-Martin%2Fleankit-powershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sam-Martin%2Fleankit-powershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sam-Martin%2Fleankit-powershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sam-Martin%2Fleankit-powershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sam-Martin","download_url":"https://codeload.github.com/Sam-Martin/leankit-powershell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251666226,"owners_count":21624290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T12:09:14.579Z","updated_at":"2025-04-30T07:49:45.869Z","avatar_url":"https://github.com/Sam-Martin.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSLeankit  \n[![GitHub release](https://img.shields.io/github/release/Sam-Martin/leankit-powershell.svg)](https://github.com/Sam-Martin/leankit-powershell/releases/latest) [![GitHub license](https://img.shields.io/github/license/Sam-Martin/leankit-powershell.svg)](LICENSE) ![Test Coverage](https://img.shields.io/badge/coverage-91%25-yellowgreen.svg)  \nThis PowerShell module provides a series of cmdlets for interacting with the [LeanKit REST API](https://support.leankit.com/hc/en-us/sections/200668393-LeanKit-API-Application-Programming-Interface-), performed by wrapping `Invoke-RestMethod` for the API calls.  \n**IMPORTANT:** Neither this module, nor its creator are in any way affiliated with LeanKit, or LeanKit Inc.\n\n## Requirements\nRequires PowerShell 3.0 or above as this is when `Invoke-RestMethod` was introduced.\n\n## Usage\nDownload the [latest release](https://github.com/Sam-Martin/leankit-powershell/releases/latest) and  extract the .psm1 and .psd1 files to your PowerShell profile directory (i.e. the `Modules` directory under wherever `$profile` points to in your PS console) and run:  \n`Import-Module PSLeanKit`  \nOnce you've done this, all the cmdlets will be at your disposal, you can see a full list using `Get-Command -Module PSLeanKit`.\n\n### Example - Creating a Card\n```\n# Setup our default authentication\nAdd-LeanKitProfile -url 'sammartintest.leankit.com'\n\n# Get a random board and its ID\n$BoardID = (Find-LeanKitBoard | Get-Random).Id\n\n# Get full board details\n$Board = Get-LeanKitBoard -BoardID $BoardID\n\n# Choose a random card type\n$CardType = $Board.CardTypes | Get-Random  \n\n# Get the default drop lane\n$Lane = $board.DefaultDropLaneId\n\n# Add the card!\nAdd-LeanKitCard -BoardID $Board.Id -Title \"Test Card\" -Description \"Let's test!\" -CardTypeID $CardType.Id -LaneID $Lane.Id\n```\n\n## Authentication \u0026 Profiles  \nAs of version `0.2` PSLeanKit stores your credentials as encrypted strings in a JSON file in `$env:USERPROFILE` by default.  \nYou can change the location by passing `-ProfileLocation` to `Add-LeanKitProfile` when you execute it.  \nAlternatively you can opt not to use profiles by instead passing the parameters `-URL` and `-Credential` to every parameter you call.\n\n## Cmdlets\nSingularly named cmdlets are wrappers of their plurally named counterparts with a simpler set of parameters. \nIt is highly recommended that multiple commands of the same type are wrapped up into the more complex parameter set of the pluralised cmdlet for the sake of efficiency. (Otherwise an HTTP request will occur per item created/updated/deleted.)\n\n* Add-LeanKitCard\n* Add-LeanKitCards\n* Add-LeanKitProfile\n* Find-LeanKitBoard\n* Get-LeanKitBoard\n* Get-LeanKitCard\n* Get-LeanKitCardsInBoard\n* Get-LeanKitDateFormat\n* Get-LeanKitProfile\n* New-LeanKitCard\n* Remove-LeankitAuth\n* Remove-LeanKitCard\n* Remove-LeanKitCards\n* Remove-LeanKitProfile\n* Set-LeankitAuth\n* Test-LeanKitAuthIsSet\n* Update-LeanKitCard\n* Update-LeanKitCards\n\n\n## Tests\nThis module comes with [Pester](https://github.com/pester/Pester/) tests for unit testing.\nIt is *strongly* recommended that you have a dedicated (free) LeanKit account to test against as these tests pick a random board and populate that.  \nIf it succeeds it will clean up after itself.\n\n## Scope \u0026 Contributing\nThis module has been created as an abstraction layer to suit my immediate requirements. Contributions are gratefully received though!  \nSo please submit a pull request or raise an issue or both!\n \n\n## Author\nAuthor:: Sam Martin (\u003csamjackmartin@gmail.com\u003e)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam-martin%2Fleankit-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsam-martin%2Fleankit-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam-martin%2Fleankit-powershell/lists"}