P

pscale CLI

CLI discovered

Details
Command
pscale
Docs
https://planetscale.com/docs/cli
Authentication
PlanetScale CLI login session oauth2 discovered $ pscale auth login

Acquired by the CLI — running pscale auth login opens the auth flow and stores the credential.

PlanetScale service token ID + service token secret env PLANETSCALE_SERVICE_TOKEN_ID, PLANETSCALE_SERVICE_TOKEN + PlanetScale service token ID + service token secret $ pscale ... --service-token-id <TOKEN_ID> --service-token <TOKEN> discovered
PlanetScale service token ID + service token secret compound Get key ↗

In the PlanetScale dashboard, open Settings → Service tokens, click New service token, name it, and create it. Copy both the service token ID and the service token secret when shown; the secret is only shown once. Then grant the needed organization/database permissions on that token's settings page.