# config
URL: https://synquic.tech/docs/cli/reference/config.md

Commands, arguments, and options for synq config.

See the [workflow guide](/docs/cli/projects) for examples. Global flags such as `--json` go before the command; see [global options](/docs/cli/reference#global-options).

## synq config

Author and validate synq.json (declarative deploy config)

```text
synq config [options] [command]
```

| Subcommand | Purpose |
| --- | --- |
| [`init [options]`](/docs/cli/reference/config#synq-config-init) | Scaffold an synq.json in the current directory |
| [`validate [file]`](/docs/cli/reference/config#synq-config-validate) | Validate an synq.json against the deploy schema |

## synq config init

Scaffold an synq.json in the current directory

```text
synq config init [options]
```

| Option | Meaning |
| --- | --- |
| `--dir <path>` | Directory to write into (default: ".") |
| `--force` | Overwrite an existing synq.json |

## synq config validate

Validate an synq.json against the deploy schema

```text
synq config validate [options] [file]
```

| Argument | Meaning |
| --- | --- |
| `file` | Path to the config file (default: "synq.json") |
