wix-cli-extension-registration▌
wix/skills · updated Apr 8, 2026
After creating any extension file, you must update the main src/extensions.ts file to register the extension with the app.
Wix App Registration
After creating any extension file, you must update the main src/extensions.ts file to register the extension with the app.
Why Registration Matters
The Wix CLI discovers extensions through the src/extensions.ts file — it's the single entry point that tells the build system which extensions exist. Without registration:
- Dashboard pages won't appear in the sidebar
- Site widgets won't show in the Wix Editor
- Service plugins won't be called during checkout flows
- Event handlers won't receive webhook deliveries
- Embedded scripts won't be injected into site pages
The most common cause of "my extension isn't working" is a missing .use() call in this file.
Simple Pattern (Recommended for Small Apps)
src/extensions.ts - Import and register extensions directly:
import { app } from "@wix/astro/builders";
import { dataExtension } from "./extensions/data/extensions.ts";
import { dashboardpageMyPage } from "./extensions/dashboard/pages/my-page/extensions.ts";
import { embeddedscriptMyScript } from "./extensions/site/embedded-scripts/my-script/extensions.ts";
export default app()
.use(dataExtension)
.use(dashboardpageMyPage)
.use(embeddedscriptMyScript);
Steps for each new extension:
- Import the extension from its
extensions.tsfile - Add
.use(extensionName)to the app chain - Chain multiple extensions together
Advanced Pattern (For Large Apps)
src/index.ts - Re-export all extensions:
export { dashboardpageMyPage } from "./extensions/dashboard/pages/my-page/extensions";
export { embeddedscriptMyScript } from "./extensions/site/embedded-scripts/my-script/extensions";
export { dataExtension } from "./extensions/data/extensions";
src/extensions.ts - Register all extensions programmatically:
import { app } from "@wix/astro/builders";
import * as allExtensions from "./index";
const extensionList = Object.values(allExtensions);
const appBuilder = app();
extensionList.forEach((extension) => {
appBuilder.use(extension);
});
export default appBuilder;
Extension Types Without Registration
The following extension types do not require extensions.ts files:
- Backend API - Astro server endpoints are auto-discovered
Naming Conventions
Extension export names follow this pattern: {extensiontype}{CamelCaseName}
Examples:
dashboardpageCartPopupManagerdashboardpluginBlogPostsBannerdashboardmenupluginExportPostsembeddedscriptCouponPopupsitewidgetCountdownWidgetsitepluginProductBadgeecomshippingratesCustomShipping
The type prefix is the extension type in lowercase with no separators.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Extension not appearing at all | Missing .use() call |
Add import and .use(extensionName) to src/extensions.ts |
| "Cannot find module" on build | Wrong import path | Verify the path in your import matches the actual file location (relative to src/) |
| Extension registered but not working | Export name mismatch | Ensure the exported name in the extension file matches the import in extensions.ts |
| Multiple extensions, only some work | Incomplete chain | Check that every extension has both an import and a .use() call |
TypeScript error on .use() |
Wrong export type | Ensure extension file uses the correct builder method (e.g., extensions.dashboardPage() not extensions.embeddedScript()) |
Ratings
4.5★★★★★73 reviews- ★★★★★Diya Abbas· Dec 28, 2024
wix-cli-extension-registration fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Olivia Martinez· Dec 20, 2024
Useful defaults in wix-cli-extension-registration — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Amelia Wang· Dec 16, 2024
We added wix-cli-extension-registration from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Ganesh Mohane· Dec 8, 2024
I recommend wix-cli-extension-registration for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Sakshi Patil· Nov 27, 2024
Useful defaults in wix-cli-extension-registration — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Diya Dixit· Nov 19, 2024
We added wix-cli-extension-registration from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Jin Martinez· Nov 11, 2024
I recommend wix-cli-extension-registration for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Noor Park· Nov 11, 2024
Keeps context tight: wix-cli-extension-registration is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Daniel Tandon· Nov 7, 2024
wix-cli-extension-registration fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Kabir Gupta· Oct 26, 2024
Registry listing for wix-cli-extension-registration matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 73