Shoperb Theme Editor is a Ruby CLI that simplifies creating and updating Shoperb storefront themes.
See installation guides at https://www.ruby-lang.org/en/documentation/installation/.
- Ruby >= 3.2.0
- Bundler >= 2.x
Copy and paste this into your terminal:
echo -e "source \"https://rubygems.org\"\ngem \"shoperb-theme-editor\", git: \"https://github.com/shoperb/theme-editor.git\"\ngem \"shoperb_liquid\", git: \"https://github.com/shoperb/shoperb-liquid.git\"\ngem 'artisans', git: 'https://github.com/shoperb/artisans.git'\n" > Gemfile && bundle
Create a Gemfile:
source "https://rubygems.org"
gem "shoperb-theme-editor", git: 'git@github.com:shoperb/theme-editor'
gem 'shoperb_liquid', git: 'git@github.com:shoperb/shoperb-liquid'
gem "artisans", git: "git@github.com:shoperb/artisans"Then run:
$ bundleAlternatively, if you prefer a released version from RubyGems:
source "https://rubygems.org"
gem "shoperb-theme-editor", "~> 0.8"# Create a new theme from the blank template
shoperb init theme-blank my-theme
cd my-theme
# Run a local preview server (default: http://localhost:4000)
shoperb serveFetches updates from the remote theme into your local copy.
Clones products, categories, images, collections, and vendors for local development.
Runs a local preview server for the theme (default: http://localhost:4000).
Downloads your shop's Shoperb theme into a local directory.
$ bundle exec shoperb clone <directory> [<handle>] [options]Creates a new theme from a template (e.g., theme-blank).
$ bundle exec shoperb init <template> <handle>Fetches updates from the remote theme into your local copy.
$ bundle exec shoperb pull [options]Uploads local changes to the remote Shoperb theme.
$ bundle exec shoperb push [options]Runs a local server to preview the theme. alias: mount
$ bundle exec shoperb serve [options]Clones products, categories, images, collections, and vendors from your shop.
$ bundle exec shoperb sync- Commands that talk to your shop (e.g.,
clone,pull,push) will guide you through any required credentials and shop details. - Prefer environment variables or a local secrets file for tokens; never commit secrets. See the docs for current options and examples: https://shoperb.dev
-
Port already in use
- Port 4000 busy? Try:
shoperb serve --port 4001.
- Port 4000 busy? Try:
-
Ruby/OpenSSL or bundler errors
- Ensure Ruby ≥ 3.2.0 and Bundler ≥ 2.x. Try
gem install bundlerandbundle update.
- Ensure Ruby ≥ 3.2.0 and Bundler ≥ 2.x. Try
-
Failed to download or initialize template
- Check your connection and retry
shoperb init. Verify the template name (e.g.,theme-blank). See the docs for details.
- Check your connection and retry
-
Authentication issues
- Re-run the command and follow the prompts. Double‑check your shop handle/domain and tokens. See https://shoperb.dev for supported auth methods.
- Homepage: https://www.shoperb.com
- Documentation: https://shoperb.dev
- Issues: https://github.com/shoperb/theme-editor/issues
- Contributing: CONTRIBUTING.md
- License: MIT (LICENSE)