Theme Control Plane
The Theme Control Plane is the shared editing surface for Shoppex themes.This is an advanced platform page.
If you are new and just want to customize a theme with Claude Code or Codex, start with Build and Customize a Theme with AI.
What Problem It Solves
Without a shared control plane, theme editing usually splits into separate paths:- one path for the dashboard
- one path for CLI scripts
- one path for AI tools
- inspect the theme
- read or search files
- apply changes
- validate or preview
- publish or rollback
The Mental Model
Think of a Shoppex theme like a source project with a safe editing API in front of it. The workflow is always: inspect β read β apply β validate β preview β publish.Supported Operations
Inspect And Read
Use these first:inspectread_filesearch_filessettings.getlatest_run
inspect to see sections, settings groups, brand tokens, and constraints. Use search_files to find where a headline, component, or setting lives. Use read_file only for the files you actually plan to edit.
Edit Existing Themes
Use these to customize an existing theme:applyvalidatepreviewpublishrollbackdiff
src/pages/Home.tsx, run validate, open preview, then publish.
Extend Themes
Use these when you want to add new building blocks:create_sectioncreate_pageupdate_config
Testimonials section, add a /about page, or register a new layout.show_badge setting in theme.config.ts.
Create New Themes
Usecreate when you want to scaffold a new theme from a Shoppex base theme.
Supported bases:
defaultclassicnebulapulse
default and either set it active later or immediately with setAsActive.
Access Modes
You can use the same control plane in four ways:Dashboard
Use the Shoppex dashboard if you want a built-in UI and preview flow.Dev API
Use the Dev API if you want backend automation or your own tooling. Typical endpoints:POST /dev/v1/themes/control/createGET /dev/v1/themes/{id}/control/inspectPOST /dev/v1/themes/{id}/control/applyPOST /dev/v1/themes/{id}/control/publish
CLI
Use the CLI if you want terminal workflows. If you want the end-to-end onboarding path for API key setup, pull, local dev, push, preview, and publish, start with Hosted Theme Sync.Local Push And Pull
For classic local theme development, usepull and push.
pulldownloads the current theme source ZIPpullwrites.shoppex/theme.jsonwith thethemeIdandsourceRevisionpushuploads the full local source snapshotpushalways validates the uploaded draftpushnever publishes automatically
MCP
Use the MCP server if you want an AI assistant to drive the workflow through tools like:theme.inspecttheme.read_filetheme.applytheme.create_sectiontheme.publish
Auth And Scopes
For Dev API, CLI, and MCP, use a Shoppex API key. Recommended scopes:themes.readfor inspect, diff, search, read, settings get, backups, latest runthemes.writefor create, apply, accept, preview, publish, rollback, and scaffolding
themes.read. An autonomous editing agent needs both themes.read and themes.write.
Recommended Safe Workflow
inspectsearch_filesread_fileapplyin small batchesvalidatepreviewpublish
When To Use accept
accept is for draft patches that already came from a dashboard-agent run.
The dashboard agent suggests a change, you review it, and you call accept for the chosen run/message/variant.
If you are directly editing source files through the control plane, you usually use apply, not accept.
When To Use diff
Use diff when you want to compare the current draft against the latest published snapshot.
Changed 4 files this morning and want to confirm whatβs still unpublished? Call diff before publishing.
Next Steps
Hosted Theme Sync
Follow the local source sync workflow from dashboard API key creation to push, preview, and publish.
AI Theme Workflows
See the full recommended workflow for AI-assisted editing with CLI and MCP.
Theme Config
Learn how sections and settings are represented inside
theme.config.ts.Build Pipeline
Understand what happens after validate, preview, and publish.
API Reference
Browse the Dev API reference for the theme control endpoints.