Productivity Tools

Tools written by an IT business manager, a passionate developer.

Publish-ModuleToPowershellGallery

Module finds psd1 file in current directory (recursive) and pushes it to www.powershellgallery.com portal.

Module is dependent on Publish-ModuleTo and improves command by pushing to powershell gallery (you don’t need to provide name of repository). It uses MasterConfiguration PSRepositoryApiKey key. So before use you need to setup configuration with command:

Next you can just go to the directory where psd1 file is placed (or parent) and invoke:

And that is it. Module should be pushed automatically.