Useful Nuget commands
Having the little knowledge of Nuget Commands is important if your company is thinking to adopt EPiServer Continuous Release Process.
In Visual Studio Click Tools>Nuget Package Manager>Package Manage Settings, Select from Options, Package manager>Package Sources.
Click + Button and add an entry with
Name: EpiServer packages
Source: http://nuget.episerver.com/feed/packages.svc/
After these setting you are ready to use EPiserver Nugets. Nuget Packages can be installed from 'Package manager Console' or 'Manage Nuget Packages For Solution' window.
Here are few useful nuget commands
To extract the SQL schema Changes Find the full article (http://robertlinde.se/post/episerver-sql-scripts-and-continuous-integration-with-octopus-deploy)
Export-EPiUpdates
To update database after upgrade
update-epidatabase
In order to see the list of available versions of an episerver package you can use a command like this
Get-Package -ListAvailable -Filter EpiServer.Find -AllVersions
To install a specific version of package this command can be used
Install-Package EPiServer.Find -Version 8.2.4.684
To Uninstall a package following command can be used
Uninstall-Package EPiServer.Find -Version 8.2.4.684
Update a particular package in all projects of the current solution to a particular version
Update-Package EPiServer.Find -Version 8.2.4.684
Re-install a particular package
Update-Package EPiServer.Find -reinstall
Re-install all packages
Update-Package -Reinstall
View dependency List
get-package -list EPiServer.Find | select dependencies
Complete list of commands can be find at at http://docs.nuget.org/docs/reference/package-manager-console-powershell-reference
In Visual Studio Click Tools>Nuget Package Manager>Package Manage Settings, Select from Options, Package manager>Package Sources.
Click + Button and add an entry with
Name: EpiServer packages
Source: http://nuget.episerver.com/feed/packages.svc/
After these setting you are ready to use EPiserver Nugets. Nuget Packages can be installed from 'Package manager Console' or 'Manage Nuget Packages For Solution' window.
Here are few useful nuget commands
To extract the SQL schema Changes Find the full article (http://robertlinde.se/post/episerver-sql-scripts-and-continuous-integration-with-octopus-deploy)
Export-EPiUpdates
To update database after upgrade
update-epidatabase
In order to see the list of available versions of an episerver package you can use a command like this
Get-Package -ListAvailable -Filter EpiServer.Find -AllVersions
To install a specific version of package this command can be used
Install-Package EPiServer.Find -Version 8.2.4.684
To Uninstall a package following command can be used
Uninstall-Package EPiServer.Find -Version 8.2.4.684
Update a particular package in all projects of the current solution to a particular version
Update-Package EPiServer.Find -Version 8.2.4.684
Re-install a particular package
Update-Package EPiServer.Find -reinstall
Re-install all packages
Update-Package -Reinstall
View dependency List
get-package -list EPiServer.Find | select dependencies
Complete list of commands can be find at at http://docs.nuget.org/docs/reference/package-manager-console-powershell-reference
Thank you! =)
ReplyDelete