Getting Started
Make sure to first set up your PlanetScale developer environment. Once you’ve installed thepscale CLI, you can interact with PlanetScale and manage your databases straight from the command line.
The vdiff command
Run Vitess VDiff against a VReplication workflow on a Vitess database branch. Use it to verify that source and target tables match before you switch traffic on a MoveTables workflow.
JSON output for create and show includes a next_steps field with a suggested next command.
Usage:
pscale branch vtctld vdiff also works.
You must be an Organization Administrator or a Database Administrator of the database to create and change VDiffs. Service tokens need
read_workflow to list and show VDiffs, write_workflow to create, stop, or resume them, and delete_workflow to delete them.Available sub-commands
* Flag is required
Sub-command flag descriptions
Available flags
Global flags
Lifecycle
- Create a MoveTables workflow and wait until streams are
Running. - Create a VDiff and note the
uuid. - Show until the VDiff completes with no mismatches.
- Switch replica traffic, then primary traffic.
- Optionally stop, resume, or delete a VDiff.
Examples
API
Matching API paths under/v1/organizations/:org/databases/:db/branches/:branch/vdiff/workflows/:workflow/vdiffs.

