--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 |
-i, --interactive | Run the command in interactive mode. | update-settings |
--max-rollout <NUMBER> | Maximum number of shards to update concurrently during a keyspace rollout. Accepts values from 1 to 32. | 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 |
--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 |