# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://native.electrode.io/v0.21/cli-commands/platform/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
