Class CreateScriptFileCommand
Version: 3.4
Create a script locally.
Inheritance
object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Scripting.CommandHandlers.CreateScriptFileCommandHandler
CreateScriptFileCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.ScriptingCommands
Assembly: Sitecore.CH.Cli.Plugin.Scripting.dll
Syntax
RequestResponse
public class CreateScriptFileCommand : BaseCommand<CreateScriptFileCommandHandler>
Remarks
Required parameters
--name -n
Specified the name of the script to create.--type -t
Specified the type of the script to create.
Optional parameters
--endpoint -e
Specifies an alternative endpoint name for the execution of this command.--folder -f
Specifies the working directory that contains the script files. If the --folder option is not specified, the current folder is assumed to be the working directory.
Global parameters
-? --help -h
Show this help message and exit.-v --verbosity
Enables verbose logging.
Examples
Creates a local script:
RequestResponse
ch-cli scripting create script --name "<script name>" --type "<script type>"