Skip to content

Commit

Permalink
Add -b connection option
Browse files Browse the repository at this point in the history
  • Loading branch information
raddevon committed Mar 19, 2024
1 parent 3b0ae3a commit a4e9fdf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/cli/edgedb_connopts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ Connection flags
default to the name provided when the link was created. This also includes
EdgeDB Cloud instance links created via :ref:`ref_cli_edgedb_project_init`.

.. note::

With EdgeDB 5, databases were refactored as branches. If you're using
EdgeDB 5+, use the option below instead of this one.

:cli:synopsis:`-b <branch_name>, --branch=<branch_name>`
Specifies the name of the branch to connect to. Defaults to the value of
the ``EDGEDB_BRANCH`` environment variable. If that variable isn't set,
local instances will default to the most recently switched branch or the
``main`` branch, while remote instances will default to the name provided
when the link was created. This also includes EdgeDB Cloud instance links
created via :ref:`ref_cli_edgedb_project_init`.

:cli:synopsis:`--password | --no-password`
If :cli:synopsis:`--password` is specified, force ``edgedb`` to prompt
for a password before connecting to the database. This is usually not
Expand Down

0 comments on commit a4e9fdf

Please sign in to comment.