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

# watch

> Watch schema files for changes and auto-regenerate.

# `seedling watch`

Watches schema and generator override files for changes and automatically regenerates test data.

## Usage

```bash theme={null}
seedling watch [options]
```

## Flags

| Flag           | Description                           | Default       |
| -------------- | ------------------------------------- | ------------- |
| `--schema`     | Schema file to watch                  | `schema.yaml` |
| `--generators` | Generator overrides file to watch     | —             |
| `--debounce`   | Debounce interval before regenerating | `2s`          |

## Examples

```bash theme={null}
# Watch schema.yaml, auto-regenerate on save
seedling watch --schema schema.yaml

# Watch schema + generator overrides
seedling watch --schema schema.yaml --generators overrides.yaml

# Custom debounce interval
seedling watch --schema schema.yaml --debounce 5s
```

## Behavior

* Uses `fsnotify` to detect file changes
* Changes are debounced to avoid rapid regeneration on partial writes
* On each change, the generation pipeline runs with the same count and seed used previously
* Errors during auto-generation are logged but do not stop the watcher
