1. Sitecore.CH.Cli.Plugin.Scripting.Commands

Class ExecuteCommand

Executes the specified script in the Content Hub instance.

Inheritance

object

System.CommandLine.Symbol

System.CommandLine.IdentifierSymbol

Command

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommandSitecore.CH.Cli.Plugin.Scripting.CommandHandlers.ExecuteCommandHandler

ExecuteCommand

Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.ScriptingCommands

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>"
If you have suggestions for improving this article, let us know!