Skip to content

Instantly share code, notes, and snippets.

@bevand
Created January 7, 2017 03:47
Show Gist options
  • Save bevand/4acf28f36d7aa683b42f6e7b2c0a2577 to your computer and use it in GitHub Desktop.
Save bevand/4acf28f36d7aa683b42f6e7b2c0a2577 to your computer and use it in GitHub Desktop.
Powershell push all packages from local folder
#add source
nuget sources Add -Name "custom-feed" -Source "https://newhostednugetfeed.com/custom-feed/nuget/v3/index.json" -username
USERNAME -password PASSWORD
$files = Get-ChildItem C:\LocalNuGetTest\*.nupkg
ForEach ($file in $files) {
#echo $file.fullName
nuget push -Source "custom-feed" -ApiKey VSTS $file.fullName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment