Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get NuGet.exe version from command-line

I'd like to get the NuGet.exe version using the command-line.

I know I can get the version of NuGet running as part of Visual Studio, as per the instructions here, but what I'm after is something similar from the command-line, i.e like:

nuget --version

Any ideas?

like image 302
Per Samuelsson Avatar asked Apr 12 '13 06:04

Per Samuelsson


People also ask

How do I get NuGet in PowerShell?

Open PowerShell as administrator. Run the command Install-Module PowerShellGet -Force to install the NuGet package. When asked for confirmation to install the NuGet provider, press the Y key and press Enter .

How do I update NuGet exe?

Use nuget update -self on Windows to update an existing nuget.exe to the latest version. The latest recommended NuGet CLI is always available at https://dist.nuget.org/win-x86-commandline/latest/nuget.exe .


1 Answers

Typing nuget help from the command line will in addition to the expected help information also list the current NuGet.exe version.

like image 108
Julian Avatar answered Oct 01 '22 03:10

Julian