<commit_before>---
id: config-options
title: 'Config Options'
---

List of all Config Options

## List of Config Options

### DOWNLOAD_DIR

Option `DOWNLOAD_DIR` is used to set where the binaries will be located in, this will overwrite all other directories

Directory Priority:

1. DOWNLOAD_DIR (Environment Variable over package.json)
2. `~/.cache/mongodb-binaries` (Home Directory Cache) [Only used if directory exists]
3. `projectRoot/node_modules/.cache/mongodb-binaries` (node-modules cache)
4. `./mongodb-binaries` (relative to `process.cwd()`)

Format:

- `/path/to/binary/` (POSIX)
- `C:/path/to/binary/` (DOS)

### PLATFORM

Option `PLATFORM` is used to overwrite which platform should be downloaded

Valid Options are `win32`, `darwin`, `linux`, `sunos`

### ARCH

Option `ARCH` is used to overwrite the Architecture to download for

Valid Options are `ia32`, `x64`, `arm64`<commit_msg>docs(config-options): DOWNLOAD_DIR: update to match new home directory<commit_after>---
id: config-options
title: 'Config Options'
---

List of all Config Options

## List of Config Options

### DOWNLOAD_DIR

Option `DOWNLOAD_DIR` is used to set where the binaries will be located in, this will overwrite all other directories

Directory Priority:

1. DOWNLOAD_DIR (Environment Variable over package.json)
2. `~/.cache/mongodb-binaries` (Home Directory Cache) (if [`PREFER_GLOBAL_PATH`](#prefer_global_path) is active, or binary already exists)
3. `projectRoot/node_modules/.cache/mongodb-binaries` (node-modules cache)
4. `./mongodb-binaries` (relative to `process.cwd()`)

Format:

- `/path/to/binary/` (POSIX)
- `C:/path/to/binary/` (DOS)

### PLATFORM

Option `PLATFORM` is used to overwrite which platform should be downloaded

Valid Options are `win32`, `darwin`, `linux`, `sunos`

### ARCH

Option `ARCH` is used to overwrite the Architecture to download for

Valid Options are `ia32`, `x64`, `arm64`
{'fraction_non_alphanumeric': 0.12447478991596639, 'fraction_numerical': 0.012605042016806723, 'mean_word_length': 4.7379518072289155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2102451', 'n_tokens_mistral': 642, 'n_tokens_neox': 598, 'n_words': 217}