PCF Commands

PCF Commands 

Build a Project:

pac pcf init -n [ControlName] -ns [namespace] -t [field/dataset] -npm

React:

pac pcf init -n [ControlName] -ns [namespace] -t [field/dataset] -fw react -npm


Install Fluent UI:

npm ls react react-dom @fluentui/react


Running a project on the emulator:

npm start / npm watch

npm start watch


How to create a solution folder:

Create a subfolder (optional)

mkdir Solution 

cd Solution 


pac solution init --publisher-name [publisherName] --publisher-prefix [prefix]

pac solution add-reference --path [local url]

msbuild /t:build /restore



Authenticate

pac auth create --url [env url]

pac auth create --environment [env url]

pac auth list

pac auth select --index 1


Publish/Update PCF in the environment

pac pcf push --publisher-prefix [prefix]


Validate Lint

npm run lint 

Comments

Popular posts from this blog

Using external Fonts in Power Pages

Portal (Power Pages) WebAPI & forget about clearing cache