Skip to content

Commit aa2dbfe

Browse files
committed
Update readme
1 parent 3a13962 commit aa2dbfe

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

β€ŽREADME.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ USAGE:
2222
psqlcm [global options] command [command options]
2323
2424
COMMANDS:
25-
login Login and save credentials
26-
list, ls List all available connections
27-
show Show a connection string
28-
delete Remove a cached connection
29-
help, h Shows a list of commands or help for one command
25+
new New connection
26+
list, ls List all available connections
27+
show Show a connection string
28+
delete, del, remove Remove a cached connection
29+
set-current Set a connection as current
30+
help, h Shows a list of commands or help for one command
3031
3132
GLOBAL OPTIONS:
3233
--help, -h show help
@@ -35,13 +36,17 @@ GLOBAL OPTIONS:
3536
### Add a connection
3637

3738
```
38-
$ psqlcm login
39-
πŸ–₯️ Hostname [localhost]: host1
39+
$ psqlcm new
40+
πŸ–₯️ Hostname [localhost]: 127.0.0.1
4041
🌐 Port [5432]:
41-
πŸ“ Database [postgres]: db1
42-
πŸ”¨ User [postgres]: user1
43-
πŸ”’ Password: mysecretpassword
44-
πŸ“• Connection name [pg1714646843370]: new-connection1
42+
πŸ“ Database [postgres]: mydb1
43+
πŸ”¨ User [postgres]: myuser1
44+
πŸ”‘ Password:
45+
πŸ”’ SSL mode [require]: disable
46+
47+
πŸ“• Connection name [pg1715219721581]: my-connection1
48+
⚑ Test connection [Y/n]: n
49+
Connection saved!
4550
```
4651

4752
*Note: The password is encrypted and cached locally. The plaintext password is never stored.*

0 commit comments

Comments
Β (0)