First you need to install the prerequisites:
- .NET Core 3.1 SDK (check your installed version with the dotnet –version
- .NET Framework 4.8
- Visual Studio 2019
- PowerShell 5.1 (PowerShell 7 is not supported)
- Sitecore 10.2
- Helix Example code
Download and install in Sitecore instance:
- Sitecore Headless Rendering Service: https://dev.sitecore.net/Downloads/Sitecore_Headless_Rendering/19x/Sitecore_Headless_Rendering_1900.aspx
- Sitecore Management Services: https://dev.sitecore.net/Downloads/Sitecore_CLI/4x/Sitecore_CLI_411.aspx
Once you have everything prepared, you need to install the Sitecore Headless Rendering
Service. This module provides the server-side APIs and components which are required for
Now, back to the Helix Example that implements a Basic Company site, we already have some
Sitecore items that need to be installed on your Sitecore 10.2.
Those custom items are managed using the new Sitecore Content Serialization system for
serializing, sharing, and deploying content items, as well as keeping them in version
To use Sitecore CLI, install the Sitecore Management Services package in your Sitecore CM
- Install Sitecore 10.2
For Sitecore installation follow below links,
- Now you are ready to use Sitecore CLI:
Here use the latest version using this command dotnet new
If you are not able to install Sitecore CLI, please follow these steps:
step 1: dotnet tool install Sitecore.CLI
step 3: For Serialization and public, use below command
dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Serialization
dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Publishing
step 4: dotnet sitecore plugin list
step 5: dotnet sitecore -h
Login the Sitecore CLI with the following command.
dotnet sitecore login --cm https://s10coresc.dev.local/
--auth https://s10coreidentityserver.dev.local/ --allow-write true
This will open a browser tab with the Sitecore login page. Use
Sitecore 10.2 admin credentials to login and allow access to the service.
Once logged in, push the latest serialized items using the
Sitecore CLI by running the following command.
dotnet sitecore ser push
After finishing this, let's publish all of those items using this
dotnet sitecore publish
Once above command is successfully run, you should see below
websites created in content tree.