Skip to content

Commit 98ea786

Browse files
committed
updating notes on password-less logins
1 parent 0f994b3 commit 98ea786

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,24 @@ You'll get a prompt for password, once authenticated you'll be in a pgcli sessio
2121

2222
## TODOs
2323

24-
* See if we can reference the `POSTGRES_ENV_POSTGRES_PASSWORD` variable in as an argument to pgcli, this would allow for automatic connection to the instance.
24+
* See if we can reference the `POSTGRES_ENV_POSTGRES_PASSWORD` variable in as an argument to pgcli, this would allow for automatic connection to the instance. Looks like from usage there isn't a password option:
25+
```
26+
$ pgcli --help
27+
Usage: pgcli [OPTIONS] DATABASE
28+
29+
Options:
30+
-h, --host TEXT Host address of the postgres database.
31+
-p, --port INTEGER Port number at which the postgres instance is listening.
32+
-U, --user TEXT User name to connect to the postgres database.
33+
-W, --password Force password prompt.
34+
--help Show this message and exit.
35+
```
36+
37+
**BUT** there is the ability to pass a dburl:
38+
39+
```
40+
$ pgcli postgres://amjith:passw0rd@example.com:5432/app_db
41+
```
42+
We'll try to go that route.
43+
2544
* Update `run_pgcli.sh` to also run with raw arguments instead of just relying on docker link.

0 commit comments

Comments
 (0)