I’m running into a frustrating issue with the latest Shopify CLI (v3.80.7) on macOS
The CLI repeatedly logs me out or invalidates my session token, sometimes within 5 minutes, sometimes instantly after a successful command, and occasionally it lasts about an hour before prompting again. It’s been like this for about 2 months.
Each time it happens, I’m forced to:
Go through browser auth
Re-enter password and complete 2FA
Repeat this 2–3 times during a normal development session
This is severely impacting my workflow. I’ve already confirmed I’m on the latest CLI release, and the behavior persists across projects and terminal sessions.
Has anyone else encountered this? Any workarounds or environment settings I might have missed?
Would appreciate any insight, happy to provide logs or steps to reproduce if needed.
Hi Ayush, i’m sorry you are experiencing difficulties with the authentication flow.
Could you share more details?
Does it happen with every command or with some specific ones like app dev?
Are you using extensions? If so, which types and how many?
We’ve been working on some improvements that are going to be released this week, in the meantime can you try with the nightly version of the CLI to see if it solves your issues?
So it also happens with an app with a single UI extension?
I’m not able to reproduce it. Could you run shopify app dev --verbose 2>log.txt and then share the log.txt file after you hit the problem again? With the CLI v3.81.0, please.