The Package Manager Console provides a PowerShell interface within Visual Studio on Windows to interact with NuGet through the specific commands listed below. (The console is not presently available in Visual Studio for Mac.) For a guide to using the console, see the Package Manager Console topic.
All PowerShell commands relate only to package consumption. No PowerShell commands relate to creating and publishing packages except to the extent that a package can also be a consumer of other packages.
|Add-BindingRedirect||Examines all assemblies within the output path for a project and adds binding redirects to the
|Find-Package||Searches a package source using a package ID or keywords.||3.0+|
|Get-Package||Retrieves the list of packages installed in the local repository, or lists packages available from a package source.||All|
|Get-Project||Displays information about the default or specified project.||3.0+|
|Install-Package||Installs a package and its dependencies into the project.||All|
|Open-PackagePage||Launches the default browser with the project, license, or report abuse URL for the specified package.||Deprecated in 3.0+|
|Sync-Package||Get the version of installed package from specified project and syncs the version to the rest of projects in the solution.||3.0+|
|Uninstall-Package||Removes a package from a project, optionally removing its dependencies.||All|
|Update-Package||Updates a package and its dependencies, or all packages in a project.||All|
For complete, detailed help on any of these commands within the console, just run the following with the command name in question:
Get-Help <command> -full
Note that all Package Manager Console commands support the following common PowerShell parameters:
For details, refer to about_CommonParameters in the PowerShell documentation.