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.
pscale org <SUB-COMMAND> <FLAG>
|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
pscale org switch <ORGANIZATION_NAME>
Successfully switched to organization
<ORGANIZATION_NAME> (using file: