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
## Summary
- Make built-in auth login/logout accept the active middleware env when
--env is omitted
- Keep explicit --env as an override
- Add regression tests for consumer-style global env defaults
Copy file name to clipboardExpand all lines: docs/auth.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -308,10 +308,10 @@ When a CLI registers auth providers or configures a default provider, `cli_engin
308
308
309
309
| Command | Behavior |
310
310
| --- | --- |
311
-
|`auth login --provider NAME --env ENV`| Clears cached credentials for the environment and authenticates. |
311
+
|`auth login --provider NAME [--env ENV]`| Clears cached credentials for the explicit environment, or the active middleware environment when omitted, and authenticates. |
312
312
|`auth status --provider NAME --env ENV`| Shows cached status for one provider and environment. |
313
313
|`auth status`| Shows status for all providers and cached environments. |
314
-
|`auth logout --provider NAME --env ENV`| Clears cached credentials for the environment. |
314
+
|`auth logout --provider NAME [--env ENV]`| Clears cached credentials for the explicit environment, or the active middleware environment when omitted. |
315
315
316
316
These commands are implemented with the same `CommandSpec`, middleware, output envelope, and renderers
0 commit comments