ProGet Documentation

PowerShell

  • Last Modified: 2018-08-10

A PowerShell feed is a specialized type of NuGet feed intended to store PowerShell modules. It is accessible directly from PowerShellGet.

Differences from NuGet Feeds

Since PowerShell module packages are actually NuGet packages, PowerShell feeds are functionally the same as NuGet feeds, except for some user-interface tweaks:

  • PowerShell feed packages have their own icon to indicate that they are PowerShell modules
  • Install instructions for a package display instructions for PsGet instead of NuGet
  • Tags are not shown on the Browse Feed page because PowerShell packages use them differently, and tend to have large numbers of tags making them impractical to show in an overview

Publishing to a PowerShell Feed

You can register and publish to a PowerShell feed in ProGet easily using PowerShell 5.0 or newer and PowerShellGet:

Import-Module PowerShellGet

Register-PSRepository -Name MyProGetFeed -SourceLocation <ProGetUrl>/nuget/<FeedName>/api/v2 -PublishLocation <ProGetUrl>/nuget/<FeedName>/api/v2/package
Publish-Module -Path <ModuleFile> -NuGetApiKey <UserName>:<Password> -Repository MyProGetFeed

If you would prefer to use an API key instead of user/password credentials, you can create a Feed API Key in ProGet and use the following format for Publish-Module instead:

Publish-Module -Path <ModuleFile> -NuGetApiKey api:<API Key> -Repository MyProGetFeed

Have a question? Try the Q&A Forum

Our documentation is now Open Source and on GitHub. We highly encourage our users to contribute and get involved! .