The peat command
One program for everyday work on databases. It uses your own Kubernetes login, as kubectl does, so the cluster’s permissions
decide who may do what. Everything it does is a change to a Database object, which you could also make with kubectl.
Getting it
Section titled “Getting it”Each release carries it as one file: peat-linux-x64, peat-linux-arm64, peat-darwin-arm64, peat-darwin-x64, with checksums in
SHA256SUMS.
curl -fsSL -o peat https://github.com/Zabaca/peat/releases/download/release-2026-11-29.3/peat-linux-x64chmod +x peat && sudo mv peat /usr/local/bin/Databases
Section titled “Databases”| Command | What it does |
|---|---|
peat list | The databases in your namespace. -A for every namespace. |
peat show <db> | One database: its state, where to connect, whether it is awake. |
peat make <db> [--pg 18|19] | A new, empty database. |
peat branch <from> <db> | A copy-on-write branch of <from>, as it is now. |
peat restore <from> <db> --at <time> | A new database as <from> was at a moment. |
peat replica <of> <db> | A read replica. |
peat stop <db> | Put it to sleep now. The next connection wakes it. |
peat resize <db> --memory <size> | Change the memory its compute may use, without a restart. --request sets what it is guaranteed. See Resizing. |
peat resize <db> --min <size> --max <size> | Leave its size to its use, between the two. |
peat close <db>, peat open <db> | Refuse every connection, and take them again. |
peat move <db> --pg 19 | Move it to a newer Postgres version. --rehearse, --verify full, --retry, --back. |
peat delete <db> --yes | Delete it. |
peat url <db> | Its connection URL, with the password in it. |
peat ca [<db>] | The certificate authority, for sslrootcert. |
The platform
Section titled “The platform”| Command | What it does |
|---|---|
peat status | The platform’s state, each piece, and what it is waiting for. |
peat retry | Continue a halted upgrade from the step it stopped at. |
Options
Section titled “Options”| Option | Meaning |
|---|---|
-n, --namespace | The namespace to look in. Default: your kubeconfig context’s. |
-A | Look a database up in every namespace. Refused when more than one holds the name. |
--kubeconfig, --context | As for kubectl. |
--no-wait | Return once the change is asked, without waiting for it to be done. |
--timeout <seconds> | How long to wait. |
Each command waits until the platform has answered it, and says what happened. delete and close name the cluster they act on
before they act.
--at takes a time in UTC, in the past (2026-11-28T08:58:09Z), or a log position (16/B374D848).