branch
command helps you create, list, describe, and manage branches in Xata.
Subcommands
list
List all branches.Organization ID
Project ID
Branch ID
Output in JSON format
Print help information and exit
ls
describe
Describe a branch.Organization ID
Project ID
Branch ID
Output in JSON format
Print help information and exit
The branch to describe
view
, show
create
Create a new branch.Organization ID
Project ID
Parent branch ID. Pass “None” to create a branch without a parent.
Branch name
Type of instance for this branch
Number of replicas for the branch (0-4)
Region for the branch
Scale to zero status for the branch (true|false)
Inactivity period in minutes for the branch (15|30|60|120|180)
Output in JSON format
Print help information and exit
delete
Delete a branch.Organization ID
Project ID
Branch ID
Do not ask for confirmation, assume yes
Output in JSON format
Print help information and exit
The branch to delete
url
Print URL (connection string) for a branch.Organization ID
Project ID
Branch ID
Database name
Print help information and exit
The branch to get URL for
connection-string
checkout
Checkout a branch.Organization ID
Project ID
Branch ID
Database name
Output in JSON format
Print help information and exit
The branch to switch to
tree
List all branches as a tree.Organization ID
Project ID
Branch ID
Show branch IDs in the tree
Print help information and exit
topology
get
Get a field from a branch description.Organization ID
Project ID
Branch ID
Print help information and exit
The field to get (default:
.catalog
)set
Set a field value for a branch.Organization ID
Project ID
Branch ID
Print help information and exit
The field to set
The value to set
wait-ready
Wait for a branch to be ready.Organization ID
Project ID
Branch ID
Output in JSON format
Print help information and exit
The branch to wait for
Global Flags
Print help information and exit