Grid command line interface version 2
The tools folder contains grid-cli.jar that makes it easy to use the new REST APIs as well as directly access and modify the grid configuration database and grid files on disk. The tools is 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). This tool is a replacement for the Scripting Client that will be deprecated in a future Grid version.
The tool can be used in two ways, either interacting with the local grid when you specify the –dir option or only use the commands that use REST to communicate with any Grid that exposes the required REST services by specifying the –url and –ks options. The available commands that require access to local files are marked Local commands in the usage where commands that only interact with the REST layer are marked REST Commands.
Use the tool by executing java –jar grid-cli.jar in the tools folder. Basic execution gives 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>
. For specific help about a sub command, type java -jar grid-cli.jar help <command>
<subcommand>
. Possible options and parameters will be displayed.