pscale branch
Create, delete, diff, and manage branches
Subcommands
Name | Description |
---|
create, b | Create a new branch from a database |
delete, rm | Delete a branch from a database |
diff | Show the diff of a branch |
list, ls | List all branches of a database |
promote, p | Promote a new branch from a database |
refresh-schema | Refresh the schema for a database branch |
schema | Show the schema of a branch |
show | Show a specific branch of a database |
switch | Switches the current project to use the specified branch |
Options
Name | Description |
---|
--help, -h | Show 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) |
--debug | Enable debug mode |
--format, -f <string> | Show output in a specific format. Possible values: [human, json, csv] (default "human") |
--no-color | Disable color output |
--service-token <string> | Service Token for authenticating |
--service-token-name <string> | The Service Token name for authenticating |