Tags:
- Tools
Shopify CLI: Preview your theme changes using any theme
When developing a theme using Shopify CLI, you can now preview your local changes using any theme in a store. To specify a theme, run the Shopify CLI theme serve command with the new -t or --theme flag:
shopify theme serve -t my-unpublished-theme
shopify theme serve -t my-unpublished-theme
Previously, developers could only preview changes using development themes.
Caution:
Before running shopify theme serve, pull your remote theme to ensure that any recent changes don't get overwritten by your local development files.
Learn more about previewing your theme using Shopify CLI.
Was this section helpful?