PlanetScale CLI commands - org
Use the PlanetScale CLI to create development branches, open deploy requests, and make non-blocking schema changes directly from your terminal.
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 list, show, and switch organizations.
|List all currently active organizations with timestamps|
|Display the currently active organization|
|Switch the currently active organization|
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.
|Sub-command flag||Description||Applicable sub-commands|
|Path to store the organization. By default, the configuration is automatically deduced based on where |
|View help for |
|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.|
org command with
Successfully switched to organization
<ORGANIZATION_NAME> (using file: