Sitecore.Ship is a great tool for setting up continuous delivery with Sitecore. With it, you can install packages over HTTP, but until now the easiest tool to use for scripting those HTTP requests was cURL. With this PowerShell module, you can eliminate that dependency from your suite of tools.
Remotely installing a package is as simple as ssinstall www.mysite.com c:\mypackage.update -FileUpload
The functions in this module support all operations of Sitecore.Ship, and are self-documented so that Get-Help
commands provide descriptions, syntax, and examples. Use these functions to build a repeatable deployment script for any environment!
Note: I've only tested this module with PowerShell version 3. Older operating systems may only have PowerShell version 2. How to update PowerShell.
Recommended Method: Install with PsGet (the NuGet of PowerShell modules).
Install-Module SitecoreShipFunctions
There is a Chocolatey package coming soon. To install:
choco install sitecoreshipfunctions
Finally, you can download and install the module manually.
- Download the latest release.
- Open properties for zip file and click "Unblock" button if you have one.
- Unzip
- Open a PowerShell console
- Run
.\Install.ps1
You may need to allow remote scripts by runningSet-ExecutionPolicy -RemoteSigned
. You may also have to right-clickInstall.ps1
and Unblock it from the properties window. Alternative: Add lineImport-Module $modules\SitecoreShipFunctions\SitecoreShipFunctions.psd1
to your$PROFILE
, where$modules\SitecoreShipFunctions
is a path to the folder with the contents extracted from downloaded zip.