Class PushCommand

Version: 3.4

Pushes the print template from the specified working directory to the connected Content Hub instance.

Inheritance
object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Content.CommandHandlers.Print.PushCommandHandler
PushCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.ContentCommandsPrint
Assembly: Sitecore.CH.Cli.Plugin.Content.dll
Syntax
RequestResponse
public class PushCommand : BaseCommand<PushCommandHandler>
Remarks

Required parameters

  • --definition -d Specifies the entity definition.
  • --name -n Specifies the name of the template.

Optional parameters

  • --endpoint -e Specifies an alternative endpoint name for the execution of this command.
  • --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

Pushes an entity print template:

RequestResponse
ch-cli print push --definition "<entity definition>" --name "<template name>"

Pushes an entity print template in specific folder:

RequestResponse
ch-cli print push --definition "<entity definition>" --name "<template name>" --folder "<local path>"

Do you have some feedback for us?

If you have suggestions for improving this article,