install NuGet via PowerShell script -


as far can tell , nuget meant installed visual studio extension :

http://docs.nuget.org/docs/start-here/installing-nuget 

but if need nuget on machine doesn't have vs installed ?

specifically, install nuget via powershell script.

here's short powershell script expect:

$sourcenugetexe = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" $targetnugetexe = "$rootpath\nuget.exe" invoke-webrequest $sourcenugetexe -outfile $targetnugetexe set-alias nuget $targetnugetexe -scope global -verbose 

note invoke-webrequest cmdlet arrived powershell v3.0. this article gives idea.