Programmatically operating on the Grid by using command line interface

The tools folder contains grid-cli.jar that enables performing of tasks and fetching information about the Grid from a command shell or script. The CLI commands are useful both for interactive work where each command is submitted through the command line or from a scripting environment where script output can be captured in json format (–json option).

Use the tool by specifying java –jar grid-cli.jar in the tools folder. This command returns a general overview of options and commands. Adding the help parameter gives more information about each command. To list possible sub commands, type java -jar grid-cli.jar help command. To display the available options and parameters for a sub command, specify java -jar grid-cli.jar help command subcommand.