Gabbar
Gabbar

Reputation: 4066

install Sitecore update packages with Powershell

We create Sitecore .update packages using TDS and Visual Studio. The update packages can be installed using /sitecore/admin/updateinstallationwizard.aspx. Is there a way to install these packages using Powershell?

Thanks

Upvotes: 1

Views: 2040

Answers (2)

Adam Najmanowicz
Adam Najmanowicz

Reputation: 1210

It depends on the tooling you want to use. If you can work with Sitecore PowerShell Extensions, it has a convenient Install-UpdatePackage cmdlet (not the Install-Package - this one works with regular Sitecore packages exclusively) that can deploy them in your environment. You can read more about it in our GitBook

You can also create those using the Get-UpdatePackageDiff and Export-UpdatePackage if you do not have access to TDS.

Now to do this on the server directly that's just something that you would run from the Web UI using SPE ISE, but to upload those from your dev environment you can utilise the SPE Remoting again as described in this Gitbook page

If you don't have or want to have SPE deployed on your server you can utilise Sitecore Ship and automate that in Windows PowerShell without the use of Sitecore PowerShell Extensions. The functionality of Sitecore Ship module is limited to doing the task of deploying Sitecore Update packages but this might be just what you want.

Upvotes: 6

Vlad Iobagiu
Vlad Iobagiu

Reputation: 4118

You can use for Sitecore Powershell command: Install-Package [[-Path] ] [-InstallMode ] [-MergeMode ]

More details can be found here:

https://sitecorepowershell.gitbooks.io/sitecore-powershell-extensions/content/appendix/commands/Install-Package.html

Upvotes: 1

Related Questions