Open a read-only shell

connect & shell

// what it does

--role reader gives the shell session read-only access — the right default when you're poking around production data and have no intention of writing. --replica additionally routes reads to replicas so heavy analytical queries don't load the primary.

// shell

$ pscale shell mydb main --role reader
$ pscale shell mydb main --role reader --replica

// gotcha

Defaults differ: a plain shell session is admin unless you say otherwise. Making --role reader your habit on production branches turns fat-fingered UPDATEs into harmless errors.

// resources