
Hi all,
I want to download the code from my Power Pages Instance in order to modify it from my Visual Studio Code locally.
I followed the docs to install Power Platforms extension in Visual Studio Code. My account is in 2 environments.
How can I specify another environment using the paportal commmand in Visual Studio Code?
Following the docs, I used the following (that's the example from MS docs), but there it checks only in the default environment and does not have an attribute to specify the second environment in which my power pages instance is located. Anyone knows how to do that? Seems like it's not something that exists in the pac paportal commands
pac paportal download --path "C:\portals" --webSiteId f88b70cc-580b-4f1a-87c3-41debefeb902
hi @Anonymous,
You need to create an authentication profile for the environment you want to download your portal from. You can use pac auth create command to do that (or use Power Platform Tools extension). If you have a Power Platform Tools extension open it and in a list of Auth Profiles click on a star icon near the name of the profile you need (it should select it). If you don't have an extension use pac auth list to see which profiles are available to you. Check the number of the profile you need and use pac auth select with that number to switch profile. Now you should be able download portal from that environment.