使用 Powershell 安装 Sitecore 更新包
install Sitecore update packages with Powershell
我们使用 TDS 和 Visual Studio 创建 Sitecore .update 包。可以使用 /sitecore/admin/updateinstallationwizard.aspx 安装更新包。有没有办法使用 Powershell 安装这些软件包?
谢谢
您可以使用 Sitecore Powershell 命令:
Install-Package [[-Path] ] [-InstallMode ] [-MergeMode ]
可以在此处找到更多详细信息:
这取决于您要使用的工具。
如果您可以使用 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
如果您无法访问 TDS,您也可以使用 Get-UpdatePackageDiff
和 Export-UpdatePackage
创建那些。
现在要直接在服务器上执行此操作,您可以使用 SPE ISE 运行 从 Web UI 执行此操作,但是要从您的开发环境上传这些内容,您可以使用 SPE Remoting再次 as described in this Gitbook page
如果您没有或不想在您的服务器上部署 SPE,您可以利用 Sitecore Ship 并在 Windows PowerShell 中自动执行它,而无需使用 Sitecore PowerShell 扩展。 Sitecore Ship 模块的功能仅限于执行部署 Sitecore 更新包的任务,但这可能正是您想要的。
我们使用 TDS 和 Visual Studio 创建 Sitecore .update 包。可以使用 /sitecore/admin/updateinstallationwizard.aspx 安装更新包。有没有办法使用 Powershell 安装这些软件包?
谢谢
您可以使用 Sitecore Powershell 命令:
Install-Package [[-Path] ] [-InstallMode ] [-MergeMode ]
可以在此处找到更多详细信息:
这取决于您要使用的工具。
如果您可以使用 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
如果您无法访问 TDS,您也可以使用 Get-UpdatePackageDiff
和 Export-UpdatePackage
创建那些。
现在要直接在服务器上执行此操作,您可以使用 SPE ISE 运行 从 Web UI 执行此操作,但是要从您的开发环境上传这些内容,您可以使用 SPE Remoting再次 as described in this Gitbook page
如果您没有或不想在您的服务器上部署 SPE,您可以利用 Sitecore Ship 并在 Windows PowerShell 中自动执行它,而无需使用 Sitecore PowerShell 扩展。 Sitecore Ship 模块的功能仅限于执行部署 Sitecore 更新包的任务,但这可能正是您想要的。