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.
This command allows you to create, review, diff, and manage deploy requests.
pscale deploy-request <SUB-COMMAND> <FLAG>
Your database must have a production branch before you can create a deploy request.
|Apply changes to a gated deploy request.|
|Cancel a deploy request.|
|Close the specified deploy request.|
|Create a new deploy request.|
|Deploy the specified deploy request.|
|Show the diff of the specified deploy request.|
|Edit a deploy request.|
|List all deploy requests for a database.|
|Revert a deployed deploy request.|
|Approve or comment on a deploy request.|
|Show the specified deploy request.|
|Skip and close a pending deploy request revert.|
* Flag is required
<DR_NUMBER> represents the deploy request number (not to be confused with
id). To see a deploy request number, run
pscale deploy-request list <DATABASE_NAME>.
You can also find the number in the PlanetScale dashboard in the URL of the specified deploy request:
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.
|Sub-command flag||Description||Applicable sub-commands|
|Specify that the new deploy request deploy to a specified branch. Default is |
|Perform the action in your web browser|
|Approve a deploy request|
|Leave a comment on a deploy request|
|Get help with the |
|Specify the organization for the deploy request you're acting upon|
|The API token to use for authenticating against the PlanetScale API.|
|The base URL for the PlanetScale API. Default is |
|Config file. Default is |
|Enable debug mode.|
|Show output in a specific format. Possible values: |
|Disable color output.|
|The service token for authenticating.|
|The service token ID for authenticating.|
pscale deploy-request review <DATABASE_NAME> 1 --comment 'Lets wait on this.'
A comment is added to the deploy request