---
title: "Class DiffEntityCommand"
slug: "cli--sitecore.ch.cli.plugin.serialization.commands.diffentitycommand"
abstract: ""
---
# Class DiffEntityCommand

Shows differences between one or more serialized entities 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.DiffEntityCommandHandler

DiffEntityCommand

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

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

## Syntax

```csharp
public sealed class DiffEntityCommand : BaseCommand<DiffEntityCommandHandler>
```

## Remarks

**Optional parameters**

- `--endpoint -e` Specifies an alternative endpoint name for the execution of this command.
- `--name -n` Name(s) of entity(ies). Wildcard allowed.
- `--definition -d` Name of entity definition.
- `--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 entities of a specific entity definition:

```csharp
ch-cli serialization diff entity --definition "<entity definition name>"
```

Show differences for entities of a specific entity definition, using the specified working directory:

```csharp
ch-cli serialization diff entity --definition "<entity definition name>" --folder "<local path>"
```

Show differences for a specific entity, filtered by name:

```csharp
ch-cli serialization diff entity --definition "<entity definition name>" --name "<entity name>"
```

Show differences for all entities:

```csharp
ch-cli serialization diff entity
```
