# CLI Preflight

Discremy validates your project before it starts the bot.

## What it checks

* `config.discremy.js` exists
* Optional module packages are installed when enabled
* Required config fields are present for enabled modules

## Example output

```txt
DISCREMY  CLI Preflight
============================================================
[OK] Config file loaded
[OK] MongoDB module dependency
[OK] MongoDB module config
[OK] Startup validation
============================================================
```

## Common errors

* Missing package:
  * `Please install the dependency @discremy/mongodb before enabling modules.mongodb.`
  * `Please install the dependency @discremy/mysql before enabling modules.mysql.`
* Missing module config:
  * MongoDB requires `modules.mongodb.uri` and `modules.mongodb.name`
  * MySQL requires `modules.mysql.host`, `modules.mysql.user`, and `modules.mysql.database`

## Install commands

```bash
npm i @discremy/mongodb
npm i @discremy/mysql
```


---

# 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://docs.discremy.com/documentation/getting-started/cli-preflight.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.
