Skip to content

Instantly share code, notes, and snippets.

@jamsea
Created December 18, 2018 06:39
Show Gist options
  • Save jamsea/70e75d00310a87f99fba9f20f8d9fb84 to your computer and use it in GitHub Desktop.
Save jamsea/70e75d00310a87f99fba9f20f8d9fb84 to your computer and use it in GitHub Desktop.
Auto Sync Shopify
#!/bin/bash
# Get Theme (install themekit here, probably a good idea to copy/paste these commands to the top https://shopify.github.io/themekit/)
theme get --password=[your-api-password] --store=[your-store.myshopify.com] --themeid=[your-theme-id]
unzip ThemeName.zip
cp -R ThemeName/ WhereYourThemeIs/
cd WhereYourThemeIs/ || exit 0
git checkout -b themeChanges
git push origin themeChanges
# Go to BitBucket make Pull Request
# Use cron (https://superuser.com/questions/1144910/how-do-i-setup-a-cron-job-on-os-x-to-run-a-curl-command-at-a-specific-time-every)
# to make this run every hour or whatever you want
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment