Unable to connect to new shop via Shopify CLI

I’ve been working on a theme with the CLI connected to a development shop just fine, but when I try to connect to my production shop, I get the following 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.

My production shop is a brand new store on a Basic plan and my account is the owner/only account. It’s not in a trial period and has no third party apps installed. No password is set for the storefront.

The command I’m using, which works on other shops, but not this specific account:

shopify theme dev --store=xxxxxx

I’ve tried logging out via the browser and back in. Ditto with the CLI.

I’ve contacted support and they said they can’t help me because it’s a development issue and is outside the scope of their responsibility.

Has anyone run into this? It’s been happening for about a month now.

Also, I’ve tried setting up the Theme Access app and a shopify.theme.toml file to access the CLI, and it works great on every account I’ve tested with except this new production shop I need to connect to.

Just found this post: Getting "You are not authorized to use the CLI to develop in the provided store." error - #6 by AMaL

I’ve already tried logging out of the CLI and browser, it’s not different.

My account is a Shopify Partner account, too.

Could you please confirm whether you have permission to manage themes or if you have themes permission for the store?

Are all the other shops and the new shops created under the same partner account organization?

Thanks, AMal!

My account is the “store owner”, so I believe so. There are no other accounts.

My single Shopify account is the owner of both, but only my dev store (the one I can connect with) is setup under my Shopify Partner account. My production shop is a “normal” Shopify shop.

Could you please share the steps you took to connect the store?

I just created a store without using a Partner account and logged out from the Partner account using the command shopify auth logout. Then, I followed the steps in the documentation:

shopify theme dev --store production.myshopify.com

Without any issues, I successfully connected to my Shopify store.