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]: CLI 3.76.0 shopify theme not respecting environment's theme specified in config file #5476

Open
2 tasks done
fevish opened this issue Feb 28, 2025 · 1 comment
Open
2 tasks done
Labels
Area: @shopify/theme @shopify/theme package issues Type: Bug Something isn't working

Comments

@fevish
Copy link

fevish commented Feb 28, 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

Expected behavior

When you have an environment config set up in file shopify.theme.toml set, with a theme specified, running either

shopify theme dev
or
shopify theme pull

Will use the theme specified in your evironment.

shopify.theme.toml
---
[environments.default]
store = "store.myshopify.com"
password = "pass"
theme ="store id"

Actual behavior

When you run

shopify theme dev it creates a new dev theme on the store.

When you run shopify theme pull it prompts you to choose a theme to pull.

Reverting to 3.75.1 fixes this.

Verbose output

Verbose output
Paste the output here!

Reproduction steps

  1. npm install -g @shopify/cli@latest
  2. shopify theme dev or theme pull

Operating System

Windows 11

Shopify CLI version (shopify --version)

3.76.0

Shell

bash

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

v20.11.0

What language and version are you using in your application?

No response

@fevish fevish added the Type: Bug Something isn't working label Feb 28, 2025
@karreiro karreiro added the Area: @shopify/theme @shopify/theme package issues label Mar 4, 2025
@MaxDesignFR
Copy link

To be honest the CLI is a hot mess. Don't mean to be rude but alarming: it's never works correctly for me for the past months, there is always a new bug, terrible for productivity and very frustrating to use on a daily basis.

I got this issue as well with up to 3 development stores created right now, and shopify theme dev works sometimes, and most times it will crash on start for various reasons (3 different ones today only with same setup). Thanks god git is reliable, because the CLI can pretty much do anything wrong you wouldn't expect (deleting files for no reason for instance).

Something has to be done, I can't be the only one 👀

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

No branches or pull requests

3 participants