Petals CLI SNAPSHOT

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

Changes (6)

View Page History
h2. Petals CLI Preferences

It is possible to define preferences in Petals CLI. The preferences are defined in a properties file, as key/value pairs. Two levels of preference files are defined:
The preferences are defined a properties file, as key/value pairs.
By default, this file is located at _$PETALS_CLI_HOME/conf/petals-cli.default_.
* a user level, by the file {{$HOME/.petals-cli/petals-cli.default}}
* and a system level. The location of this file is defined accordingly to the operating system:
|| OS/Distribution || System level file ||
| Linux/Debian-based distribution | {{/etc/petals-cli/petals-cli.default}} |
| Windows | {{%PETALS_CLI_HOME%\conf\petals-cli.default |

However, it is possible to move this file somewhere else thanks to an environment variable.
_$PETALS_CLI_PREFS_ is the variable environment that points to the location of the preferences file.
If the user preference file exists, it is used. Otherwise the system preference file is used

{tip}
If Petals CLI is installed through the ZIP archive, and no user level file exists, it is possible to define another preference file through the environment variable _$PETALS_CLI_PREFS_.
{tip}

This file contains a set of keys in several sections:
* section 'Global preferences':