634 B
634 B
Publishing PeterDocs
To publish the PeterDocs module to the PowerShell Gallery, follow these instructions.
Note Only the author or delegate for PeterDocs will be authorized to perform this action.
- Ensure you have incremented the version number in
PeterDocs.psm1andPeterDocs.psd1 - Open PowerShell terminal
- Retrieve the PowerShell Gallery API key and set it
- Do a Whatif check on the module before publishing
- Publish the module
$apiKey = ""
Publish-Module -Path .\PeterDocs\ -NuGetApiKey $apiKey -WhatIf -Verbose
Publish-Module -Name .\PeterDocs\PeterDocs.psd1 -NuGetApiKey $apiKey