cli: [Bug]: Unable to authenticate

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?

Other

Expected behavior

I should have clicked the link, logged in as shop owner, verified the code, and been granted access in the CLI

Actual behavior

I clicked the login link, logged in as owner, verified the code, and got an error in the CLI

Verbose output

error

You are not authorized to use the CLI to develop in the provided store.          
                                                                                   
You can't use Shopify CLI with development stores if you only have Partner       
staff member access. If you want to use Shopify CLI to work on a development     
store, then you should be the store owner or create a staff account on the       
store.                                                                           
                                                                                 
If you're the store owner, then you need to log in to the store directly using   
the store URL at least once before you log in using Shopify CLI.Logging in to    
the Shopify admin directly connects the development store with your Shopify      
login.

Reproduction steps

  1. Run command shopify theme push --store storename
  2. Press any key to login
  3. login as shop owner
  4. Return to terminal

Operating System

MacOs Sonoma 14.4.1

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

3.70.0

Shell

bash

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

22.9.0

What language and version are you using in your application?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 29 (6 by maintainers)

Most upvoted comments

Hello I’m also getting this issue suddenly mid-way development. I already authenticated once since yesterday. Today everything was going smoothly until I realize my changes weren’t propagating, so I try to reauthenticate.

ran shopify theme dev --store myshop again

I followed the verification procedure. Then return to terminal I’m prompted with:

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  You are not authorized to use the CLI to develop in the provided store.     │
│                                                                              │
│  You can't use Shopify CLI with development stores if you only have Partner  │
│   staff member access. If you want to use Shopify CLI to work on a           │
│  development store, then you should be the store owner or create a staff     │
│  account on the store.                                                       │
│                                                                              │
│  If you're the store owner, then you need to log in to the store directly    │
│  using the store URL at least once before you log in using Shopify           │
│  CLI.Logging in to the Shopify admin directly connects the development       │
│  store with your Shopify login.                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯Ï

Note: I’m using my own/shop owners account.

The workaround suggested above does not work for me.

Anyone who has commented in the last 40 minutes should check again, seems to be working again.

Also experiencing this error:

╭─ error ──────────────────────────────────────────────────────────────────────╮ │ │ │ You are not authorized to use the CLI to develop in the provided store. │ │ │ │ You can’t use Shopify CLI with development stores if you only have Partner │ │ staff member access. If you want to use Shopify CLI to work on a │ │ development store, then you should be the store owner or create a staff │ │ account on the store. │ │ │ │ If you’re the store owner, then you need to log in to the store directly │ │ using the store URL at least once before you log in using Shopify │ │ CLI.Logging in to the Shopify admin directly connects the development │ │ store with your Shopify login. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯Ï

There must be something wrong going on on Shopify’s side; I am experiencing the same error right now out of nowhere mid development.

Hello I’m also getting this issue suddenly mid-way development. I already authenticated once since yesterday. Today everything was going smoothly until I realize my changes weren’t propagating, so I try to reauthenticate.

ran shopify theme dev --store myshop again

I followed the verification procedure. Then return to terminal I’m prompted with:

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  You are not authorized to use the CLI to develop in the provided store.     │
│                                                                              │
│  You can't use Shopify CLI with development stores if you only have Partner  │
│   staff member access. If you want to use Shopify CLI to work on a           │
│  development store, then you should be the store owner or create a staff     │
│  account on the store.                                                       │
│                                                                              │
│  If you're the store owner, then you need to log in to the store directly    │
│  using the store URL at least once before you log in using Shopify           │
│  CLI.Logging in to the Shopify admin directly connects the development       │
│  store with your Shopify login.                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯Ï

Note: I’m using my own/shop owners account.

The workaround suggested above does not work for me.

I’m having the same problem as @branlok out of nowhere. I’ve been developing on this same store for years. It worked this morning, then out of nowhere this popped up. I’ve tried all the workarounds posted here and on the support forums with no luck.

@aswamy That worked! Thanks!

@mgmanzella done, thanks!

👋 can you resend the logs in their original form with the command you’re running to me in the partners slack? we need your real shop domain in order to debug so please don’t modify them in any way, you can DM it to me at Morisa Manzella

@mgmanzella verbose output.txt thanks!

Hi @chenrupo - from the logs it looks like you are trying to access mystore.myshopify.com. Is that your correct store name? Please ensure the store provided with the --store flag matches the store that you are logging into via the browser during the authentication step.

@arnoldski No, I’m still having this issue. Shopify support assured me that they were working on it, for whatever that’s worth! Hoping this gets resolved soon.