pscale branch switch <branch>

Switches the current project to use the specified branch

Arguments

NameDescription
branch

Options

NameDescription
--help, -hShow help
--api-token <string>The API token to use for authenticating against the PlanetScale API
--api-url <string>The base URL for the PlanetScale API. (default "https://api.planetscale.com/")
--config <string>Config file (default is $HOME/.config/planetscale/pscale.yml)
--debugEnable debug mode
--format, -f <string>Show output in a specific format. Possible values: [human, json, csv] (default "human")
--no-colorDisable color output
--service-token <string>Service Token for authenticating
--service-token-name <string>The Service Token name for authenticating
--createIf enabled, will automatically create the branch if it does not exist
--database <string>The database this project is using
--parent-branch <string >Parent branch to inherit from if a new branch is being created (default "main")