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 backup command

This command allows you to create, list, show, and delete branch backups, and manage scheduled backup policies. Usage:

Available sub-commands

* Flag is required

Sub-command flag descriptions

Available flags

Global flags

Examples

The list sub-command with --org flag

Command:
Output:

The show sub-command

Command:
You can find the <BACKUP_ID> by running the pscale backup list <DATABASE_NAME> <BRANCH_NAME> command. Output:

Manage backup policies

Backup policies define automatic backup frequency, schedule, and retention for production or development branches. This is separate from one-off backups created with pscale backup create.

Need help?

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