The CLI serialization command
Reference of the DevEx CLI serialization command that serializes items.
The Sitecore serialization plugin includes a ser
command. This command handles the serialization of items. To install the serialization plugin, run the following code:
dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Serialization
Usage
You can use the command as follows:
dotnet sitecore ser [subcommand] [options]
Subcommands
You can use the following subcommands:
Subcommand | Description |
---|---|
| Compares the content items of two Sitecore instances. |
| Explains whether a content item path is included and why. |
| Shows serialization configuration information. |
| Lists serialization package commands. |
| Creates a package of serialized content items. |
| Installs a package of serialized content items in a Sitecore instance. |
| Serializes content items from a Sitecore instance to your file system. |
| Pushes serialized content items from your file system to a Sitecore instance. |
| Checks serialized content items for validity. Can fix common issues with the NoteFor more information, see Validate serialized content items. |
| Monitors changes to content items in a Sitecore instance and automatically serializes the changes to your file system. |
Options
You can use the following options with the pull
and push
subcommands:
Options | Required? | Description |
---|---|---|
| No | Simulate what content changes you are going to make before you actually make them. NoteFor more information on the |