Shopify-CLI Online Store Editor Changes Not Persisting

My steps:

  1. shopify theme serve

  2. Use the “Customize this theme in the Online Store Editor” link and make section settings changes and Save.

  3. Ctrl + C to bug out of shopify theme serve

  4. Restart shopify theme serve

  5. Section settings are gone.

How am I able to make these changes persist?

Hello jamesauble,

I think this is the expected behavior so that you can edit whatever you want while developing without affecting the published theme.
In order to make the changes persit, you should go to the theme editor in Admin → Themes → Customize.

Best regards

Try adding .shopifyignore file in your root theme directory. In that file, add the settings_data.json

config/settings_data.json

Any changes on your development theme will retain because your local copy of settings_data will not be pushed to the development theme. Beware that logging out using shopify logout will delete the theme, just push the theme if you want to retain it when logging out.

This happened to me twice today - once after getting logged out, then again after the power went out.

I realized what I should’ve done: run “shopify theme pull” and select my dev theme, then run “shopify theme serve