Get In Touch


Digital Commerce & Customer Experience Blog Topics

Home / Sitecore / Sitecore CLI Serialization (SCS) & Installation guide

Sitecore CLI Serialization (SCS) & Installation guide

Sitecore CLI Serialization (SCS) & Installation guide
Sitecore CLI Serialization (SCS) & Installation guide

What is serialization?

Serialization allows you to serialize an entire Sitecore database or a series of items in a database to text files. You can then use these text files to transfer this database or series of items to another database or Sitecore solution.

What is SCS?

Sitecore Content Serialization (SCS) is a system for serializing, sharing, and deploying content items, as well as keeping them in version control. Same like (TDS and Unicorn)

How to install Sitecore CLI in your project?

You must have .NET Core installed on your workstation before installing the Sitecore CLI. If you do not have the required version of .NET Core installed, you get the following message:

It was not possible to find any compatible framework version

The framework ‘Microsoft.NETCore.App’, version ‘<major.minor>’ was not found.

Also read: Solr Search Implementation And Performance Improvement Guide On Sitecore Based Website

  1. If you have not already done so, install Sitecore Management Services.
  2. Open a PowerShell with administrator privileges.
  3. Go to the project folder
  4. Run the following commands to install Sitecore CLI:
  5. dotnet new-tool manifest
  6. dotnet nuget add source -n Sitecore
  7. dotnet tool install Sitecore.CLI
  8. To initialize your new project, run the following command in your project folder:
    1. dotnet sitecore init
  9. Install the required Publishing and Serialization plugins:
    1. dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Serialization
    1. dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Publishing
  10. To verify that the Sitecore CLI works, go to your project folder in a terminal and type
    1. dotnet Sitecore
  • Login is required to pull and push data
  • login into sitecore and run this command
    • dotnet sitecore login –authority https://<Sitecore identity server> –cm http://<Sitecore instance> –allow-write true
    • once the above commond is hitted it will open login screen in browser
  • Click on Yes, Allow
    • You will see login message in Powershell terminal as
  1. Now create a file under your project folder Serialization.modules.json in my case and add the following details:
  1. Run pull command to get serialize item from Sitecore
    1. dotnet sitecore ser pull
  2. Run push command to push data into Sitecore
    1. dotnet sitecore ser push

Also read: Save Custom MVC Forms Data Onto Sitecore Experience Forms Database

  1. List of all the command “
  2. Install Sitecore for Visual Studio plugin
    1. Download Sitecore for Visual Studio.
    2. This is Paid Plugin and you need TDS classic license to use this.

About Deepen Joshi

Deepen Joshi is a Senior Tech lead working with Adapty since 2019

Comments are closed.

Scroll To Top