gfsh Command Line Options

-c <comma separated fully-qualified class names>]

specifies the names of classes to load. These classes typically contain static blocks that register GemFire data class IDs via Instantiator.

-d <DataSerializables.txt file>]

specifies the file path of DataSerializables.txt that overrides <USER_HOME>/.gemfire/etc/DataSerializables.txt. This option is equivalent to 'class -d <DataSerializables.txt>. The file path can be relative or absolute. List your DataSerializable classe names in this file.

-dir <directory>

specifies the directory in which the jar files that contain data files are located. Gfsh loads all of the classes in the jar files including the jar files in the subdirectories. The directory can be relative or absolute. This options is equivalent to 'class -dir <directory>'.

-jar <jar paths>

specifies the jar paths separated by ',', ';', or ':'. Gfsh loads all the the classes in the jar files. The jar files can be relative or absolute. This options is equivalent to 'class -jar <jar paths>'.

-i <.gfshrc path>

specifies the input file that overrides the default .gfshrc file in User's home directory.The file path can be relative or absolute. You can list commands in this file which are required to be executed at start-up.

-advanced

enables these advanced commands : bcp, class, db, deploy, gc, rebalance

-l <host:port>

specifies locators.

-s <host:port>

specifies cache servers.

-version

shows gfsh version.

-? OR -help

displays this help message.

Scripting gfsh commands: gfsh supports command batching at startup. Using the option gfsh -i <.gfshrc file>, you can override the default .gfshrc file found in your home directory. In this file you can list any commands that gfsh supports. gfsh executes these commands in sequence.