Deploying the solution
When your project's development and testing phase is complete, you can now package it and ship it as a solution. The Power Apps CLI can help you create a solution from this project and even deploy it to the desired environment.
In this recipe, we will create the solution package using the CLI and then deploy it to our Dataverse environment.
How to do it
First, let's configure and build the solution package and then import it using the Power Apps portal.
Building the solution
- Using the integrated console, create a subfolder to hold the solution components by entering the following command:
MD FontAwesomeSolution
. Once created, navigate to this subfolder by enteringCD FontAwesomeSolution
. - Execute the
pac solution init --publisher-name AMPICurrents --publisher-prefix apc
command to build the solution structure. - Enter the
pac solution add-reference --path ..
command to add a reference to our code component. - From the Explorer...