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

# validate

Checks if the specified schema definition is syntactically valid.

<Note>
  This command validates the schema files themselves. To validate documents that already exist in Firestore, use
  [validate-data](/cli/validate-data).
</Note>

## Usage

```bash theme={null}
typesync validate --definition <filePathOrPattern> --debug <debug>
```

## Options

<ParamField type="string" path="definition" required>
  The exact path or a Glob pattern to the definition file or files. Each definition file must be a YAML or JSON file containing model definitions.

  * Example single file path: `definition/models.json`
  * Example Glob pattern: `'definition/**/*.yml'`
</ParamField>

<ParamField type="boolean" path="debug" default={false}>
  Whether to enable debug logs.
</ParamField>
