CLI Documentation Notice
You're viewing documentation for the new Wix CLI, which we recommend for all new projects. Determine which CLI your project uses.
Previous CLI documentation:
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.
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.
The Wix CLI allows you to design and develop site widgets entirely with code. When generating a site widget, you can choose between two framework options:
Learn more about site widget 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.