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.
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.
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.
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.
Write and run unit tests to validate your code as you develop. See Write Unit Tests for a Wix CLI Project.
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.