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 (16)

View Page History

This file contains the following keys:
* *default.connection.host*: the host of the default Petals node (required). Initial Value: localhost
* *default.connection.port*: the JMX port of the default Petals node (required). Initial Value: 7700
* *default.connection.user*: the JMX user name for the default Petals node (optional). Initial Value: petals
* *default.connection.password*: the JMX password for the default Petals node (optional). Initial Value: petals
* *lang*: the language to use in Petals CLI (FR/EN for the moment). If the value is unknown, then English is picked up.
* *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).
{code}
petals-cli@host:port> logger-set <logger-name> <level>
logger1
logger2
...
The log level was succesfully changed.
{code}

In case of error, the error message is "The log level could not be changed.", followed by a detailed message (e.g. "FINR is not a valid log level").

\\
To get all the available loggers, use loggers without any argument.
{code}
{code}

\\
You can also use a regular expression to filter the candidate results.
{code}

Petals CLI can directly execute system commands.
To achieve it, the system command must be prefixed with *system:*.
To achieve it, the system command is an argument of the '_system_' command.

{code}
petals-cli> system:<system-command>
petals-cli> system <system-command>
{code}


{code}
petals-cli> system:pwd
petals-cli> system pwd
{code}