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 | --help, --org string | Vitess, Postgres | List all audit logs |
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, diff, keyspaces, list, promote, refresh-schema, schema, show, switch, vschema | --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 | create, delete, dump, list, restore-dump, show | --help | Vitess, Postgres | Manage databases |
deploy-request | apply, cancel, close, create, deploy, diff, edit, list, revert, review, show, skip-revert | --help | Vitess | Manage deploy requests including gated deployments |
help | agent-guide, audit-log, auth, backup, branch, completion, connect, database, deploy-request, help, mcp, org, password, ping, region, role, service-token, shell, signup, size, sql, traffic-control, webhook, workflow | --help | Vitess, Postgres | View help for any command |
org | list, show, switch | --help | Vitess, Postgres | Manage and switch organizations |
mcp | install, server | --target string (cursor|claude-code|zed), --format json, --help | Vitess, Postgres | Install hosted MCP config (docs) |
password | create, delete, list | --help, --org string | Vitess | Manage branch credentials |
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, 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 |