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.
The following flags are available for the wix generate command:
| Flag | Description |
|---|---|
--type <type> | Generates an extension with the specified type. Can't be combined with --params. Accepted values for <type>:
|
--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. |
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.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:
For example, this command generates a dashboard page titled Settings with the route settings:
Last updated: 10 November 2026