---
title: "Create and install a Sitecore Content Serialization package"
slug: "create-and-install-a-sitecore-content-serialization-package"
abstract: "How to create and install a Sitecore Content Serialization (SCS) package in your continuous integration pipeline."
---
# Create and install a Sitecore Content Serialization package

Sitecore Content Serialization (SCS) packages (file extension `.itempackage`) contain specified modules and their serialized items. You use packages as build artifacts in your continuous integration pipeline by creating them in your build pipeline and installing them in your delivery pipeline.

## Create an SCS package in your build pipeline

> [!important]
> You must configure any [included items and excluded fields](https://doc.sitecore.com/xp/en/developers/102/developer-tools/sitecore-content-serialization-structural-overview.html "Sitecore Content Serialization structural overview") before package generation.

To create an SCS package in your build pipeline:

1. Go to your project folder that contains your `sitecore.json` file.
2. To create the package, run the following command:

    ```text
    dotnet sitecore ser pkg create -o <name of package>
    ```

    > [!note]
    > You can use the `--include` and `--exclude` arguments to specify what modules go into your package.
    >
    > By placing your demo or test content in a separate module, you can use these arguments to exclude it from deployment to upstream environments.

3. Ensure the package file is present among your build artifacts.

## Install an SCS package in your delivery pipeline

After you have [created the SCS package](https://doc.sitecore.com/xp/en/developers/102/developer-tools/create-and-install-a-sitecore-content-serialization-package.html#UUID-4f673854-f5e9-8038-8023-42e29ada2272_N1631264690621 "Create an SCS package in your build pipeline"), you can then install it as part of your continuous delivery pipeline:

To install an SCS package:

1. Make sure that you have [configured your Identity Server and Content Management roles for non-interactive client login](https://doc.sitecore.com/xp/en/developers/102/developer-tools/configure-a-non-interactive-client-login.html "Configure a non-interactive client login").
2. To install the package, run the following command:

    ```text
    dotnet sitecore ser pkg install -f <name of package>.itempackage --client-id <your client id> --client-secret <your client secret> --cm <your content management host> --auth <your identity host>
    ```

    > [!note]
    > Your client secret is a password that provides administrative access to the Sitecore instance. Ensure you are properly protecting this password using proper security mechanisms in your build system.
    >
    > Use the `dotnet sitecore ser pkg install --help` command to see more arguments for the package install command.