Xata is a PostgreSQL platform that provides instant Copy-on-Write branching, data masking, and separation of storage from compute. It’s designed for modern teams running PostgreSQL at scale, with features like zero-downtime schema changes, realistic staging environments, and cloud-agnostic deployment options.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.
1. Sign up
Create your free Xata account at console.xata.io. You can sign up with GitHub, Google, or your email address.
2. Create a project
After signing in, create a new project. A project is the top-level container for all your branches and Postgres instances.
3. Create a branch
Within your project, create your first branch (e.g.,main). A branch is a Postgres cluster—a collection of one or more Postgres instances, which can include a primary and optional replicas. When creating your main branch, you can choose the Postgres version, region, and instance size to fit your needs. This branch can serve as your production branch or a staging environment. You can branch off main at any time to create isolated development or test environments.

4. Install and configure the Xata CLI
Install the Xata CLI:.xata directory with your project configuration.
5. Insert sample data
Let’s insert some sample data usingpsql. If you don’t have psql installed:
psql with your dev branch connection string
6. Create a development branch with the CLI
Create a new branch frommain:
main.
7. Next steps: choose your workflow
Now that you have a base branch and development branch to try out, explore what the rest of the platform has to offer.- Set up production clone: Learn how to use Xata for staging environments, feature branches, and collaborative development.
- Schema changes: Learn how to safely apply and roll back schema changes with zero downtime.
- Migrate to Xata: Get set up for production by migrating your existing PostgreSQL database to Xata.
Need help? Reach out to the Xata team at info@xata.io or join our Discord community.