Currently supported connector type:
postgresql.ardent connector preflight
Check a database before connecting it. Preflight creates nothing and stores no credentials:- Connection — the host is reachable and the credentials work
- Permissions — the role can read the tables you want to replicate
- Replication settings —
wal_level, free replication slots, WAL senders, and thewal2jsonplugin
Example output
Example output
Preflight exits
0 when everything passes and 2 when it doesn’t, so you can use it in scripts.
ardent connector create
When preflight passes, connect the database:
The last three are different ways to answer replica identity decisions — use at most one. With none, the CLI walks you through the choices interactively.
Example output
Example output
Replica identity decisions
Some tables have no primary key or valid unique index, so Postgres can’t tell which row an UPDATE or DELETE touched. When Ardent finds tables like this, the CLI asks what to do with each one. In scripts (no terminal), it exits with code1 instead of guessing — pass one of the three flags above. You can also answer ahead of time: --replica-identity-decisions takes a JSON file mapping each table to a choice.
Most databases have keys on every table and never hit this.
What each choice means, and the decisions file format
What each choice means, and the decisions file format
A valid unique index means unique, NOT NULL on every column, non-partial, and non-deferrable. Tables without a primary key or an index like that need a decision:
The file must cover every listed table. With
--accept-replica-identity-defaults, undecided tables are excluded.ardent connector list
*. Status icons:
Warnings appear under the connector, with a
⚠ count next to the name. A [delete locked] marker means deletion is locked (see below).
In CI, add --fail-on-warnings to exit with code 2 when any connector has warnings.
ardent connector status
Show one connector’s health and setup progress:Example output
Example output
validating means source checks or setup are running right now.
ardent connector switch
Change the active connector without changing projects:ardent connector retry-setup
Finish or repair setup without deleting the connector. Your credentials and configuration are kept.- Checks are stale or failed — the CLI re-checks the source first, then runs setup.
- Already healthy — nothing to do; the CLI says so and exits.
- Setup already running — safe to run anyway; it joins the running setup instead of starting another. If that setup still needs replica identity decisions, the CLI exits with code
1— decisions can’t change mid-setup. Wait for it to finish, then retry.
ardent connector update
Change connector configuration. One setting today: which source extensions to leave out of new branches.ardent connector delete
--force skips the wait and abandons those changes.
Two things can stop a delete:
- Deletion is locked — someone ran
connector lockon it. Unlock first. - A branch has un-replicated changes — wait, or re-run with
--force.
Locks and quarantines
You’ll rarely need these two, but you should know they exist.ardent connector lock / unlock — protect a connector from deletion
ardent connector lock / unlock — protect a connector from deletion
connector delete refuses and tells you to unlock first. Locked connectors show [delete locked] in connector list.ardent connector quarantine — inspect and release paused replication
ardent connector quarantine — inspect and release paused replication
If part of a connector’s replication keeps crashing, Ardent pauses (quarantines) it to protect your source. Quarantines don’t show in Each entry shows what was paused, why, when, and the exact release command:Fix the underlying cause before releasing, or it will likely quarantine again.
connector status — list them directly: