About Extensions in the Wix CLI

The Wix CLI allows you to easily extend your app's functionality with extensions. For example, with extensions you can add custom dashboard pages or implement backend logic to handle events.

The Wix CLI 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.

Adding extensions

You can add extensions to your app using the generate command.

This command starts a process that guides you through adding an extension to your app.

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 under src/extensions/. If you want to move your extension files in your project, make sure the new path is specified in the extension.ts file. Learn more about the extension.ts file.

Important: Some extensions require you to run release to create an app version before they work. The preview command uploads your code but doesn't register all extensions in your app's configuration, so extensions like embedded scripts, site widgets, and site plugins can't be tested through preview alone.

Supported extension types

The Wix CLI currently supports the following extensions:

Dashboard extensions

Backend extensions

HTTP endpoints

Wix CLI projects support HTTP endpoints for backend API development.

Note: HTTP endpoints replace both HTTP functions and web methods from the previous Wix CLI for Apps.

Site extensions

See also

Did this help?