wix generate

Adds an extension to your project. By default, the command prompts you to select an extension type and enter its configuration details. It then generates the extension's files, including its own .extension.ts file, and registers the extension in src/extensions.ts.

Usage

Copy

Flags

The following flags are available for the wix generate command:

FlagDescription
--type <type>Generates an extension with the specified type. Can't be combined with --params. Accepted values for <type>:

  • DASHBOARD_PAGE
  • DASHBOARD_MODAL
  • DASHBOARD_PLUGIN
  • DASHBOARD_MENU_PLUGIN
  • EVENT
  • SERVICE_PLUGIN
  • DATA_COLLECTION
  • APP_TOOLS
  • APP_SKILLS
--params <json>Generates an extension non-interactively from a JSON object describing it, instead of the prompts. Can't be combined with --type. For the object's keys, see Extension JSON object.

Extension JSON object

The <json> argument of --params is a JSON object that describes one extension. It has these keys:

  • extensionType: The extension type. It takes the values that --type accepts.
  • The keys of that extension type, which differ between types. For example, a dashboard page requires title and route.

wix schema generate --type <type> prints the keys of one extension type and which of them are required.

The command takes this form, with one "<key>":"<value>" pair for each of the extension type's keys:

Copy

For example, this command generates a dashboard page titled Settings with the route settings:

Copy

Last updated: 10 November 2026

Did this help?