psmodule/Install PowerShell

Install a specific version, or the latest stable version, of PowerShell Core on any GitHub runner (Linux, macOS, Windows). Skips the install if the requested version is already present.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
VersionPowerShell version to install (e.g. `7.4.1` or `7.4.0-preview.5`). Defaults to install the latest stable release. Prerelease versions are supported (e.g. `7.4.0-preview.5`, `7.5.0-rc.1`). nolatest
PrereleaseInstall a prerelease version of PowerShell. When `true` and `Version` is `latest`, installs the latest prerelease. Similar to the `-Prerelease` switch on `Install-PSResource`. nofalse
TokenToken used for GitHub API calls. Defaults to github.token. Set to an empty string for anonymous API access. no${{ github.token }}
HostGitHub host used by gh CLI for API calls. Use github.com for GitHub.com or your GHES hostname. nogithub.com

no outputs