Version Control in Power Pages?

146 Views Asked by At

I am new to Power platform, coming from developer background, I am trying to understand do we have version control in Power Pages? How to set up GitHub?

I tried searching, but didn't not find proper solution. Expectation: I should be able to push, pull, commit and revert changes.

1

There are 1 best solutions below

0
Moe On

There is currently no native support for version control in Power Portals. However, my current solution is as follows:

  1. Download the Power Platform CLI (Windows or Mac)
  2. Authenticate to your environment with the pac auth create command
  3. Get your website ID using pac paportal list
  4. Download your website using pac paportal download (if that command doesn't work, it may be because your site is using the Enhanced data model. In that case, add --modelVersion 2 at the end)
  5. Add the downloaded directory to a freshly initialized Git repo on your favourite repo host
  6. Set up a CI/CD pipeline to publish your code when triggered, see this blog post for instructions