Search
ctrl/
Ask AI
Light
Dark
System

edgedb branch rename

Rename a branch

edgedb branch rename [options] old-name new-name

This CLI command requires CLI version 4.0 or later and EdgeDB version 5.0 or later. Earlier versions did not feature branches and instead featured databases. Databases offered no analog to the rename command. To rename a database, you could dump your database, create a new database with the desired name, and restore the dump to that new database. See the edgedb database command suite for other database management commands.

The branch rename command runs in the EdgeDB instance it is connected to. For specifying the connection target see connection options.

old-name

The current name of the branch to rename.

new-name

The new name of the branch.

--force

Close any existing connections to the branch before renaming it.