> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# generate

> Generate NanoForge project files from configuration

## Overview

`nf generate` generates project files from your [configuration](../../configuration/1-configuration-file).
It reads the config and produces the entry files and wiring your project needs, including the editor
main file when requested.

## Usage

```bash theme={null}
nf generate
```

## Options

| Option                        | Description                               |
| ----------------------------- | ----------------------------------------- |
| `-d, --directory <directory>` | Working directory of the command.         |
| `-c, --config <config>`       | Path to the configuration file.           |
| `--editor`                    | Generate the editor main file.            |
| `--watch`                     | Generate in watch mode. Default: `false`. |

## Examples

**Generate once:**

```bash theme={null}
nf generate
```

**Regenerate on change, including the editor entry:**

```bash theme={null}
nf generate --editor --watch
```
