P
pscale CLI
Details
- Command
-
pscale - Docs
- https://planetscale.com/docs/reference/planetscale-cli
Authentication
PlanetScale CLI login session token bearer discovered
$ pscale auth login Acquired by the CLI — running pscale auth login opens the auth flow and stores the credential.
PlanetScale CLI login session token
CLI login + PlanetScale CLI login session token $ pscale --api-token <TOKEN> discovered PlanetScale service token pair (service token ID + service token secret) compound discovered Get key ↗
$ pscale --service-token-id <TOKEN_ID> --service-token <TOKEN> In the PlanetScale dashboard, open Settings → Service tokens, click New service token, create the token, and copy both values shown: the SERVICE_TOKEN_ID and the SERVICE_TOKEN. Then assign the organization/database permissions the token needs. The token secret is only shown once, so save it securely.