About Site Extensions in the Wix CLI

The Wix CLI is in Developer Preview and is subject to change.

CLI Documentation Notice

You're viewing documentation for the new Wix CLI, which we recommend for all new projects.

The Wix CLI allows you to add site extensions to your app project. These extensions aren't relevant for headless projects.

The following site extensions are available in the Wix CLI:

You can add these extensions using the generate command.

Custom element site widget extensions

Site widgets are draggable UI components that Wix site owners can add to pages on their website. They enhance a site's functionality by displaying content or enabling site visitors to perform various tasks. When working in the site editor, site owners can adjust the size of the widget, reposition it, and customize it using its settings panel.

Site widget extensions allow you to design and develop your widget entirely with code using the CLI with custom element technology. The custom element is an HTML tag that you define in local code files. The custom element is made available in the Wix editors as a widget. Learn more about site widget extensions for custom element widgets.

Embedded script extensions

An embedded script is an app extension that injects an HTML code fragment into the DOM of a site. Embedded scripts are used for analytics, accessing site data, interacting with other apps, customizing site behavior, and more. You can implement an embedded script extension in your app project using the CLI. Learn more about embedded script extensions.

See also

Did this help?