start or continuously with stream, and can anonymize columns on the way in. config writes the anonymization rules the other two read.
Every command below also takes -h, --help.
xata clone start— Snapshot a PostgreSQL database into a Xata branchxata clone config— Write the anonymization rules that clone start and stream applyxata clone stream— Stream a PostgreSQL database into a Xata branch continuously
start
Snapshot a PostgreSQL database into a Xata branch Copies the source database into the branch once. The anonymization rules in.xata/clone.yaml are applied on the way in, and strict validation refuses to run until every table and column is covered by them.
Whether to produce CPU and memory profile files, as well as exposing a /debug/pprof endpoint on localhost:6060
Anonymization validation mode, strict implies that all tables and columns should be specified
Temporarily tune the target branch for bulk loading, reverting the change when the clone stops. Raises max_wal_size on the branch and the maintenance settings on the index rebuild.
Output in JSON format when the command supports it. Defaults to on when an AI agent runs the command.
config
Write the anonymization rules that clone start and stream apply Inspects the source database and writes.xata/clone.yaml, interactively or with AI, so the columns that carry personal data are transformed as they are copied.
The assisting mode to help with the configuration generation
Anonymization validation mode, strict implies that all tables and columns should be specified
AI model, gemini-2.5-flash by default
Output in JSON format when the command supports it. Defaults to on when an AI agent runs the command.
stream
Stream a PostgreSQL database into a Xata branch continuously Copies the tables--filter-tables selects first, then follows the source through logical replication, so the branch keeps up with it until the command is stopped.
Anonymization validation mode, strict implies that all tables and columns should be specified
Skip DDL tracking during streaming. Useful for managed PostgreSQL services that do not support superuser access required for event triggers. Requires —replication-slot flag to be set with a pre-created replication slot on the source database.