Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
vince-winkintel avatar

Planetscale Cli Skills

  • 1 installs
  • Updated August 4, 2026
  • vince-winkintel/planetscale-cli-skills

Reference and automation for the PlanetScale CLI (pscale) covering database branches, deploy requests, schema migrations, backups, and service tokens.

About

Provides a pscale command reference with sub-skills and automation scripts for managing PlanetScale databases, branches, deploy requests, and backups from the terminal. A developer uses it when running PlanetScale branch or migration workflows via CLI or CI/CD.

  • Routes to sub-skills for auth, branches, deploy requests, databases, and backups
  • Bundled scripts for create-branch-for-mr, deploy-schema-change, and sync-branch-with-main

Planetscale Cli Skills by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #765 of 911 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/vince-winkintel/planetscale-cli-skills --skill planetscale-cli-skills

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
Last updatedAugust 4, 2026
Repositoryvince-winkintel/planetscale-cli-skills

What it does

Reference and automation for the PlanetScale CLI (pscale) covering database branches, deploy requests, schema migrations, backups, and service tokens.

Files

pscale-auth/SKILL.mdMarkdownGitHub ↗

pscale auth

Manage authentication for the PlanetScale CLI.

Common Commands

# Login to PlanetScale (opens browser)
pscale auth login

# Logout
pscale auth logout

# Check current authentication status
pscale org show

Authentication Methods

1. Interactive Login (Default)

Opens browser for OAuth flow:

pscale auth login

Best for: Local development, first-time setup

2. Service Tokens (CI/CD)

For automated environments:

export PLANETSCALE_SERVICE_TOKEN_ID=<token-id>
export PLANETSCALE_SERVICE_TOKEN=<token>
pscale database list --org <org>

Best for: CI/CD pipelines, automation, production deployments

See pscale-service-token skill for token creation.

Workflows

First-Time Setup

# 1. Login
pscale auth login

# 2. Verify authentication
pscale org show

# 3. List databases to confirm access
pscale database list --org <org>

Switch Between Accounts

# Logout current account
pscale auth logout

# Login with different account
pscale auth login

CI/CD Authentication

# Create service token (see pscale-service-token)
pscale service-token create --org <org>

# Use in CI/CD environment
export PLANETSCALE_SERVICE_TOKEN_ID=<token-id>
export PLANETSCALE_SERVICE_TOKEN=<token>

# Test authentication
pscale database list --org <org>

Troubleshooting

Login fails / browser doesn't open

Symptoms: pscale auth login hangs or fails

Solutions:

  • Check network connectivity
  • Ensure firewall allows https://auth.planetscale.com
  • Try headless browser auth (not supported by pscale, use service tokens instead)
  • Use service token for non-interactive environments

"Unauthorized" errors

Symptoms: 401 Unauthorized or 403 Forbidden responses

Solutions:

  • Run pscale auth logout && pscale auth login to refresh session
  • Verify organization access: pscale org show
  • Check service token hasn't expired (if using tokens)
  • Ensure token has required permissions (database read/write, branch create, etc.)

Multiple accounts / wrong org

Symptoms: Cannot access expected databases

Solutions:

  • Check current org: pscale org show
  • Switch org: pscale org switch <org-name>
  • List all orgs: pscale org list
  • Logout and login with correct account

Service token authentication fails

Symptoms: Token authentication not working in CI/CD

Solutions:

  • Verify both PLANETSCALE_SERVICE_TOKEN_ID and PLANETSCALE_SERVICE_TOKEN are set
  • Check token hasn't been revoked: pscale service-token list --org <org>
  • Ensure token has required permissions for the operation
  • Use --debug flag to see authentication details

Related Skills

  • pscale-service-token - Create and manage service tokens for CI/CD
  • pscale-org - Switch between organizations
  • pscale-database - Database operations requiring authentication

References

See references/commands.md for complete pscale auth command reference.

Related skills

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.