# config

## Description

* Get or set the local platform configuration values stored in the `~/.ern/.ernrc` file &#x20;

## Syntax

`ern platform config <key> [value]`

**Arguments**

`<key>`

* The key of the configuration element to get or set

`[value]`

* If specified, will set the config value associated to this key. If not specified, will retrieve the config value (get) associated to this key.

**Configurable properties**

* `logLevel` \[trace|debug|info|error|fatal]\
  Set the log level to use for all commands.\
  **default** : info
* `showBanner` \[true|false]\
  Show the Electrode Native ASCII banner for all commands.\
  **default** : true
* `tmp-dir`\
  Temporary directory to use during commands execution.\
  **default** : system default
* `retain-tmp-dir` \[true|false]\
  If set to `true`, the temporary directories created during some commands execution, won't be destroyed after the command execution.\
  **default** : false

## Remarks

* The `ern platform config <key> [value]` command is rarely used. &#x20;
* All current configuration values are already set and retrieved transparently through the use of commands that rely on the local platform configuration. &#x20;
* If a value is not provided, the `ern platform config <key> [value]` command reads the value associated with the specified key and logs it in the terminal. &#x20;
* If a value is provided, the `ern platform config <key> [value]` command sets the value associated with the given key with the specified value, overwriting any existing value stored for this key.
