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]: There's no command to switch store #5268

Open
2 tasks done
vfonic opened this issue Jan 24, 2025 · 0 comments
Open
2 tasks done

[Bug]: There's no command to switch store #5268

vfonic opened this issue Jan 24, 2025 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@vfonic
Copy link

vfonic commented Jan 24, 2025

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, App

Expected behavior

I'm building a Shopify app. But I also work on a Shopify theme, for a completely unrelated store/project.

When I want to work on an app (extension), I run shopify app dev --config=xxx --tunnel-url=xxx --no-update. The Shopify CLI, installed globally as recommended, tries to connect to the theme project store.
This used to work when I had Shopify CLI in package.json. But, as recommended, I uninstalled it, and now I cannot find an easy way to point to another Shopify store for my app development.

I think the main issue that I've been having with Shopify CLI for years, is that Shopify CLI is storing data somewhere hidden from the user (developer). If this could be extracted to a .toml file, like many other configuration settings are...that would fix this issue...and prevent me from deleting a random theme as suggested by the CLI tool, which incorrectly first shows store1, but it's actually referring to store2:

Starting Shopify dev
╭─ info ───────────────────────────────────────────────────────────────────────────╮
│                                                                                  │
│  Using shopify.app.xxx.toml for default values:                  │
│                                                                                  │
│    • Org:             XXX                                                   │
│    • App:             XXX                                              │
│    • Dev store:       store1.myshopify.com                                │
│    • Update URLs:     No                                                         │
│                                                                                  │
│   You can pass  `--reset`  to your command to reset your app configuration.      │
│                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────╯



╭─ info ───────────────────────────────────────────────────────────────────────────╮
│                                                                                  │
│  The theme app extension development server is ready.                            │
│                                                                                  │
│  Next steps                                                                      │
│    1. Install your app in your development store [1]                             │
│    2. Setup your theme app extension in the host theme [2]                       │
│    3. Preview your theme app extension at http://127.0.0.1:9293 [3]              │
│                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────╯
[1] https://partners.shopify.com/xxx/apps/xxx/test
[2] https://store1.myshopify.com/admin/themes/xxx/editor
[3] http://127.0.0.1:9293

17:01:30 │         graphiql │ GraphiQL server started on port 3457
17:01:30 │     web-frontend │ 'started Shopify dev server'
17:01:31 │         xxx │ Draft updated successfully for extension: xxx

╭─ error ──────────────────────────────────────────────────────────────────────────╮
│                                                                                  │
│  Theme 129254948927 is missing required files. Run shopify theme delete -t       │
│  129254948927 to delete it, then try your command again.                         │
│                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────╯

Note that 129254948927 is theme ID from store2, which is nowhere mentioned. Only store1 is mentioned before. 🤷‍♂️

Actual behavior

User/developer is presented with all hidden config options that are currently hidden, but cause a lot of confusion.

Verbose output

Verbose output
Paste the output here!

Reproduction steps

Operating System

macOS

Shopify CLI version (shopify --version)

3.74.1

Shell

zsh

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

20.14.0

What language and version are you using in your application?

No response

@vfonic vfonic added the Type: Bug Something isn't working label Jan 24, 2025
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