edgedb branch create
Create a new branch.
edgedb branch create [options] name
This CLI command requires CLI version 4.3.0 or later and EdgeDB version 5.0 or later. If you are running an earlier version of EdgeDB, you will instead use the edgedb database create command to create a database, which branches replaced in EdgeDB 5.0.
Description
edgedb branch create
creates a new branch with the same schema as the
current branch specified in $CONFIG/credentials
. Without any options, it is
equivalent to create schema branch
.
Options
The branch create
command runs in the EdgeDB instance it is
connected to. For specifying the connection target see
connection options.
- name
-
The name of the new branch.
- --from oldbranch
-
The optional base branch to create the new branch from. Defaults to the current branch specified in
$CONFIG/credentials
. - -e, --empty
-
Create a branch with no schema or data.
- --copy-data
-
Copy data from the base branch to the new branch.