Skip to content

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.

Each release carries it as one file: peat-linux-x64, peat-linux-arm64, peat-darwin-arm64, peat-darwin-x64, with checksums in SHA256SUMS.

Terminal window
curl -fsSL -o peat https://github.com/Zabaca/peat/releases/download/release-2026-11-29.3/peat-linux-x64
chmod +x peat && sudo mv peat /usr/local/bin/
CommandWhat it does
peat listThe 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 19Move it to a newer Postgres version. --rehearse, --verify full, --retry, --back.
peat delete <db> --yesDelete it.
peat url <db>Its connection URL, with the password in it.
peat ca [<db>]The certificate authority, for sslrootcert.
CommandWhat it does
peat statusThe platform’s state, each piece, and what it is waiting for.
peat retryContinue a halted upgrade from the step it stopped at.
OptionMeaning
-n, --namespaceThe namespace to look in. Default: your kubeconfig context’s.
-ALook a database up in every namespace. Refused when more than one holds the name.
--kubeconfig, --contextAs for kubectl.
--no-waitReturn 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).