About Developing Wix CLI Headless Projects

Once you've created a Wix CLI headless project, most of your work happens in your local files and the terminal. This section covers the tasks involved in developing your project beyond initial setup: building out your backend, managing configuration, testing your code, and taking your project to production.

For an introduction to the CLI itself and the structure of a generated project, see About the Wix CLI.

Customize your CLI commands

As the CLI adds new functionality, you can pull the latest commands into an existing project so you have access to everything the current version offers. See Add New CLI Commands to Existing Projects.

Build your backend

When your project needs server-side logic (calling third-party APIs, working with a database, or exposing your own API), you can add HTTP endpoints. HTTP endpoints are file-based routes powered by Astro that handle incoming HTTP requests. See About HTTP Endpoints and Add HTTP Endpoints to Your Project.

Manage environment variables

Store configuration values and secrets, such as API keys, outside your code and access them safely across environments. See About Environment Variables in the CLI and Manage Environment Variables in the CLI.

Test your project

Write and run unit tests to validate your code as you develop. See Write Unit Tests for a Wix CLI Project.

Build and deploy

When your project is ready, build its assets, create shareable previews, and release it to production. See Build and Deploy a Project with the Wix CLI.

See also

Did this help?