Note: Extensions created with the Wix CLI for Headless are added to your headless project's private app. For more information about the private app and how extensions work in this context, see About the Wix CLI for Headless.
Your project's private app lets you extend both its dashboard and backend functionality. For example, you can add custom dashboard pages or implement backend logic to handle events. Each distinct type of functionality your private app provides is called an extension.
For general information about Wix extensions, read About Extensions.
Wix CLI for Headless supports multiple extension types. The creation and setup process for extensions in the CLI takes place in the terminal. Then to edit your extensions, you write code directly in your project's local files.
You can add extensions to your project using the generate command:
This command starts a process that guides you through adding an extension to your project.
After selecting an extension, you'll be prompted for the relevant configuration details. Your extension will then be generated in your project's local files, specifically in its own subdirectory under src/extensions/
.
Wix CLI for Headless currently supports the following extensions:
Dashboard Extensions
Backend Extensions