theme dev starts your local theme compiler and connects it to hosted Theme Workbench. It asks for a development secret when needed, then remembers the store connection.
Command
upstorr theme dev my-brand-theme
Keep this terminal process running while you preview. The default local server uses 127.0.0.1:3210.
Useful local flags are:
upstorr theme dev my-brand-theme --port 3211
upstorr theme dev my-brand-theme --host 127.0.0.1 --no-open
--no-open prints the Workbench URL instead of opening it. Open the complete private workbench.upstorr.com link printed by the command. It grants editing access to this local project while the CLI is connected. It does not contain your store development secret. Share this link only with trusted collaborators. The editor stays hosted; the CLI does not install or serve it.
What happens
The CLI opens an outgoing connection to Workbench; no public tunnel or incoming port is needed. Your browser talks to the hosted Workbench, which passes preview and editing requests through this connection. Theme compilation and rendering use your computer.
Before opening Workbench, the CLI resolves the selected theme, verifies its saved store connection, prepares the local state and starts the preview server. Workbench then combines:
- the theme files on your computer;
- the connected store's permitted development data;
- the current draft design state;
- the public versioned runtime contract.
Save keeps a separate local draft for each connected store. Make defaults explicitly writes the design into authored theme config/templates. Save before closing or refreshing the browser.
Edits stay local until you deliberately upload a version. theme dev never publishes the live storefront.
Test before upload
Check every route your theme supplies, including mobile and desktop. Test product variants, cart changes, checkout, sign-in, orders, wishlist, bookings and digital delivery when your theme presents them. Also test loading, empty and error states.
Common problems
- No active connection:
theme devasks for a secret. Automated commands must usetheme connect <theme> --token <secret>first. - Project already running:
theme devopens the existing project. If another app uses the port, pass another--port. - Deleted cookies or restarted server: the same project reconnects automatically in the open tab. After clearing cookies and refreshing, reopen the complete CLI link or enter the store development secret.
- Cookies blocked: allow cookies for
workbench.upstorr.com. The editor keeps current edits visible while disconnected. - A different project is running: restart the original project to keep working in that tab, or open the other project separately.
- Draft changed in another tab: your changes remain on screen. Reopen the latest saved draft and review the differences before saving again.
- The editor loads but the preview does not: read the terminal error, then run
theme check. Invalid Liquid, missing generated support or a browser bundle error can stop the preview. - Store data looks wrong: confirm the connected store and storefront shown after
theme connect.