Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: You are not authorized to use the CLI to develop in the provided store. #5371

Open
2 tasks done
developerprv opened this issue Feb 7, 2025 · 1 comment
Open
2 tasks done
Labels
Type: Bug Something isn't working

Comments

@developerprv
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

-Shopify theme dev
-Shopify theme dev --store "mystore.myshopify.com"
-Shopify theme list
-Shopify theme pull

All this commands should prompt the login process and work. There is a login issue, with all the users we have, and even new users, admins and store owners we created.

Actual behavior

╭─ 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.

╰───────────────────────────────────────────────────────────────────────────────────────────

We keep getting this error. We have 2 stores we're continuously developing. We're basically locked out of the CLI at this point, nothing works.
We've created new users, tried different environments, reinstalled dependencies, cleared browsers cache and cookies, etc etc..

Verbose output

Verbose output

"command": "theme list",
"time_start": 1738938657223,
"time_end": 1738938663777,
"total_time": 6554,
"success": false,
"cli_version": "3.74.1",
"ruby_version": "",
"node_version": "18.20.0",
"is_employee": false,
"uname": "windows amd64",
"env_ci": false,
"env_plugin_installed_any_custom": false,
"env_plugin_installed_shopify": "["@shopify/cli"]",
"env_shell": "\AppData\Local\Programs\Git\usr\bin\bash.exe",
"env_device_id": "",
"env_cloud": "localhost",
"env_package_manager": "npm",
"env_is_global": true,
"env_auth_method": "none",
"cmd_app_warning_api_key_deprecation_displayed": false,
"cmd_all_timing_network_ms": 662,
"cmd_all_timing_prompts_ms": 857,
"cmd_all_launcher": "unknown",
"cmd_all_topic": "theme",
"cmd_all_plugin": "@shopify/theme",
"cmd_all_verbose": true,
"cmd_all_path_override": false,
"cmd_all_timing_active_ms": 5034,
"cmd_all_exit": "expected_error",
"user_id": "unknown",
"request_ids": [],
"args": "--verbose",
"error_message": "You are not authorized to use the CLI to develop in the provided store.\n\nYou 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.\n\nIf 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.",
"env_plugin_installed_all": "["@shopify/cli"]",
"metadata": "{"extraPublic":{},"extraSensitive":{}}"

Reproduction steps

  1. run -shopify theme dev or -shopify theme list
  2. follow prompt and log in with the browser
  3. Get the error message

Operating System

Windows 11

Shopify CLI version (shopify --version)

3.74.1

Shell

Powershell / Bash

Node version (run node -v if you're not sure)

18.20.0

What language and version are you using in your application?

Ruby 3.3.7

@developerprv developerprv added the Type: Bug Something isn't working label Feb 7, 2025
@developerprv
Copy link
Author

-note:

"Shopify auth logout" was used as well as all the other commands that can be used to trigger the login. Including paramenters like
--store <store_name>.myshopify.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant