List all branches of a database

branches

// what it does

Shows every branch with its state and whether it's production. Beyond discovery, it's the input to branch hygiene — old feature branches linger and (above the free allowance) cost money.

// shell

$ pscale branch list mydb
$ pscale branch list mydb --format json

// gotcha

Pipe --format json through jq to find stale branches by created date; a weekly cleanup script keeps the branch list meaningful.

// resources