Microsoft Power Platform CLI solution support for Power Pages (preview)
[This topic is pre-release documentation and is subject to change.]
Power Pages enhanced data model supports solution awareness feature for the Power Pages. This will help you use Power Platform solution capabilities to move website configuration from one environment to another.
Important
- This is a preview feature.
- Preview features aren’t meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.
The Power Platform CLI provides solution related commands that can also be applied to Power Pages.
Create a new solution
Use the following command to create a new solution using the PAC CLI;
pac solution init --publisher-name '<<publisher name>>' --publisher-prefix '<<publisher prefix>>' --outputDirectory '<<directory>>'
Example:
pac solution init --publisher-name 'ppmaker' --publisher-prefix 'pp' --outputDirectory 'c:\dev\ppsolution'
Add existing website to a solution
You'll need to determine the component type and component id in order to add a website to a solution using the PAC CLI.
Determining component types
You can get the specific Power Pages componentType names and values by sending a GET request using the Dataverse Web API OData call.
{OrgURL}/api/data/v9.1/solutioncomponentdefinitions?filter=startswith(name,'powerpage')$&select=name,solutioncomponenttype
Determining component ID
You can get the componentId by sending a GET request using the Web API OData call.
You can use the following endpoints:
powerpagesite
powerpagesitelanguage
powerpagecomponent
The example shown below is using the powerpagesite endpoint.
{OrgURL}/api/data/v9.1/powerpagesites?$select=name
Once you have determined the component type and ID, use the following command to add an existing website to a solution using the PAC CLI;
pac solution add-solution-component
Example:
pac solution add-solution-component -sn SampleSolution -c c6f2aec0-ddd2-ed11-a7c6-6045bdf05d59 -ct 10319
In this example;
SampleSolutionrepresents solution unique name.c6f2aec0-ddd2-ed11-a7c6-6045bdf05d59is Power Pages Site record ID.10319is Power Pages site solutionCompomponentTypefrom the above Web API response.
Use pac solution sync or pac solution export to export the solution using the PAC CLI.
Power Pages website configuration can then be moved using Power Platform ALM processes.
See also
Feedback
Submit and view feedback for