agent-guide | | --format json, --skill | Vitess, Postgres, Neki | Bootstrap JSON for AI agents or print the installable agent skill |
api | | --help, --org string, --database string, --branch string, --field key=value, --header stringArray, --input string, --method string, --query key=value | Vitess, Postgres, Neki | Performs authenticated calls against the PlanetScale API and prints the response to stdout. |
audit-log | list, auth-attempts download | --help, --org string | Vitess, Postgres, Neki | List all audit logs and download authentication-attempt exports |
auth | login, logout, check | --help, --format json | Vitess, Postgres, Neki | Authenticate via console or JSON device login for agents |
backup | create, delete, list, policy, restore, restore show, show, update | --help, --org string | Vitess, Postgres, Neki | Manage Vitess, Postgres, and Neki branch backups |
billing | payment-method | --help, --org string | Vitess, Postgres, Neki | Show, update, or delete the organization payment method |
branch | admin, config-profile, connections, create, data-topology, delete, demote, diff, extensions list, lint, list, maintenance, parameters list, promote, query-patterns, refresh-schema, resize, router, routing-rules, safe-migrations, schema, shard, show, sidecar, switch, switchover, update, vtgate | --help, --org string | Vitess, Postgres, Neki | Manage Vitess, Postgres, and Neki branches, including Neki configuration |
completion | bash, zsh, fish, powershell | --help | Vitess, Postgres, Neki | 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, read-only-regions, regions, restore-dump, show, throttler, update | --help | Vitess, Postgres, Neki | 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 | agents, agent-guide, api, audit-log, auth, backup, billing, branch, completion, connect, database, deploy-request, help, import, insights, inspect, keyspace, logs, maintenance, metrics, org, password, pgbouncer, ping, read-only-replica, region, role, service-token, shell, signup, size, sql, traffic-control, webhook, workflow | --help | Vitess, Postgres, Neki | View help for any command or the agent automation help topic |
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, queries show, queries summary, queries traffic-budgets, errors, errors show, anomalies, anomalies show, tags, tags show, tags summaries, recommendations, recommendations show, recommendations dismiss | --help, --org string, --format json | Vitess, Postgres, Neki | 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, Neki | Live, read-only diagnostic checks over a direct database connection |
logs | <database> <branch> | --help, --org string, --query string, --period string, --from string, --to string, --level string, --server string, --shard string, --limit int, --page int | Postgres, Neki | Query recent Postgres or Neki branch logs |
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, sso, switch, team, update | --help | Vitess, Postgres, Neki | Manage and switch organizations, including members, teams, and SSO |
metrics | instant, keyspace-tables, queries, report, show, tables, tablets, tags | --help, --org string, --format json, --metric string, --period string, --from string, --to string, --steps int | Vitess, Postgres, Neki | 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, Neki | Check latency between your machine and PlanetScale’s public regions |
read-only-replica | create, delete, list, show, update | --help, --org string, --region string, --replicas int, --cluster-size string, --parameters stringArray, --force | Postgres | Manage read-only replicas for a Postgres branch |
region | list | --org string | Vitess, Postgres, Neki | 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, Neki | Manage Postgres and Neki roles |
service-token | add-access, create, delete, delete-access, list, show-access | --help, --org string | Vitess, Postgres, Neki | Manage access of service tokens |
size | cluster list | --help, --org string, --engine string, --region string, --metal | Vitess, Postgres, Neki | 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] [db_name] | --help, --db-name string, --local-addr string, --org string, --remote-addr string, --role string, --replica, --router | Vitess, Postgres, Neki | Open an interactive shell to the specified database and branch |
signup | | --help | Vitess, Postgres, Neki | Sign up for a new PlanetScale account |
sql | <database> <branch> | --org string, --query string, --role string, --replica, --dbname string, --keyspace string, --force, --vertical, --format json | Vitess, Postgres, Neki | 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, Neki | 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 |