The Wix CLI makes it easy to create and develop embedded script extensions for your app project. Embedded scripts are HTML code fragments that get injected into the DOM of Wix sites, enabling integration with third-party services, analytics tracking, advertising, and custom JavaScript functionality.
For general information about this extension type, read About Embedded Scripts.
The Wix 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 embedded script 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.