logo
logo

Class WatchCommand

Watches the script working folder for changes and pushes those changes to the Content Hub instance.

Inheritance
System.Object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<Sitecore.CH.Cli.Plugin.Scripting.CommandHandlers.WatchCommandHandler>
WatchCommand
Namespace: Sitecore.CH.Cli.Plugin.Scripting.Commands
Assembly: Sitecore.CH.Cli.Plugin.Scripting.dll
Syntax
public class WatchCommand : BaseCommand<WatchCommandHandler>
Remarks

Optional parameters

  • --endpoint -e Specifies an alternative endpoint name for the execution of this command.
  • --folder -f Specifies 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 -l Specifies how often, in seconds, the scripts are polled for new log changes. Default value: 3 second

Global parameters

  • -? --help -h Show this help message and exit.
  • -v --verbosity Enables verbose logging.
Examples

Watching scripts:

ch-cli scripting watch

Watching scripts with specific polling interval:

ch-cli scripting watch --log-poll-interval "<seconds>"

Can we improve this article ? Provide feedback