Already have an Astro project? Link it to Wix and deploy it as a Wix-managed headless project with Wix's Astro integration. The integration handles hosting, authentication, and extensions for you, so there's no client setup or authentication to wire up yourself.
The headless link command provisions a Wix business and site, configures your Astro setup for Wix, and installs the dependencies you need. This is the alternative to scaffolding a new Astro project. For that, see Quick Start with the Wix CLI.
Make sure:
astro.config.mjs). Astro 6 isn't supported.wix.config.json file).Navigate to the root folder of your Astro project.
Run:
Enter the name of your business. This becomes the name of your headless project on Wix and is added to your Wix sites list. The command configures your Astro project for Wix, installs dependencies, and provisions a Wix business and site.
Note: You can run the command non-interactively by passing the --business-name flag. See the headless link flags.
Run npm run dev to start the local development environment, then open the link in your terminal to view your site. The environment hot-reloads, so changes appear in the browser immediately.
Your Astro project is now connected to Wix with the Astro integration handling authentication for you, so you can call Wix SDK methods directly. From here you can:
Last updated: 25 June 2026