---
title: "Class PublishCommand"
slug: "cli--sitecore.ch.cli.plugin.content.commands.content.delivery.publishcommand"
abstract: ""
---
# Class PublishCommand

Publishes content from the selected Content Hub instance to the delivery platform.

## 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.Content.CommandHandlers.Content.Delivery.PublishCommandHandler

PublishCommand

## Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.ContentSitecore.CH.Cli.Plugin.Content.CommandsContentDelivery

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

## Syntax

```csharp
public class PublishCommand : BaseCommand<PublishCommandHandler>
```

## Remarks

**Required parameters**

- `--start-date -s` Publishes entities that have been modified after the specified date.

**Global parameters**

- `--end-date -e` Defines the end of the range for entities to be considered for publishing.
- `--publish-failed -p` If set, only failed entities are re-published.
- `-? --help -h` Show this help message and exit.
- `-v --verbose` Enables verbose logging.

## Examples

Publish entities to delivery platform:

```csharp
ch-cli content delivery publish --start-date "2022-08-01 `12:00`:00"
```
