Skip to main content

Getting Started

Make sure to first set up your PlanetScale developer environment. Once you’ve installed the pscale CLI, you can interact with PlanetScale and manage your databases straight from the command line.

The workflow command

This command allows you to create and manage workflows for Vitess databases, including creating workflows, listing them, and performing actions like traffic switching and cutover. This command is not supported for Postgres databases.
The create sub-command is for table movement workflows only (moving tables between keyspaces). Database import workflows must be created through the PlanetScale dashboard. Once created, all other sub-commands (list, show, switch-traffic, verify-data, complete, cancel, etc.) work with both workflow types.
Usage:

Available sub-commands

Sub-command flag descriptions

Some of the sub-commands have additional flags unique to the sub-command. This section covers what each of those does. See the above table for which context.

Available flags

Global flags

Need help?

Get help from the PlanetScale Support team, or join our Discord community to see how others are using PlanetScale.