Class ExecuteCommand
Executes the specified script in the Content Hub instance.
Inheritance
object
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 -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:
RequestResponse
ch-cli scripting execute --name "<script name>"
Executing an script with arguments:
RequestResponse
ch-cli scripting execute --name "<script name>" --args "<local path>"