SuiteCommerce Theme Developer Tools — Sandbox Setup Runbook
Purpose: stand up the SC Theme Developer Tools against the RBD Sandbox so we can clone the active theme and deploy the Athos front-end overrides. Who runs it: Cole (needs NetSuite Sandbox login + admin to create an integration record). Claude guides. Sources: Oracle "Set Up Theme Developer Tools" + "Gulp Command Reference" (links at bottom).
Prerequisites (account side — should already be true, verify)
- SuiteCommerce (Standard) installed on the account ✅ (site is live)
- SuiteCommerce Extension Manager installed (verify in Sandbox)
- Local: Node.js + Gulp.js installed (
node -v,gulp -vto check)
Step 1 — Download the tools from the Sandbox
- Log in to the Sandbox NetSuite account
- Documents > Files > File Cabinet →
SuiteBundles/Bundle 521562/ - Download
ThemeDevelopmentTools-26.1.x.zip(latest minor; NOT the 18.2.1 Aconcagua one) - Extract to a dedicated sandbox dir — Oracle explicitly says keep prod and sandbox in separate root directories. Suggest:
~/ai-projects-local/rbd-sc-theme-sandbox/ - In that dir:
npm install(few minutes)
Step 2 — Token-Based Auth (one-time, in the Sandbox)
- Create an Integration Record (Setup > Integration > Manage Integrations > New):
- Name:
Athos Theme Dev Tools- State: Enabled - ✅ Token-Based Authentication - ✅ TBA: Authorization Flow · Callback URL:http://localhost:7777/tba- ⬜ Authorization Code Grant (unchecked) - ✅ User Credentials - Save → copy Consumer Key + Secret
- Paste into the
.envfile in the tools root dir - ⚠️ Never commit.env— add to.gitignorebefore any git init (standing rule).
Step 3 — Clone the active theme
gulp theme:fetch --account <SANDBOX_ACCT_ID>-sb1
(Sandbox account id looks like 4582045-sb1 — confirm the exact suffix in the Sandbox URL.) Pulls the active theme's Sass/HTML/templates into the Theme directory. This is what unblocks Claude writing the real override files — I need the base Facets.Browse.View.tpl, header search form, ProductDetails.Full.View.tpl, cart, and 404 templates.
Step 4 — Local dev loop
gulp theme:local
Compiles + starts a watching local server. Edit templates → see changes live.
Step 5 — Deploy to Sandbox + activate
gulp theme:deploy --account <SANDBOX_ACCT_ID>-sb1
gulp reactivate # or: gulp theme:deploy --reactivate
Then confirm the custom theme is applied to the Sandbox SC site.
After the theme is cloned — hand these back to Claude
- The pulled templates (paths above) so I can write exact overrides from the build kit (
athos-frontend-build-kit.md). - Answer the 3 binding checks (from the build kit §Binding risks): is the category External ID available in the SC category model? the PDP
itemidtemplate handle? the customer-id session handle?
Notes
- One theme per workspace. If we later also want prod, use a second root dir.
- Don't move/rename files inside the tools root dir.
Sources
~/ai-projects/mission-control/plans/athos-theme-devtools-setup.md