Sitecore 10 Content Serialization
Sitecore Content Serialization

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

Before the release of Sitecore 10, we were dependent on Unicorn or TDS For item serialization. But now we are no longer dependent on these tools. Now we can serialize content based on known JSON Configuration. With this configuration, we can configure which items to include which ones to exclude, and which operations to perform on the content items.

Also Read: Benefits of Upgrading to Sitecore 10

Prerequisite

  • Sitecore Command Line Interface (CLI)
  • Sitecore Management Service (Sitecore Package)

Install Sitecore Command Line Interface (CLI)

The Sitecore Command Line Interface (CLI) allows console communication with a Sitecore instance.

Start PowerShell administrator privileges.

Run commands.

Copy to Clipboard

Install Sitecore Management Service

The Sitecore Management Service is a package that you must download and install in your Sitecore instance to support the Sitecore Command Line Interface.

Download ManagementServices package file.

Install this package in your Sitecore instance for this open your Launchpad, click Control Panel, and Install a package upload your package and install.

Log in to a Sitecore instance with Sitecore CLI

Go into you project folder.

Open cli and run command.

Copy to Clipboard
Log in to a Sitecore instance with Sitecore CLI

This command opens Sitecore login page in your browser press “Yes, Allow” on this screen.

Sitecore login page in your browser

after this you can see .sitecoreuser.json file in you project folder.

.sitecore\user.json file in you project folder

run command

Copy to Clipboard

after command, you can see sitecore.json file in your project root

sitecore.json file in your project root

Now create a new project in Visual Studio. Please make sure you follow Helix practice for setting the projects.

Now create a new project in Visual Studio

Now create JSON file for serialization configuration.

create JSON file for serialization configuration

Now, Run the following commands as per your needs

Ex : sitecore ser pull

Sitecore 10 : Sitecore Items Serialization
email subscribe image

Subscribe to our Newsletter and Dive into Exclusive Content!