Class ExecuteCommand
Executes the specified script in 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.ExecuteCommandHandler
ExecuteCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.ScriptingCommands
Assembly: Sitecore.CH.Cli.Plugin.Scripting.dll
Syntax
RequestResponse
public class ExecuteCommand : BaseCommand<ExecuteCommandHandler>Remarks
Required parameters
--name -nSpecifies the script name.
Optional parameters
--endpoint -eSpecifies an alternative endpoint name for the execution of this command.--args -aSpecifies a json file with arguments that are passed to the script.
Global parameters
-? --help -hShow this help message and exit.-v --verbosityEnables verbose logging.
Examples
Executing an script:
RequestResponse
ch-cli scripting execute --name "<script name>"Executing an script with arguments:
RequestResponse
ch-cli scripting execute --name "<script name>" --args "<local path>"