server run-script

Parameters:
Name Type Required Default Hint
scriptname string true Name of the script to run
name string false the short name of the server
directory string false web root for the server
serverConfigFile string false The path to the server's JSON file.

Command Usage

Runs a server script, by name. Scripts are stored in server.json.

server run-script myScript
Positional parameters can be passed and will be available as environment variables inside the script as ${1}, ${2}, etc
server run-script myScript param1 param2
Named parameters can be passed and will be available as environment variables inside the script as ${name1}, ${name2}, etc
Note in this case, ALL parameters much be named including the scriptName param to the command.
server run-script scriptName=myScript name1=value1 name2=value2