gemini-cli - 💡(How to fix) Fix add `auth login|logout` commands [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25529Fetched 2026-04-17 08:55:41
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×1issue_type_added ×1
RAW_BUFFERClick to expand / collapse

What would you like to be added?

add auth login|logout commands to allow login\logout without starting new session

Why is this needed?

I use multiple accounts (personal, work). I've got some scripts I run when switching from working on personal projects to working on work stuff (and vice versa) which login\logout to\from various accounts. I would like to include gemini-cli in this script. Currently I need to start a full gemini-cli session which is slow

Additional context

No response

extent analysis

TL;DR

Adding auth login and auth logout commands to gemini-cli would allow users to login and logout without starting a new session.

Guidance

  • The current implementation requires starting a full gemini-cli session to login or logout, which can be slow.
  • To address this, the auth login and auth logout commands could be added to allow for faster switching between accounts.
  • The new commands would need to handle authentication and session management correctly to ensure a seamless user experience.
  • The addition of these commands would enable users to include gemini-cli in their existing scripts for switching between personal and work accounts.

Notes

The implementation details of the auth login and auth logout commands are not specified, and would require further discussion and design to ensure correct functionality and security.

Recommendation

Apply workaround: Until the auth login and auth logout commands are implemented, users could explore alternative scripting solutions that minimize the overhead of starting a new gemini-cli session.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING