I am attempting to use Shopify CLI to develop a theme for the store, but I encounter the following error upon login: You are not authorized to use the CLI to develop in the selected store.
Shopify CLI cannot be used with development stores if you have only Partner staff member access. To use Shopify CLI on a development store, you must be either the store owner or have a staff account on the store.
If you are the store owner, please log in directly to the store using the store URL at least once before logging in with Shopify CLI. Logging in to the Shopify admin directly will connect the development store with your Shopify login
I have the same issue⦠Using Git Bash on Win11. The owner email for the site is my partner email login so I have tried that login and get the error above. I created a staff account will full access and get the same error.
I also tried logging out of the browser and Shopify CLI to start fresh - same issue.
This my first attempt at getting the CLI going, so far not so good , Is it not possible to use a dev store within a partner account?
I found a simple solution for this error: start by creating a folder with the basic file structure of a Shopify theme, including all the necessary files.
Next, create a GitHub repository and upload these files to the repository.
After that, create a development store through the Shopify Partner Dashboard. Connect the GitHub repository to your store, select the repository, and then begin editing the code to start your theme development.
Due to this error, I have wasted two days trying to resolve it. I even reached out to Shopify support, but unfortunately, they were unable to assist.
/my-shopify-theme
β
βββ assets/ # Contains all the themeβs static files
β βββ css/ # Custom CSS files (e.g., theme.css)
β βββ images/ # Image assets (e.g., logo, banners)
β βββ js/ # JavaScript files (e.g., theme.js)
β βββ fonts/ # Fonts used in the theme
β βββ theme.js # Main JavaScript file
β
βββ config/ # Configuration settings for the theme
β βββ settings_data.json # Stores theme settings (e.g., colors, typography)
β βββ settings_schema.json # Schema file for theme settings (used in Shopify admin)
β
βββ layout/ # Layout templates for the theme
β βββ theme.liquid # Main template file (used for rendering the full page)
β βββ password.liquid # Template file for password
β
βββ locales/ # Translation files (language support)
β βββ en.default.json # English translations (default)
β βββ fr.default.json # French translations (if supported)
β
βββ sections/ # Reusable sections for theme customization
β βββ header.liquid # Header section (includes navigation, logo, etc.)
β βββ footer.liquid # Footer section (includes footer links, social icons, etc.)
β βββ product.liquid # Product section (for individual product pages)
β βββ collection.liquid # Collection section (for collection pages)
β
βββ snippets/ # Small reusable snippets or components
β βββ product-card.liquid # Product card snippet
β βββ cart-drawer.liquid # Cart drawer snippet
β βββ social-icons.liquid # Social media icons snippet
β
βββ templates/ # Template files for different page types
β βββ index.liquid # Homepage template
β βββ product.liquid # Product page template
β βββ collection.liquid # Collection page template
β βββ page.liquid # Static page template (e.g., About Us)
β βββ blog.liquid # Blog post template
β
βββ config.yml # Configuration file (if using a development framework like Slate or Themekit)
I was able to get around this by using just the store name without the .myshopify.com URL extension on the theme dev command. Many other workarounds suggested using the full store URL, but that didnβt work.
Thank you so much for sharing the information. However, we are encountering repeated errors during the implementation. Your assistance would greatly help us resolve this issue
I also discovered a solution: if you encounter an error in the Command Prompt, try using Windows PowerShell instead. Additionally, entering the full URL of the store seems to resolve the issue and works properly
Iβm also getting this error and unable to use the cli to do theme dev on stores that it was working fine with yesterday. Iβve authβd already a few times.
still getting the same error today. store owner send me an invite as a staff member, but when clicking on the link I am not sure if it does anything. it just shows login screen.
Is there a problem because i am using a + symbol in my email? xyz+shopify@gmail.com
because after i click the invite it shows the login screen where i can select my account (with +) or make a new one which has my email prefilled but instead of + there is a space.