Add Dashboard Page Extensions with the CLI

Wix Apps can extend the Wix Dashboard by adding new pages to the dashboard. You can create a dashboard page to help users manage their sites or businesses. Dashboard pages aren’t part of a live site, so site visitors never see them.

The Wix CLI makes it easy to create and develop dashboard page extensions, and to manage dashboard pages in the sidebar.

For general information about this extension type, read About Dashboard Page Extensions

Follow the instructions below to:

  1. Create a dashboard page extension for a Wix CLI app.
  2. Customize your dashboard page.
  3. Build and deploy your app.

Once this task is complete, your app will have a dashboard page extension that adds a new dashboard page to a user's site.

Before you begin

Step 1 | Create the extension

Run the following command and follow the prompts to create a dashboard page extension:

Copy
1

Enter the route for your page. The route is the path that is appended to the dashboard base URL to access the dashboard page. For more information, see Page Routes.

The extension files will be created in your local app files under the chosen route with the following structure:

Copy
1

For more information about these files, see Dashboard Page Extension Files and Code.

Step 2 | Customize your dashboard page

  1. Run the following command to open the dev menu:

    Copy
    1
  2. Press D to view a list of dashboard pages, then select the number corresponding to your new dashboard page's route name. This will open a browser window previewing your dashboard page.

    Note that the subtitle on the page is "Edit src/dashboard/pages/test-route-2/page.tsx to change this text."

    Leave this window open.

  3. Go to your dashboard page's page.tsx file and change subtitle in Page.Content to "Hello world!":

    Copy
    1
  4. Save your file.

  5. Navigate back to your browser and check that the subtitle on the page is now "Hello World!".

Step 3 | Build and deploy your app

Now that your app is ready for production, you can build your app and create a version of it in the Wix Dev Center.

  1. Run the following command to build your app:
Copy
1
  1. Run the following command and follow the prompts to create an app version:
Copy
1

An app version allows you to publish an app to the Wix App Market or install it on a site with a direct install URL.

For more information about building and deploying your app, see Build and Deploy an App with the CLI.

Delete a dashboard page

To delete an existing dashboard page from your app, delete the subfolder under src/dashboard/pages that contains your dashboard page's files.

Note: If you've already created a version of your app, deleting a dashboard page's files from your project will not remove the registration of the dashboard page from the Wix Developers Center. To remove the registration, create a new version after deleting the dashboard page's files.

Templates and Tutorials

The following CLI app templates with dashboard pages are available:

See also

Was this helpful?
Yes
No