Class WatchCommand
Watches the script working folder for changes and pushes those changes to the Content Hub instance.
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.Scripting.CommandHandlers.WatchCommandHandler
WatchCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.ScriptingCommands
Assembly: Sitecore.CH.Cli.Plugin.Scripting.dll
Syntax
RequestResponse
public class WatchCommand : BaseCommand<WatchCommandHandler>Remarks
Optional parameters
--endpoint -eSpecifies an alternative endpoint name for the execution of this command.
--folder -fSpecifies the script working folder where the script files are located. If the --folder option is not specified, the current folder is assumed to be the script working folder.--log-poll-interval -lSpecifies how often, in seconds, the scripts are polled for new log changes. Default value: 3 second
Global parameters
-? --help -hShow this help message and exit.-v --verbosityEnables verbose logging.
Examples
Watching scripts:
RequestResponse
ch-cli scripting watchWatching scripts with specific polling interval:
RequestResponse
ch-cli scripting watch --log-poll-interval "<seconds>"