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 traffic-control command

Manage Database Traffic Control budgets and rules for a branch. This command is only supported for Postgres databases. Usage:

Available sub-commands

Available flags

Global flags


The budget sub-command

Manage traffic budgets. Usage:

Available sub-commands

The budget create sub-command

Create a traffic budget. Usage:
Available flags:

The budget update sub-command

Update a traffic budget. Usage:
A budget’s <budget-id> can be retrieved by running the show, create, or list commands. Available flags: Same flags as budget create.

The budget show sub-command

Show a traffic budget. Usage:

The budget delete sub-command

Delete a traffic budget. Usage:
Available flags: Aliases: delete, rm

The rule sub-command

Manage traffic rules. Usage:

Available sub-commands

The rule create sub-command

Create a traffic rule on a budget. Usage:
This command adds a rule to the budget. Rules are combined via OR, tags within a rule are combined via AND. Create multiple rules to get the desired AND/OR behavior. Available flags:

The rule delete sub-command

Delete a traffic rule from a budget. Usage:
Available flags: Aliases: delete, rm

Need help?

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