beekeeper-studio icon indicating copy to clipboard operation
beekeeper-studio copied to clipboard

Open connection through CLI

Open molinarif02 opened this issue 1 year ago • 1 comments

Is there any way to automatically open a new connection using cli? For example: ."Beekeeper Studio.exe" --driver="postgresql" --host="localhost" --port="5432" --database="database" --user="user" --password="password" or something similar.

molinarif02 avatar Mar 05 '24 14:03 molinarif02

+1 I suggest also an option to start an already saved connection something like

beekeeperstudio.exe --connection=myDB

GlassGruber avatar Jul 13 '24 05:07 GlassGruber

Sorry it took so long to get to this. I'm assuming you mean you'd like to launch the app and, if a connection is provided in the launch options, have it automatically connect to that connection? I think in general it'd probably be easier to do this with saved connection names. Or just an option on the connection like "Copy launch command to clipboard"

not-night-but avatar Feb 05 '25 03:02 not-night-but

Beekeeper Studio registers file associations, enabling seamless database connections through your operating system's native file handling:

  • Mac: open postgresql://user@host/database or open ./example.db
  • Linux: xdg-open postgresql://user@host/database or xdg-open ./example.db

See Docs: File Associations

LucasHild avatar Jul 06 '25 09:07 LucasHild