You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
End the current authentication session. When multiple user sessions are stored you can target a specific session by account name and/or tenant.
44
44
45
45
**Usage:**
46
46
47
47
```
48
48
fab auth logout [-u <account_name>] [-t <tenant_id>] [--all]
49
49
```
50
50
51
+
**Parameters:**
52
+
53
+
-`-u, --username`: Account name of the session to log out. Case-insensitive. Optional.
54
+
-`-t, --tenant`: Tenant ID to disambiguate when the same account exists in multiple tenants. Optional.
55
+
-`--all`: Clear all stored authentication sessions. Optional.
56
+
57
+
When neither `-u` nor `--all` is provided, the CLI removes the current active session. If other sessions remain, the next most recently used session becomes active.
58
+
51
59
---
52
60
53
61
### list
54
62
55
-
List stored user authentication sessions.
63
+
List stored user authentication sessions. Each row shows whether the session is active, the account name, tenant, token validity, and the last used timestamp.
56
64
57
65
**Usage:**
58
66
@@ -76,14 +84,25 @@ fab auth status
76
84
77
85
### switch
78
86
79
-
Switch the active stored user authentication session.
87
+
Switch the active stored user authentication session. You can specify the target account directly to avoid interactive selection.
80
88
81
89
**Usage:**
82
90
83
91
```
84
92
fab auth switch [-u <account_name>] [-t <tenant_id>]
85
93
```
86
94
95
+
**Parameters:**
96
+
97
+
-`-u, --username`: Account name to switch to. Case-insensitive. Optional.
98
+
-`-t, --tenant`: Tenant ID to disambiguate when the same account exists in multiple tenants. Optional.
99
+
100
+
**Behavior:**
101
+
102
+
- With `-u` (and optionally `-t`): switches directly to the matching session.
103
+
- With two stored sessions and no flags: automatically toggles to the other session.
104
+
- With three or more sessions and no flags: presents an interactive prompt.
105
+
87
106
---
88
107
89
108
For more examples and detailed scenarios, see [Authentication Examples](../../examples/auth_examples.md).
0 commit comments