Skip to content

PowerShell A GitHub & PowerShell development framework

We empower PowerShell-savvy developers to effortlessly transform their ideas into impactful solutions. Our approach centers around a development framework that allows developers to focus on delivering value through their code. By leveraging the GitHub platform and PowerShell, we aim to automate the repetitive tasks, enabling developers — whether as consumers or contributors — to concentrate on coding without distractions.

Project types

PowerShell modules

About A PowerShell module is a set of functions, scripts, and cmdlets that are bundled together in a single package. Modules are used to organize and distribute code in a way that is easy to use and share. They can be used to extend the functionality of PowerShell, automate tasks, and create reusable code that can be shared with others. We have created a framework that automates the process of creating, testing, and publishing PowerShell modules to the PowerShell Gallery. This framework is designed to make it easy for developers to create and share their PowerShell modules with the community.
How we do it in PSModule Projects based on the `Template-PSModule` repository template will automatically have the necessary workflows and configurations set up to automate the process of creating, testing, and publishing PowerShell modules to the PowerShell Gallery. This includes workflows for building, testing, and releasing the module, as well as a configuration file for setting up the module's metadata and dependencies. Using custom properties we set `RepoType` to `Module`. We use branch policies to control the flow of changes to the `main` branch, and we use labels to control the versioning of the module when a pull request is merged.
Create a new project 1. [Create a repository based on the template Template-PSModule](https://github.com/new?template_name=Template-PSModule&template_owner=PSModule). The module will by default use the name of the repository. See [Process-PSModule](https://github.com/PSModule/Process-PSModule) for more info on choosing another name than the repository name. 1. Create a repository or organization secret called `APIKEY` holding the API key for the PowerShell Gallery. 1. Configure the settings you want for the repository including a branch policy for the `main` branch. 1. On a topic branch: 1. develop the code you want to add to your module. 1. delete the parts you do not need. 1. update the tests in the `tests` folder. 1. Create a PR. Add a label to the PR depending on what you want to do. - `Major` - Will create a major release (vX.0.0) when merged. If specified with "Prerelease", a major version will be created using the prerelease tag (vX.0.0-\). - `Minor` - Will create a minor release (vX.Y.0) when merged. If specified with "Prerelease", a minor version will be created using the prerelease tag (vX.Y.0-\). - `Patch` - Will create a minor release (vX.Y.Z) when merged. If specified with "Prerelease", a minor version will be created using the prerelease tag (vX.Y.Z-\). A patch version bump is the default if nothing is specified for the PR. - `Prerelease` - CI will create a prerelease of the module using the branch name as a prerelease tag in the version. This will create both a repository release and a prerelease version of the module on the PowerShell Gallery. 1. Once the PR is created, the [Process-PSModule](https://github.com/PSModule/Process-PSModule) workflow will trigger. 1. When the PR is merged, a release will be created and the module will be published to the PowerShell Gallery with a stable version based on the version bump indicator the PR was was labeled with. Prerelease tags will be cleaned up on the repository.
Modules delivered on the PowerShell Gallery
Name Description Version
Admin A PowerShell module working with the admin role.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
AST A PowerShell module for using the Abstract Syntax Tree (AST) to analyze any PowerShell code.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
AzureDevOps A PowerShell module to interact with the Azure DevOps REST API.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
DynamicParams A PowerShell module that makes it easier to use dynamic params.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
Fonts A PowerShell module for managing fonts.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
GitHub A PowerShell module to interact with the GitHub API.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
GoogleFonts A PowerShell module to download and install fonts from GoogleFonts.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
NerdFonts A PowerShell module to download and install fonts from NerdFonts.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
PATH A PowerShell module to manage the PATH environment variable on Windows.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
PowerShellGallery A PowerShell module for interacting with the PowerShell Gallery.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
PSSemVer A PowerShell module adding a SemVer compatible class and functions.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
PublicIP A PowerShell module that helps getting info about your public IP.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
Store A PowerShell module that manages a store of secrets and variables.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
Utilities A PowerShell module with a collection of functions that should have been in PowerShell to start with.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version
WoW A PowerShell module containing utilities for World of Warcraft.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks PowerShell Gallery Downloads
GitHub release (with filter) PowerShell Gallery Version

PowerShell based Azure Function Apps

About A PowerShell based Azure Function App is a serverless compute service that enables you to run event-driven code without having to manage the infrastructure. Azure Functions are ideal for processing data, integrating systems, and building simple APIs or microservices. They can be triggered by a variety of events, such as HTTP requests, timers, or messages from Azure services like Azure Storage, Event Grid, or Service Bus. We have created a framework that automates the process of creating, testing, and deploying PowerShell based Azure Function Apps to Azure. This framework is designed to make it easy for developers to create and deploy their Azure Function Apps without having to worry about the underlying infrastructure.
How we do it in PSModule Projects based on the `Template-FunctionApp` repository template will automatically have the necessary workflows and configurations set up to automate the process of creating, testing, and deploying PowerShell based Azure Function Apps to Azure. This includes workflows for building, testing, and deploying the function app, as well as a configuration file for setting up the function app's metadata and dependencies. Using custom properties we set `RepoType` to `FunctionApp`. We use branch policies to control the flow of changes to the `main` branch, and we use labels to control the versioning of the module when a pull request is merged.
Create a new project 1. Create a repository based on the template [Template-FunctionApp](https://github.com/PSModule/Template-FunctionApp). The module will by default use the name of the repository. 1. Create a repository or organization secret called `AZURE_CREDENTIALS`, holding the credentials for the Azure service principal. 1. Configure the settings you want for the repository including a branch policy for the `main` branch. 1. On a topic branch: 1. develop the code you want to add to your function app. 1. delete the parts you do not need. 1. update the tests in the `tests` folder. 1. Create a PR. Add a label to the PR depending on what you want to do. - `Major` - Will create a major release (vX.0.0) when merged. If specified with "Prerelease", a major version will be created using the prerelease tag (vX.0.0-\). - `Minor` - Will create a minor release (vX.Y.0) when merged. If specified with "Prerelease", a minor version will be created using the prerelease tag (vX.Y.0-\). - `Patch` - Will create a minor release (vX.Y.Z) when merged. If specified with "Prerelease", a minor version will be created using the prerelease tag (vX.Y.Z-\). A patch version bump is the default if nothing is specified for the PR. - `Prerelease` - CI will create a prerelease of the module using the branch name as a prerelease tag in the version. This will create both a repository release and a prerelease version of the module on the PowerShell Gallery. 1. Once the PR is created, the [Process-FunctionApp](https://github.com/PSModule/Process-FunctionApp) workflow will trigger. 1. When the PR is merged, a release will be created and the function app will be deployed to Azure with a stable version based on the version bump indicator the PR was was labeled with. Prerelease tags will be cleaned up on the repository.

PowerShell based GitHub Actions (composite action)

About A composite action is a reusable action that is made up of one or more steps. Composite actions can be used to encapsulate common tasks or workflows that can be reused across multiple repositories. They are a great way to share code and best practices with the community, and they can help to streamline the development process by providing a consistent way to perform common tasks. We have created a framework that automates the process of creating, testing, and publishing PowerShell based GitHub Actions to the GitHub Marketplace. This framework is designed to make it easy for developers to create and share their GitHub Actions with the community.
How we do it in PSModule Projects are based on the `Template-Action` repository template will automatically have the necessary workflows and configurations set up to automate the process of creating, testing, and deploying PowerShell based Azure Function Apps to Azure. This includes workflows for building, testing, and deploying the function app, as well as a configuration file for setting up the function app's metadata and dependencies. Using custom properties we set `RepoType` to `FunctionApp`. We use branch policies to control the flow of changes to the `main` branch, and we use labels to control the versioning of the module when a pull request is merged.
Create a new project 1. Create a repository based on the template [Template-Action](https://github.com/PSModule/Template-Action).
GitHub Actions and Workflows on the GitHub Marketplace
Name Description Version
Auto‑Configure Automates the configuration of a GitHub repo.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks
GitHub release (with filter)
Auto‑Document Automates the documentation generation (README.md) of a GitHub action.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks
GitHub release (with filter)
Auto‑Release Automates the release process of a GitHub repo using a PR based triggered workflow and labels on the PR.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks
GitHub release (with filter)
Process‑PSModule A GitHub workflow that is used as a template in PowerShell module repos to build, test and publish the module using the PSModule framework.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks
GitHub Release
Initialize‑PSModule An action that is used to prepare the GitHub runner for the PSModule framework.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks
GitHub Release
Test‑PSModule Runs static code analysis and pester tests on source code or a built module. The tests are some framework specific tests and tests from within the module repo.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks
GitHub Release
Build‑PSModule Build the project from different files and structures dynamically based on the defaults defined in the framework. The results of the build should be a module that runs and is ready to be published to PowerShell Gallery with documentation ready to be published on GitHub Pages.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks
GitHub Release
Publish‑PSModule Calculates the version number, updates module files with version, create a repo release and finally publish module to PowerShell Gallery and documentation to GitHub Pages.
GitHub Issues GitHub Pull Requests GitHub Stars GitHub Watchers GitHub Forks
GitHub Release

Reusable workflows

About Reusable workflows are a way to define a workflow in one repository and use it in multiple repositories. They can be used to automate common tasks, such as building, testing, and deploying code, and they can help to streamline the development process by providing a consistent way to perform these tasks across multiple repositories. We have created a framework that automates the process of creating, testing, and deploying reusable workflows in a organization. This framework is designed to make it easy for developers to create and share their workflows with the community.
How we do it in PSModule Projects are based on the `Template-Workflow` repository template will automatically have the necessary workflows and configurations set up to automate the process of creating, testing, and deploying reusable workflows in a organization. This includes workflows for building, testing, and deploying the workflows, as well as a configuration file for setting up the workflows metadata and dependencies. Using custom properties we set `RepoType` to `Workflow`. We use branch policies to control the flow of changes to the `main` branch, and we use labels to control the versioning of the module when a pull request is merged.
Create a new project 1. Create a repository based on the template [Template-Action](https://github.com/PSModule/Template-Action).

Contribution guidelines

Contributing flow

  1. Open an issue or indicate that you want any of the open issues, so others know what you are working on.
  2. Fork the repository.
  3. Create a branch from main and make your changes.
  4. Write the tests showing the desired functionality first.
  5. Write the code that makes the tests pass.
  6. Open a pull request towards upstream/main as a draft.
  7. Add any details using the PR template.
  8. Link the PR to the issue you opened by adding Fixes #<issue_number> so that the issue gets associated and closed with the PR.
  9. Review your own PR first! When you are happy with it, mark it as "Ready for review".
  10. Review and address comments on your pull request.
  11. We do not want to close PRs directly if we disagree on a specific approach. Lets discuss it instead. We are happy to help you with your changes if there are some difficult points in the code or framework.
  12. Update your branch with the latest changes from upstream/main before your PR is merged.
  13. Once your pull request is approved, it will be merged and a new feature will be released immediately.

[!IMPORTANT] In rare occation we might create a release branch and do a release from that branch, but that is more for bigger changes. These branches might also run with a prerelease tag, so that we can test the changes before we release it to the public.

🛟 PSGallery support

  • cgadmin@microsoft.com
  • https://github.com/PowerShell/PowerShellGallery/issues