Class ValidateCommand

Validates an entity print template working folder against an entity definition.

Inheritance
object
System.CommandLine.Symbol
System.CommandLine.IdentifierSymbol
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Content.CommandHandlers.Print.ValidateCommandHandler
ValidateCommand
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
RequestResponse
public class ValidateCommand : BaseCommand<ValidateCommandHandler>
Remarks

Required parameters

  • --definition -d Specifies the entity definition.

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

Validates an entity print template:

RequestResponse
ch-cli print initialize --definition "<entity definition>"

Validates an entity print template in specific folder:

RequestResponse
ch-cli scripting initialize --definition "<entity definition>" --folder "<local path>"

Do you have some feedback for us?

If you have suggestions for improving this article,