[Bug]: CLI 3.76.0 shopify theme not respecting environment's theme specified in config file
Please confirm that you have:
- [x] 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.)
- [x] 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
- npm install -g @shopify/cli@latest
- 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
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 👀
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
Hi @fevish, in the interim, if you do update > 3.75.1 can you run the commands with the environment flag (shopify theme dev -e default)?
Hi @fevish, in the interim, if you do update > 3.75.1 can you run the commands with the environment flag (
shopify theme dev -e default)?
@EvilGenius13 Yes, shopfy theme dev -e default does work fine enough!
v3.81.0 adds default environment support: https://github.com/Shopify/cli/releases/tag/3.81.0
Try upgrading to the latest version. I think that solves the issue that I'm seeing here but if it doesn't please let us know.