Calling Helma from Commandline

Besides having Helma run as a server, it is also possible to run a single script from command line. Helma will start up, execute the script and terminate immediately. A possible usage scenario would be for example to perform certain update scripts from command line, if an installation of an application should be upgraded. Another one is to generate the HelmaDocs via the manage-application without actually having to start that application.

Usage:

java -cp launcher.jar helma.main.launcher.Commandline [options] [appname].[function] [argument-list]

Example:

java -cp launcher.jar helma.main.launcher.Commandline twoday.m.stories.1.dummy mi mo

In this example the function dummy() on the Story with the Id 1 is called, with the arguments 'mi' and 'mo' being passed to that function.