1. ScriptingCommand

Class ScriptingCommand

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Facilitates editing, compilation and publishing scripts. This is a PREVIEW command.

Inheritance
System.Object
System.CommandLine.Symbol
System.CommandLine.NamedSymbol
System.CommandLine.Command
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<Sitecore.CH.Cli.Plugin.Applications.CommandHandlers.ScriptingCommandHandler>
ScriptingCommand
Namespace: Sitecore.CH.Cli.Plugin.Applications.Commands
Assembly: Sitecore.CH.Cli.Plugin.Applications.dll
Syntax
public class ScriptingCommand : BaseCommand<ScriptingCommandHandler>, ICommand, IIdentifierSymbol, ISymbol, ISuggestionSource, IEnumerable<Symbol>, IEnumerable
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.
  • --pull -p Pulls the specified script from content hub and stored it in the script working folder.
  • --initialize -i Initializes the script working folder with the files needed to make intellisense work in VS Code.
  • --watch -w Watches the script working folder for changes and pushes those changes to the Content Hub instance.
  • --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

Initialize scripts:

ch-cli preview scripting --initialize

Initialize scripts to specific folder:

ch-cli preview scripting --initialize --folder "<local path>"

Pull scripts from the selected endpoint:

ch-cli preview scripting --pull

Watching scripts:

ch-cli preview scripting --watch

Watching scripts with specific polling interval:

ch-cli preview scripting --watch --log-poll-interval "<seconds>"
この記事を改善するための提案がある場合は、 お知らせください!