# User Settings

The defaults for a module is stored in a `settings` struct in the `ModuleConfig.cfc` for that module. However, users can override those settings without needing to touch the core module code. This is made possible by special namespace in the CommandBox config settings called `modules`.

Consider the following module settings:

`/modules/TestModule/ModuleConfig.cfc`

```javascript
component{
    function configure(){
        settings = {
            mySetting = 'isCool',
            somethingEnabled = true
        };
    }
}
```

The following `config set` commands will create config settings that override those. The pattern is `modules.moduleName.settingName`.

```bash
config set modules.TestModule.mySetting=overridden
config set modules.TestModule.somethingEnabled=false
```

When a module is loaded, the config settings (that exist) for that module are also loaded and overwrite the defaults from `ModuleConfig.cfc`. You can easily see what settings are set for our `TestModule` like so:

```bash
config show modules.TestModule
```


---

# 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://commandbox.ortusbooks.com/developing-for-commandbox/modules/user-settings.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.
