Migrate a Dashboard Plugin Extension

This guide explains how to add a dashboard plugin extension to your new Wix CLI project as part of migrating an app from the legacy Wix CLI.

Folder structure

LegacyNew
src/dashboard/plugins/<name>/plugin.jsonsrc/extensions/dashboard/plugins/<name>/<name>.extension.ts
src/dashboard/plugins/<name>/plugin.tsxsrc/extensions/dashboard/plugins/<name>/<name>.tsx

Step 1 | Move and rename files

To move existing files into the new project:

  1. In the new project, create the folder src/extensions/dashboard/plugins/<name>/.
  2. Copy plugin.tsx from the legacy project's src/dashboard/plugins/<name>/ folder into the new project's src/extensions/dashboard/plugins/<name>/ folder, and rename it to <name>.tsx.
  3. Fix any import paths in the .tsx file if needed, including imports of backend code.

Don't copy the old plugin.json file. It is replaced by a new .extension.ts file.

Step 2 | Create the extension file

In src/extensions/dashboard/plugins/<name>/, create <name>.extension.ts:

Copy
FieldSourceRequired
idid from plugin.jsonYes. Must match legacy value to preserve the extension.
titletitle from plugin.jsonYes
extendsextends from plugin.json, the parent page this plugin extendsYes
componentPath to the .tsx file, relative to src/Yes

Important: The id must match the value from the legacy plugin.json. Otherwise, the new entry is treated as a separate extension instead of a continuation of the legacy one.

Step 3 | Register the extension

In the new project, in src/extensions.ts, import the extension and add it with .use():

Copy

Step 4 | Return to the main migration guide

Return to the Test, build, and release step in the main migration guide.

Last updated: 29 June 2026

Did this help?