@tsuga/cli 1.26.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/cli.js +65 -63
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,13 @@ Fish loads it automatically in new shells.
|
|
|
50
50
|
|
|
51
51
|
All authentication lives under `tsuga auth`.
|
|
52
52
|
|
|
53
|
+
`tsuga auth status` reads the saved credential locally. To ask Tsuga which credential the CLI actually authenticates as, and what it is allowed to do:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
tsuga auth whoami
|
|
57
|
+
tsuga auth whoami -o json
|
|
58
|
+
```
|
|
59
|
+
|
|
53
60
|
### Log in as a user (recommended)
|
|
54
61
|
|
|
55
62
|
For interactive use, log in as a user with a browser authorization flow:
|
|
@@ -64,6 +71,9 @@ tsuga auth token
|
|
|
64
71
|
# Show the current authentication method, and when the session expires or expired
|
|
65
72
|
tsuga auth status
|
|
66
73
|
|
|
74
|
+
# Ask Tsuga who this CLI authenticates as
|
|
75
|
+
tsuga auth whoami
|
|
76
|
+
|
|
67
77
|
# Clear the saved user session
|
|
68
78
|
tsuga auth logout
|
|
69
79
|
```
|