agent-guide | | --format json | Vitess, Postgres | Bootstrap JSON for AI agents; embeds CLI conventions and skills/MCP hints |
api | | --help, --org string, --database string, --branch string, --field key=value, --header stringArray, --input string, --method string, --query key=value | Vitess, Postgres | Performs authenticated calls against the PlanetScale API and prints the response to stdout. |
audit-log | list, auth-attempts download | --help, --org string | Vitess, Postgres | List all audit logs and download authentication-attempt exports |
auth | login, logout, check | --help, --format json | Vitess, Postgres | Authenticate via console or JSON device login for agents |
backup | create, delete, list, restore, show | --help, --org string | Vitess, Postgres | Manage branch backups |
branch | connections, create, delete, demote, diff, extensions list, lint, list, parameters list, promote, query-patterns, refresh-schema, resize, routing-rules, safe-migrations, schema, show, switch, switchover, update, vtgate | --help, --org string | Vitess, Postgres | Manage branches |
completion | bash, zsh, fish, powershell | --help | Vitess, Postgres | Generate completion script for specified shell |
connect | <database_name> <branch_name> | --execute string, --execute-env-url string, --execute-protocol string, --help, --host string, --org string, --port string, --remote-addr string, --role string | Vitess | Create a secure connection to the given database and branch |
database | aggressive-cutover, create, delete, dump, ip-restriction, list, restore-dump, show, throttler, update | --help | Vitess, Postgres | Manage databases |
deploy-request | apply, cancel, close, create, deploy, deployment, diff, force-cutover, list, operations, queue, revert, review, reviews, show, skip-revert, storage-check, throttler, unblock, update | --help | Vitess | Manage deploy requests including gated deployments |
help | agent-guide, audit-log, auth, backup, branch, completion, connect, database, deploy-request, help, import, insights, inspect, keyspace, maintenance, metrics, org, password, pgbouncer, ping, region, role, service-token, shell, signup, size, sql, traffic-control, webhook, workflow | --help | Vitess, Postgres | View help for any command |
import | d1 doctor, d1 lint, d1 convert-schema, d1 start, d1 verify, d1 status, d1 complete | --help, --org string | Postgres | Import external databases (Cloudflare D1) into PlanetScale Postgres |
insights | queries, queries samples, errors, errors show, anomalies, anomalies show, tags, recommendations, recommendations dismiss | --help, --org string, --format json, --sort string, --dir string, --limit int, --period string | Vitess, Postgres | Server-side query insights, anomalies, and schema recommendations from production traffic |
inspect | all, table-sizes, index-sizes, unused-indexes, redundant-indexes, invalid-indexes, seq-scans, long-running-queries, locks, outliers, calls, bloat, vacuum-stats, replication-slots, subscriptions | --help, --org string, --format json, --keyspace string, --dbname string, --role string, --replica | Vitess, Postgres | Live, read-only diagnostic checks over a direct database connection |
keyspace | create, delete, list, read-only-regions, resize, rollout-status, settings, show, update-settings, vschema | --help, --org string | Vitess | Manage keyspaces within a database branch |
maintenance | list, show, windows | --help, --org string | Vitess | View planned maintenance schedules and windows for a database |
org | list, member, show, switch | --help | Vitess, Postgres | Manage and switch organizations, and manage organization members |
metrics | show, instant, report | --help, --org string, --format json, --metric string, --period string, --from string, --to string, --steps int | Vitess, Postgres | Query historical and current branch metrics from PlanetScale’s metrics service |
password | create, delete, list, renew, show, update | --help, --org string, --name string, --new-name string, --cidrs strings, --status string | Vitess | Manage branch credentials |
pgbouncer | create, delete, list, resize, show | --help, --org string | Postgres | Manage dedicated PgBouncers for a Postgres branch |
ping | | --help, --count, -n int, --concurrency int, --provider, -p string --timeout duration | Vitess, Postgres | Check latency between your machine and PlanetScale’s public regions |
region | list | --org string | Vitess, Postgres | View available regions |
role | create, default, delete, get, list, reassign, renew, reset, reset-default, update | --help, --org string, --inherited-roles string, --ttl duration, --force, --successor string, --name string, --web | Postgres | Manage Postgres roles |
service-token | add-access, create, delete, delete-access, list, show-access | --help, --org string | Vitess, Postgres | Manage access of service tokens |
size | cluster list | --help, --org string, --region string, --metal | Vitess, Postgres | View available cluster sizes |
traffic-control | budget, rule | --help, --org string | Postgres | Manage Database Traffic Control budgets and rules for a Postgres database branch |
shell | <database_name> <branch_name> | --help, --local-addr string, --org string, --remote-addr string, --role string, --replica | Vitess, Postgres | Open an interactive shell to the specified database and branch |
signup | | --help | Vitess, Postgres | Sign up for a new PlanetScale account |
sql | <database> <branch> | --org string, --query string, --role string, --replica, --dbname string, --keyspace string, --force, --format json | Vitess, Postgres | Execute a SQL query without an interactive shell (agents/scripts) |
webhook | create, delete, list, show, test, update | --help, --org string, --events string, --url string, --enabled | Vitess, Postgres | Manage webhooks for databases |
workflow | cancel, complete, create, cutover, list, retry, reverse-cutover, reverse-traffic, show, switch-traffic, verify-data | --help, --org string | Vitess | Manage the workflows for PlanetScale databases |