logo
logo

Class ExecuteCommand

Executes the specified script in the Content Hub instance.

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

/Required parameters

  • --name -n Specifies the script name.

Optional parameters

  • --endpoint -e Specifies an alternative endpoint name for the execution of this command.
  • --args -a Specifies a json file with arguments that are passed to the script.

Global parameters

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

Executing an script:

ch-cli scripting execute --name "<script name>"

Executing an script with arguments:

ch-cli scripting execute --name "<script name>" --args "<local path>"

Can we improve this article ? Provide feedback