New Documentation of Petals CLI-Command Line Interface

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History
By default, this file is located at _$PETALS_CLI_HOME/conf/preferences.properties_.

However, it is possible to move this file somewhere else thanks to an environement variable.
_$PETALS_CLI_PREFS_ is the variable environement that points to the location of the preferences file.

This file contains a set of keys:
This file contains a set of keys in several sections:
* section 'Global preferences':
** *default.alias*: the default alias to use (required).
** *user.lang*: the language to use in Petals CLI.
*** This property is optional. If not set, OS settings are used. If the OS language setting is not supported, then English is used.
*** If the value is specified and not supported, then English is picked up.
*** French and English are the two languages that must be supported. Others are optional (but contributions are welcome).
* section defining aliases. An alias identifies all the properties of a connection. An alias is defined as following:
* *server<N>.host*: ** *<alias>.host*: the host of the default Petals node (required).
* *server<N>.port*: ** *<alias>.port*: the JMX port of the default Petals node (required).
* *server<N>.user*: ** *<alias>.user*: the JMX user name for the default Petals node (optional).
* *server<N>.password*: ** *<alias>.password*: the JMX password for the default Petals node (optional).
* *server<N>.alias*: the alias that identifies all the properties of a connection (required).
* *default.alias*: the default alias to use (required).
* *user.lang*: the language to use in Petals CLI.
** This property is optional. If not set, OS settings are used. If the OS language setting is not supported, then English is used.
** If the value is specified and not supported, then English is picked up.
** French and English are the two languages that must be supported. Others are optional (but contributions are welcome).

When optional keys are not defined, Petals CLI will ask for their values manually (or you will have to use the right options with the commands).
If the file does not exist, or that _$PETALS_CLI_PREFS_ points to an invalid location, Petals CLI will use default settings when possible. Otherwise, it will display an error message.