---
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]
```

​

\--organization

string

Organization ID (default: "")

​

\--project

string

Project ID (default: "")

​

\--branch

string

Branch ID (default: "")

​

\--database

string

Database name (default: "")

​

\--json

boolean

Output in JSON format (default: false)

​

-h, --help

boolean

Print help information and exit

## ​Global Flags

​

-h, --help

boolean

Print help information and exit

Was this page helpful?

[Previous](/docs/cli/completions)

[keys](/docs/cli/keys)

[Next](/docs/cli/keys)
