> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Extend An Existing App with the Wix CLI

## Article: Extend An Existing App with the Wix CLI

## Article Link: https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/get-started/extend-an-existing-app-with-the-wix-cli.md

## Article Content:

# Extend An Existing App with the Wix CLI


When developing an app, you can use the Wix CLI to work with existing app versions in the [app dashboard](https://manage.wix.com/account/custom-apps). This allows you to add new features to your app using the CLI without having to migrate the entire app to your CLI project.

Follow these steps to integrate your app with the CLI.

## Prerequisites

Before getting started, make sure you have the following set up:

+ [Node.js](https://nodejs.org/en/) (v24.22.1 or higher)
+ An existing Wix App

## Step 1 | Extend an existing app

To extend an existing app with a new Wix CLI project:

1. Run the following command:

    ```bash
    npm create @wix/new@latest app
    ```

1. When asked what you would like to do, select **Add new extensions for an existing Wix app**.
1. Select the app to extend.
1. Enter a folder name for your project. The folder name is the name of the directory containing your project's local files.

### What you get

Once the process is complete, you'll have all the files for your app in a local directory with the folder name you chose. The project includes a starter dashboard page in `src/extensions/dashboard/pages/my-page/`. For more information about the local files generated for your app, see [About the App Project Structure](https://dev.wix.com/docs/wix-cli/cli-for-apps/project-structure/about-the-app-project-structure.md).

When working on the CLI extension project locally or in preview versions, you can only work with the app extensions that are registered in your CLI project. Other app extensions from your app's dashboard are still loaded into your development site where you can preview and test them, but they will use their production versions.

Changes to your extension's local files will not be reflected in your app's dashboard until you create a new [app version](https://dev.wix.com/docs/build-apps/manage-your-app/versioning/about-app-versioning.md).

## Step 2 | Test the app

Your app won't be active on your development site at this stage, however, you can preview and test it in a local development environment.

To set up a local development environment, run the [`wix app dev`](https://dev.wix.com/docs/wix-cli/cli-for-apps/command-reference/project-commands/dev.md) command.

To test your app, you need a [development site](https://dev.wix.com/docs/build-apps/develop-your-app/development-sites/about-development-sites.md). If your project doesn't have one yet, the CLI asks you to press `Enter` to open the app installation page in your browser. There, select one of your development sites or click **Create Dev Site**, and install the app. After that, the CLI prints links to open the different parts of your app on the development site in your browser.

## Next steps

After completing the above steps, you have integrated your existing app into a Wix CLI project that you can experiment with and test locally.

You can now:

+ [Add extensions to your project's private app](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/supported-extensions/about-extensions-in-the-wix-cli.md).
+ [Learn more about developing your project](https://dev.wix.com/docs/wix-cli/cli-for-apps/about-the-wix-cli-for-apps.md).

## See also

+ [About the Wix CLI](https://dev.wix.com/docs/wix-cli/cli-for-apps/about-the-wix-cli-for-apps.md)
+ [Project structure](https://dev.wix.com/docs/wix-cli/cli-for-apps/project-structure/about-the-app-project-structure.md)
+ [CLI Command Reference](https://dev.wix.com/docs/wix-cli/cli-for-apps/command-reference/introduction.md)