I’m trying to make a new theme for a client, using their existing store. I’m unable to connect via the CLI even though I have full access to their account – We tried with both an admin account and as a developer/ collaborator with all permissions enabled. When I try to run Shopify theme dev I receive the message: You are not authorized to use the CLI to develop in the provided store:
And yes, I’ve run Shopify logout beforehand and also logged into their store. It’s very weird because I haven’t had this problem in other stores.
Client has a custom name that appears under settings under my store. I’ve tried both the custom name and the original name and no luck.
Shopify CLI automatically caches the first store you log into for convenience. However, you can override this at any time by using the --store flag to target a specific shop.
If you work with multiple stores regularly, it’s better to use environments, which let you define separate configurations and switch between them easily.