Asia/Calcutta
Posts

Shopify Safe Theme Deployment Workflow

March 21, 2026
If you maintain multiple Shopify theme versions, never push your development theme directly over the live one. Instead, follow this staged deployment workflow to keep your store safe.
Before starting, know your theme IDs:
ThemeIDRole
Gokwik Theme 25th July 2025152764580079Live (production)
Development theme156149285103Active dev work
Test / Staging theme156149219567Pre-publish validation

Sync your local copy to match the Shopify dev theme exactly before doing anything else:
shopify theme pull --theme 156149285103
This ensures you're working from the latest remote state, not a stale local copy.
Never overwrite the live theme directly. First, create a backup: Option A — CLI:
shopify theme pull --theme 152764580079
Option B — Shopify Admin: Go to Online Store → Themes → ⋯ → Duplicate Rename the duplicate:
Live Backup Before Merge - 2026-03-21
This gives you a rollback point if anything goes wrong.
Shopify has no built-in merge tool, so you compare files manually. Copy only the changed files from your dev theme into the staging theme copy — avoid replacing the full theme unless necessary.
⚠️ Replacing entire theme files can break GoKwik checkout, installed apps, and metafield bindings.
Recommended tools:
ToolBest For
VS Code + GitLensGit-tracked Shopify projects
Meld / Beyond Compare / DiffMergeFile-by-file visual comparison
Shopify Theme Check + Liquid Language ServerAuto-detecting Liquid errors

Once the staging theme has the merged changes:
shopify theme push --theme 156149219567 --allow-live

Run through this checklist before publishing:
  • Home banners render correctly
  • Collections page and filters
  • Product page + size chart
  • GoKwik checkout flow
  • Search, filters, login
  • Mobile responsiveness
  • Lighthouse scores (CLS / FCP)
  • Tracking pixels (Facebook Pixel, GA, Klaviyo)
  • Wishlist and cart drawer

Once staging passes all checks: Option A — Shopify Admin UI: Go to Online Store → Themes → click the staging theme → Publish Option B — CLI:
shopify theme publish --theme 156149219567

For pushing a consolidated dev branch without publishing it:
shopify theme push --unpublished --theme "kidbea-consolidated"
This uploads the theme to Shopify without making it live, so you can preview it first.
Track your theme in Git to get a full changelog and prevent future conflicts:
# Initial setup
git init
git add .
git commit -m "Initial Shopify theme version"

# After merging dev → live
git commit -m "Merged Development (#156149285103) → Live base"
This also lets you use VS Code's GitLens diff view to compare exactly what changed between deployments.
StepAction
1Pull dev theme to local
2Duplicate live theme as backup
3Compare and merge changed files only
4Push merged version to staging theme
5Test full site on staging preview
6Publish staging theme to live