Skip to content

[Bug]: CLI 3.76.0 shopify theme not respecting environment's theme specified in config file #5476

Open
@fevish

Description

@fevish

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions