# CLI Theme editor changes not working

**URL:** <https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284>\
**Category:** Tools\
**Tags:** troubleshooting\
**Created:** [March 21, 2024, 11:54am UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284 "2024-03-21T11:54:20Z")\
**Posts on this page:** 9\
**Page:** 1

## AI-generated summary

Local Shopify CLI theme previews stop reflecting changes, even though the CLI reports successful syncs and the theme editor/customizer shows updates. The problem affects both customizer edits and direct Liquid file changes, while the online store version can still appear correct.

Key observations:
- The preview behaves like it is showing a cached or live theme version instead of the locally served one.
- One report says a fresh `theme dev` session shows the correct version only on first load, then reverts.
- The issue may be more common when switching between different stores/accounts.
- A screenshot was included to show CLI sync activity despite no visible preview changes.

Workarounds shared:
- Update Shopify CLI to the latest version.
- Switch Git branches away and back again; this temporarily restores editability for some stores.
- Run `shopify theme dev --theme-editor-sync`; one person said this fixed cases where remote changes were not being saved locally.

Status: no confirmed root cause. A JSON settings error is suspected by some, but the discussion remains unresolved and recurring.

<div class="post-metadata">

**Author:** ![no\_robotocha](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/no_robotocha/32/288649_2.png) [@no\_robotocha](https://community.shopify.com/u/no_robotocha)\
**Post date:** [March 21, 2024, 11:54am UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/1 "2024-03-21T11:54:20Z")

</div>

I have used the CLI for some time and don’t think I’m doing anything incorrectly:

- I’m previewing my theme to look at a new section I’ve developed
- In the preview customizer (accessed via the CLI) I’ve added the new section and content, all visible in the customizer
- The preview of the theme is not showing this section. I tried changing something simple in a different section - a title - this change doesn’t show either
- I check the template (index.json) and the new section and the change I made are visible there
- The section was visible when I was working on it last week, but now not when viewed locally. When viewing the version which I’ve pushed to the Online Store, the section appears
- I’ve tried restarting, rebooting, changing the port, making changes to liquid to ensure the CLI is syncing these changes (it is)

It’s as if the templates are showing a cached version - can anyone help?

---

<div class="post-metadata">

**Author:** ![no\_robotocha](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/no_robotocha/32/288649_2.png) [@no\_robotocha](https://community.shopify.com/u/no_robotocha)\
**Post date:** [March 21, 2024, 12:08pm UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/2 "2024-03-21T12:08:41Z")

</div>

I’ve just done another test, using a different store, different theme - and changes I make in the Customizer for this one also do not change.

Update: Even changes made when modifying a liquid file don’t show up in the locally served theme, so my issue is not exclusive to Customizer changes.

For instance, if I add a h1 element directly into the theme.liquid before the existing content, nothing gets added despite the sync update in the CLI. When I delete the entire theme.liquid content, it throws the error and un-deleting syncs properly - but none of this, or editing in Customizer, affects the theme preview in any way.

 ![Screenshot 2024-03-21 at 13.49.32.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/9/d/9d34ef93b2a3fb5a1b015645234ddca63dff0263.png)

---

<div class="post-metadata">

**Author:** ![no\_robotocha](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/no_robotocha/32/288649_2.png) [@no\_robotocha](https://community.shopify.com/u/no_robotocha)\
**Post date:** [March 21, 2024, 2:12pm UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/3 "2024-03-21T14:12:25Z")

</div>

I’ve had a few hiccups but seem to have a solution:

- Update Shopify CLI to latest
- Git checkout to another branch (should now be editable)
- Git checkout to the required branch

I’m not sure what was causing this but I needed to follow all steps for each distinct store. And when I swapped back to the first store I did this with, I had to do the git checkouts again to make it editable again..

---

<div class="post-metadata">

**Author:** ![no\_robotocha](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/no_robotocha/32/288649_2.png) [@no\_robotocha](https://community.shopify.com/u/no_robotocha)\
**Post date:** [March 27, 2024, 3:43pm UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/4 "2024-03-27T15:43:45Z")

</div>

From reading other people’s posts of a similar issue, I believe it might have something to do with an error in json settings. While the solution above can be helpful, the issue returns - but this seems resolved in other branches.

---

<div class="post-metadata">

**Author:** ![nhcon](https://avatars.discourse-cdn.com/v4/letter/n/ecc23a/32.png) [@nhcon](https://community.shopify.com/u/nhcon)\
**Post date:** [April 3, 2024, 12:05pm UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/5 "2024-04-03T12:05:12Z")

</div>

Did you find out what the json settings error was by any chance? I’m having this same issue.

---

<div class="post-metadata">

**Author:** ![thekwoka](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/thekwoka/32/405745_2.png) [@thekwoka](https://community.shopify.com/u/thekwoka)\
**Post date:** [May 3, 2024, 12:26pm UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/6 "2024-05-03T12:26:49Z")

</div>

I’m having this same issue now.

Even stranger is that if I do a new theme dev, the very first load will be correct. And then afterwards it goes back to showing the live theme.

It worked a few times initially and then stopped updating, and even reverting a bunch of code it still doesn’t come back

---

<div class="post-metadata">

**Author:** ![no\_robotocha](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/no_robotocha/32/288649_2.png) [@no\_robotocha](https://community.shopify.com/u/no_robotocha)\
**Post date:** [May 7, 2024, 8:00am UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/7 "2024-05-07T08:00:31Z")

</div>

Out of interest, do you use the CLI with different stores / accounts?

---

<div class="post-metadata">

**Author:** ![Marianna\_YTTG](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/marianna_yttg/32/230744_2.png) [@Marianna\_YTTG](https://community.shopify.com/u/Marianna_YTTG)\
**Post date:** [June 2, 2024, 12:29am UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/8 "2024-06-02T00:29:56Z")

</div>

Did you find any solution / reported this to the Shopify team?

I’m experiencing a lot of weirdness with the CLI lately… really frustrating

But I am not using the github integration so far

---

<div class="post-metadata">

**Author:** ![mendly](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mendly](https://community.shopify.com/u/mendly)\
**Post date:** [January 21, 2026, 9:44pm UTC](https://community.shopify.com/t/cli-theme-editor-changes-not-working/307284/9 "2026-01-21T21:44:49Z")

</div>

I had this issue, sometimes whatever was modified on remote was not saved on local, so lost when the service go restarted… adding the sync flag solved for me

shopify theme dev --theme-editor-sync
