--additional-replicas <NUMBER> | <NUMBER> is the number of replicas to add to the keyspace. By default, production branches include 2 replicas. Do not use this flag for external keyspaces. | create, resize |
--cluster-size <SIZE> | <SIZE> is the size of the database cluster. Optional for create-external; when omitted, PlanetScale chooses a size from the source storage. For resize, pass a size from pscale size cluster list --external. | create, create-external, resize |
--dry-run | Check connectivity and schema compatibility without creating the keyspace. | create-external |
--host <HOST> | Hostname of the external MySQL server. | create-external |
--min-tls-version <VERSION> | Minimum TLS version for the external connection. | create-external |
--password <PASSWORD> | Password for the external MySQL user. | create-external |
--port <PORT> | Port of the external MySQL server. Default is 3306. | create-external |
--skip-lint-errors | Create even if datasource lint reports errors, when the organization allows it. | create-external |
--source-database <NAME> | Name of the database on the external MySQL server, not the PlanetScale database. | create-external |
--ssl-certificate-authority <CA> | CA certificate chain, or a path to a PEM file. | create-external |
--ssl-client-certificate <CERT> | Client certificate, or a path to a PEM file. | create-external |
--ssl-client-key <KEY> | Client private key, or a path to a PEM file. | create-external |
--ssl-mode <MODE> | SSL verification mode: disabled, preferred, required, verify_ca, or verify_identity. | create-external |
--ssl-server-name <NAME> | SSL server name override. | create-external |
--tablet-cell <CELL> | Cell where the external tablet runs. | create-external |
--username <USER> | Username to connect to the external MySQL server. | create-external |
--wait | Wait until the keyspace is ready. | create-external |
--force | Delete the keyspace without a confirmation prompt. Required in non-interactive or non-human output modes. | delete |
--disk-scaling-strategy <STRATEGY> | How disk size is managed: grow automatically increases disk size as needed, up to --max-storage. disable turns off automatic disk growth. shrink resizes disks to --storage and then turns off automatic disk growth. | update-settings |
-i, --interactive | Run the command in interactive mode. | update-settings |
--namespace <NAMESPACE> | Only show parameters in this namespace: vttablet or mysqld. | parameters list |
--parameters <NAMESPACE.NAME=VALUE> | Set a parameter, where <NAMESPACE> is vttablet or mysqld, for example vttablet.vreplication-parallel-insert-workers=4. Repeatable. | parameters set |
--reset <NAMESPACE.NAME> | Set a parameter back to its default, for example vttablet.vreplication-parallel-insert-workers. Repeatable. | parameters set |
--page <NUMBER>, --per-page <NUMBER> | Page through parameter changes. --per-page defaults to 25. | parameters changes list |
--max-rollout <NUMBER> | Maximum number of shards to update concurrently during a keyspace rollout. Accepts values from 1 to 32. | update-settings |
--max-storage <SIZE> | Maximum size disks can automatically grow to, in bytes or with a unit such as 200GiB or 1TiB. Must be at least the size of the largest current disk and no more than the organization’s storage limit (4 TB by default). | update-settings |
--replication-durability-constraints-strategy <STRATEGY> | Replication strategy to use. Options: maximum, dynamic, minimum (default “maximum”). | update-settings |
--throttler-enabled | Pause schema migrations and VReplication workflows when replication lag is above the threshold. Pass --throttler-enabled=false to turn the throttler off. | update-settings |
--throttler-threshold <SECONDS> | Replication lag in seconds above which migrations and workflows are paused. Default is 5. | update-settings |
--storage <SIZE> | Disk size to shrink to, in bytes or with a unit such as 200GiB. Must be a multiple of 1 GiB and no more than the organization’s storage limit. Only accepted when the disk scaling strategy is shrink, either passed with --disk-scaling-strategy or already set on the keyspace. Rejected if any disk is using more than 80% of the requested size. | update-settings |
--shards <NUMBER> | Number of shards in the keyspace (default 1). | create |
--vreplication-batch-replication-events | When enabled, sends fewer queries to MySQL to improve performance. | update-settings |
--vreplication-enable-noblob-binlog-mode | When enabled, omits changed BLOB and TEXT columns from replication events, which reduces binlog sizes. (default true) | update-settings |
--vreplication-optimize-inserts | When enabled, skips sending INSERT events for rows that have yet to be replicated. (default true) | update-settings |
--vschema <FILE> | <FILE> is the path to the updated VSchema file. | vschema update |