Scaffold production-ready PowerShell modules. Clone and run — no Gallery required.
git clone https://github.com/the-wittch/psforge.git
cd psforge
./bootstrap.ps1Persist for new sessions:
./bootstrap.ps1 -InstallNew-PSModule -Name MyTools -Path ~/Projects -Author 'Alex' -Description 'Ops helpers'
Add-PSModuleFunction -Name Get-ServerInfo -Path ~/Projects/MyTools
Add-PSModuleFunction -Name Get-InternalToken -Path ~/Projects/MyTools -Private
Remove-PSModuleFunction -Name Get-ServerInfo -Path ~/Projects/MyTools
Update-PSModuleVersion -Path ~/Projects/MyTools -MinorGenerated layout:
MyTools/
├── src/MyTools/ # Public/, Private/, Classes/, manifest
├── build/ # InvokeBuild tasks
├── tests/ # Pester unit + integration
├── docs/
├── .github/workflows/ci.yml
├── build.ps1
├── requirements.psd1
└── PSScriptAnalyzerSettings.psd1
Build the generated module:
cd ~/Projects/MyTools
./build.ps1Restores Pester, PSScriptAnalyzer, and InvokeBuild into ./.modules, then analyze → unit test → compile → integration test.
MIT — see LICENSE.