Do this task to create a Wix-managed headless project from your own frontend project using the CLI. This process deploys a site and integrates it with Wix business solutions.
To create a Wix-managed headless project from your own frontend project using the CLI:
Navigate to the root of your existing project directory.
Run the initialization command:
This creates a new Wix Headless project. It also creates a wix.config.json configuration file in your directory root to link your local frontend to the new project. If you aren't already logged in, the CLI prompts you to log in to your Wix account.
To deploy a site, run npx wix release in your terminal.
Once your project initializes, run the following prompt with your AI agent to complete the initial setup:
Note: Use this prompt for the initial setup only. After completing setup, continue developing as you normally would. Don't reuse the initial prompt.
Learn more about developing your project.