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

Class InitializeCommand

Initializes a working folder with the files needed to generate a entity print template.

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.Print.InitializeCommandHandler

InitializeCommand

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

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

Syntax

public class InitializeCommand : BaseCommand<InitializeCommandHandler>

Remarks

Required parameters

  • --name -dn Specifies the name of the entity print 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

Initialize an entity print template:

ch-cli print initialize --name "<template name>"

Initialize an entity print template to specific folder:

ch-cli scripting initialize --name "<template name>" --folder "<local path>"
If you have suggestions for improving this article, let us know!