Build and Deploy an App with the CLI

After developing and testing your Wix CLI app locally, you can take it to production. This article guides you through that process.

The following diagram shows the overall flow for creating a CLI app. The steps in the red rectangle are covered in this article.

Prerequisites

To follow this guide you need a Wix CLI App. For instructions on creating an app, see Quick Start.

Step 1 | Build the app

Run the following command to build the assets for your app:

Copy
1

Step 2 (Optional) | Create an app preview URL

An app preview URL is a URL you can share with team members who are collaborators on your development site. The link allows them to preview and test your app.

To push your app to Wix's servers for hosting and create an app preview URL, run the following command:

Copy
1

Step 3 | Create an app version

Now that you’ve built your app, it's time to create an app version.

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.

The CLI guides you through the process of creating a new app version in the Wix Developers Center.

To push your app to Wix's servers for hosting and create an app version, run the following command and follow the prompts:

Copy
1

To learn more about app versions, see App Versions and Deployment.

Step 4 (Optional) | Publish your app

Once you have an app version, you can submit it for review and then publish it to the Wix App Market or have users install it on their sites with a direct install URL.

For more information on publishing your app, see About Market Listings.

Next steps

You now have a fully working app that can be installed on Wix sites.

Use the following resources to continue building your app:

Was this helpful?
Yes
No