Getting error in the CLI when i try to connect my partner account with cli

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

2 Likes

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 :frowning:, Is it not possible to use a dev store within a partner account?

  1. 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.

  2. Next, create a GitHub repository and upload these files to the repository.

  3. 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.

shopify theme dev --store STORENAME

As shown in the Getting Started guide - Create a theme

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

once again thankyou so much

1 Like

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.

3 Likes

Also having an issue logging into to CLI from a few minutes ago.

2 Likes

I have the same problem. Upgraded my cli but it didn’t help.

2 Likes

Same here! Nothing works!

3 Likes

Same here, waiting for a solution :cold_sweat:

1 Like

Same here. Pretty much prevents me from working :sweat_smile:

1 Like

Same problem. Others are mentioning it in the shopify cli github as well: [Bug]: Unable to authenticate Β· Issue #4876 Β· Shopify/cli Β· GitHub

I’m also trying to escalate with Shopify Plus

There’s a thread in the slack channel. This is a infrastructure issue:
#shopify-cli

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.