cli: [Bug]: "Please login again with shopify login"

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Console should show the correct command “shopify theme dev”

Actual behavior

Console shows the incorrect command

Stack trace

No response

Reproduction steps

  1. Run shopify theme dev
  2. Wait until you get logged out
  3. View the error message:

“ERROR » update snippets/yourfile.liquid: X Please login again with shopify login”

  1. (shopify login is not a valid command)

Operating System

Windows 11

Shopify CLI version (check your project’s package.json if you’re not sure)

3.33.0

Shell

Git Bash

Node version (run node -v if you’re not sure)

18.12.1

What language and version are you using in your application?

N/A

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

3.46.5 is out, so please let us know how it goes!

Is it possible this fix, included in 3.34, takes care of being kicked out entirely?

At any rate, we should have better handling of this kind of case, but I’m not sure what that looks like as “logging in again” is a CLI2 concept not CLI3. Hopefully this kind of edge case goes away as we fully port commands to Node.

cc @Shopify/theme-developer-tools as maybe there’s something to be done here.