About Site Extensions in the Wix CLI

The Wix CLI allows you to add site extensions to your app project.

The following site extensions are available in the Wix CLI:

You can add these extensions using the generate command.

Custom element extensions

Custom elements are draggable UI components built with the web components standard 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. Available on Wix Studio, Wix Harmony, and for the Wix App Market.

Learn more about adding a custom element extension.

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.

The CLI simplifies setup, testing, and deployment for embedded script extensions:

  • Single-command setup: Generate an embedded script extension in your app with one command.
  • Easy, early testing: Test the extension on a development site before building an app. You can specify values for dynamic parameters to use during testing.
  • Use local files: Reference any file in your app project's directory from your HTML code with a relative link. There's no need for external hosting or CORS handling.
  • Simple embedding: Offload the responsibility for embedding the script to the user, avoiding complex authentication procedures.

Learn more about adding an embedded script extension.

Site plugin extensions

With site plugins, you can create interactive and feature-rich widgets that seamlessly integrate into Wix’s business solutions such as Wix Stores and Wix Bookings, extending their functionality and user experience. You can implement site plugin extensions in your app project using the CLI. Learn more about site plugin extensions.

See also

Did this help?