---
title: "init - Xata"
description: "Command for initializing a Xata project"
source: "https://xata.io/docs/cli/init"
---

Skip to main content

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

## ​init

Link a project to the folder.

```
xata init [--organization <id>] [--project <id>] [--branch <id>] [--database <name>] [--json] [-h|--help]
```

​

string

Organization ID (default: "")

​

string

Project ID (default: "")

​

string

Branch ID (default: "")

​

string

Database name (default: "")

​

boolean

Output in JSON format (default: false)

​

boolean

Print help information and exit

## ​Global Flags

​

boolean

Print help information and exit

Was this page helpful?
