1. Sitecore.CH.Cli.Plugin.Content.Commands.Content.Delivery

Class PublishCommand

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

Inheritance

object

System.CommandLine.Symbol

System.CommandLine.IdentifierSymbol

Command

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

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommandSitecore.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

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:

ch-cli content delivery publish --start-date "2022-08-01 `12:00`:00"
If you have suggestions for improving this article, let us know!