PostgreSQL branches

Xata provides isolated, writable copies of a synthetic test database for agents and CI runs. Manage branches with the CLI and API.

For the native Xata CLI, use the Heresy profile:

xata auth login --profile heresy \
  --api-url https://xata.hrsy.pl \
  --issuer https://xata-auth.hrsy.pl/realms/xata \
  --client-id cli

The operator guide covers connection setup, lease expiry and recovery.