I am attempting to pull down and edit my theme locally using the CLI and I’m getting this error - “You are not authorized to use the CLI to develop in the provided store.”
The command I’m trying to use is shopify theme dev and I’m using the latest version of the shopify CLI, node, etc.
The account I’m using to login is the store owner account so there should be no issue there. I’m seeing that some other people are running into this error as well. I tried reaching out to shopify support and they were absolutely no help whatsoever.
As a developer, I would love to be able to edit themes locally, and this is a huge hinderance to what i can accomplish. Thanks for any help!
Just tried installing an older version and that didn’t work as well… thanks again for all of your help! Is there any or requirements for being able to use the shopify CLI with a store? I am using the owner email address but I don’t see any settings specific for this on the site… Anyhow, thanks again.
So if I register the store owner email as a partner account it should work? Also quick note for the plan that I’m on I cannot add any additional staff and would have to upgrade. Maybe that has something to do with it? Thanks so much, will try it out.
Okay! I think I figured it out. It looks like you do indeed need to have a partner account set up - for this I just registered using the same email as my store owner email. After that I was able to start manipulating and managing themes from the CLI, yay!
The only other thing that I noticed is that the store id was different than the url slug that I registered for the store - so I used the --store=xxxxx-xxx format and then everything started working. Very happy to be able to use my local dev tools to work on themes
Thanks for everyone’s help! If anyone else is having the same issue please try out my answer here as a solution.
@scottlandes Can you please describe the steps to set up a “Partner account” and link it to your existing Shopify store(s)? Or what exactly you did to login again in the CLI.
Any idea why we now need a “Partner” account for it?
Thanks!
This has just started happening to us today. Except that I was literally logged in on the same machine, same connection, working on the same theme earlier on in the day. Now, two hours later it’s booted me out and I can’t get back in, I’m working from a partner login with a staff account on the dev store, and I’ve already been connected to and working with this store for more than a month. Why has it suddenly just stopped working? Logged in, logged out, checked account on the dev store, checked permissions, tried different connections (via vpn), nothing will reconnect me to the store I’ve been connected to for ages.
I have same issue. I can not proceed “shopify app deploy”, “shopify app dev” command.
After logged in, cli says “invalid_target”.
I developed with cli until yesterday.