Let’s Talk

We would love to hear from you. Want to know more about
our services or have any questions? Say Hi!

Sitecore Headless 10.2 Without Docker

March 24, 2022
Sitecore Headless 10.2 Without Docker
Ketan Garala
Ketan Garala
CTO, Sitecore MVP
First you need to install the prerequisites:
  1. .NET Core 3.1 SDK (check your installed version with the dotnet –version command)
  2. .NET Framework 4.8
  3. Visual Studio 2019
  4. PowerShell 5.1 (PowerShell 7 is not supported)
  5. Sitecore 10.2
  6. Helix Example code
Download and install in Sitecore instance:
  1. Sitecore Headless Rendering Service: https://dev.sitecore.net/Downloads/Sitecore_Headless_Rendering/19x/Sitecore_Headless_Rendering_1900.aspx
  2. Sitecore Management Services: https://dev.sitecore.net/Downloads/Sitecore_CLI/4x/Sitecore_CLI_411.aspx

Once everything is prepared, you have to install the Sitecore Headless Rendering Service. This module provides you with server-side APIs and components that are required for the ASP. NET Core Rendering SDK and JavaScript Rendering SDKs (JSS).

After this, let’s go back to the Helox example. It implements a basic company site and we already have some Sitecore Items that we can install on your Sitecore 10.2. These custom items are managed using the new Sitecore Content Serialization system for serializing, sharing and deploying the content items. It also helps in keeping these items in version control.

To use Sitecore CLI, you need to install the Sitecore Management Services package in your Sitecore CM instance.

Installation Process:
  1. Install Sitecore 10.2 For Sitecore installation follow below links,
    1. https://www.youtube.com/watch?v=mXeh18FPdfw&t=1s
    2. OR
    3. https://getfishtank.ca/blog/how-to-install-sitecore-10-1-0-using-sia
  2. Now you are ready to use Sitecore CLI:
  3. sitecore-headless-10-2-without-docker-1
    Here use the latest version using this command dotnet new tool-manifest --force sitecore-headless-10-2-without-docker-2 If you are not able to install Sitecore CLI, please follow these steps: step 1: dotnet tool install Sitecore.CLI step 2: dotnet sitecore init 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
  4. Login the Sitecore CLI with the following command. dotnet sitecore login --cm https://s10coresc.dev.local/ --auth https://s10coreidentityserver.dev.local/ --allow-write true sitecore-headless-10-2-without-docker-3 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 sitecore-headless-10-2-without-docker-4 After finishing this, let's publish all of those items using this command: dotnet sitecore publish Once above command is successfully run, you should see below websites created in content tree. sitecore-headless-10-2-without-docker-5