Loading...
Loading...
Use the PlanetScale CLI (pscale) from automated agents with --format json, auth check, pscale sql, and per-command --force. Run before other PlanetScale skills when driving pscale directly. Use when the user asks to automate pscale, run CLI commands headless, or verify pscale auth from an agent.
npx skill4agent add planetscale/skills planetscale-pscale-cli-automationpscale../00-safe-orchestrator/SKILL.md| Document | Where | Purpose |
|---|---|---|
| CLI agent guide | Shipped with | How to call |
| Project agent guide | Your application repository's | Which org, database, branch, engine, prod branch, MCP scope, approval rules |
AGENTS.md../09-mcp-agent-operating-model/SKILL.mdpscale agent-guide --format json
pscale auth check --format jsonauth check"status": "action_required"issuesnext_stepspscale auth login --format json--format json--org <org>databasebranchsqlapipscalepscale sql mydb main --org bb …pscale sqlpscale shell--role adminpscale shell--role--replica--forcedatabase delete … --forcepscale sql … --force--forcePSCALE_FORCE--format json--forcepscale auth check --format json
pscale org list --format json
pscale database list --org <org> --format json
pscale branch list <database> --org <org> --format json
pscale sql <database> <branch> --org <org> --format json --query "SELECT 1"@primarypscale shell--keyspacepscale agent-guide --format jsonpscale--format jsongit clone https://github.com/planetscale/skills.git && cd skills && script/setup
# or: npx skills add planetscale/skills -g -y../00-safe-orchestrator/SKILL.mdpscale agent-guide --format jsonguidepscale