Check whether you're authenticated

setup & auth

// what it does

Verifies your cached session is still valid — the first thing to run when commands start failing with authentication errors. Exits non-zero when you're not logged in, so it doubles as a preflight guard in scripts.

// shell

$ pscale auth check

// gotcha

A valid session doesn't mean the right org: if a command says a database doesn't exist, you're often authenticated fine but pointed at the wrong organization — check `pscale org show` next.

// resources