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

# init

> Command for initializing a Xata project

The `init` command helps you set up a new Xata project in your current directory.

## init

Link a project to the folder.

```bash theme={null}
xata init [--organization <id>] [--project <id>] [--branch <id>] [--database <name>] [--json] [-h|--help]
```

<ParamField path="--organization" type="string">
  Organization ID (default: "")
</ParamField>

<ParamField path="--project" type="string">
  Project ID (default: "")
</ParamField>

<ParamField path="--branch" type="string">
  Branch ID (default: "")
</ParamField>

<ParamField path="--database" type="string">
  Database name (default: "")
</ParamField>

<ParamField path="--json" type="boolean">
  Output in JSON format (default: false)
</ParamField>

<ParamField path="-h, --help" type="boolean">
  Print help information and exit
</ParamField>

## Global Flags

<ParamField path="-h, --help" type="boolean">
  Print help information and exit
</ParamField>
