---
title: "Class DiffPolicyCommand"
slug: "cli--sitecore.ch.cli.plugin.serialization.commands.diffpolicycommand"
abstract: ""
---
# Class DiffPolicyCommand

Shows differences between one or more serialized policies and their counterpart in the connected Content Hub instance.

## Inheritance

object

System.CommandLine.Symbol

System.CommandLine.IdentifierSymbol

[Command](https://learn.microsoft.com/dotnet/api/system.commandline.command)

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Serialization.CommandHandlers.DiffPolicyCommandHandler

DiffPolicyCommand

## Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SerializationCommands

## Assembly: Sitecore.CH.Cli.Plugin.Serialization.dll

## Syntax

```csharp
public sealed class DiffPolicyCommand : BaseCommand<DiffPolicyCommandHandler>
```

## Remarks

**Optional parameters**

- `--endpoint -e` Specifies an alternative endpoint name for the execution of this command.
- `--name -n` Name of the option list. Wildcards allowed.
- `--folder -f` Specifies the a working directory other than the current folder.

**Global parameters**

- `-? --help -h` Show this help message and exit.
- `-v --verbosity` Enables verbose logging.

## Examples

Show differences for all policies:

```csharp
ch-cli serialization diff policy
```

Show differences for all policies that match the specific name, using the specified working directory:

```csharp
ch-cli serialization diff policy --name "<name-starts*j>" --folder "<local path>"
```
