@@ -22,11 +22,12 @@ USAGE:
22
22
psqlcm [global options] command [command options]
23
23
24
24
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
30
31
31
32
GLOBAL OPTIONS:
32
33
--help, -h show help
@@ -35,13 +36,17 @@ GLOBAL OPTIONS:
35
36
### Add a connection
36
37
37
38
```
38
- $ psqlcm login
39
- π₯οΈ Hostname [localhost]: host1
39
+ $ psqlcm new
40
+ π₯οΈ Hostname [localhost]: 127.0.0.1
40
41
π 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!
45
50
```
46
51
47
52
* Note: The password is encrypted and cached locally. The plaintext password is never stored.*
0 commit comments