Call the PlanetScale API directly
automation & ci
// what it does
An authenticated curl for the PlanetScale API: pscale api hits any v1 endpoint with your existing CLI auth, expanding {org}, {db}, and {branch} placeholders from context. The escape hatch for anything the CLI doesn't wrap yet.
// shell
$ pscale api organizations/{org}/databases$ pscale api organizations/{org}/databases/mydb/branches -Q per_page=50// gotcha
GET is the default method; passing -F fields silently switches to POST — be deliberate with -X when mutating. Responses are raw API JSON, which doesn't always match the shapes --format json prints.