PCF Commands
PCF Commands
Build a Project:
pac pcf init -n [ControlName] -ns [namespace] -t [field/dataset]
React:
pac pcf init -n [ControlName] -ns [namespace] -t [field/dataset] -fw react -npm
npm install
Running a project on the emulator:
npm start / npm watch
npm start watch
How to create a solution folder:
mkdir Solution
cd Solution
pac solution init --publisher-name [publisherName] --publisher-prefix [prefix]
pac solution add-reference --path [local url]
msbuild /t:build /restore
Authentication to your environment
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]
Create a PCF React Control
pac pcf init -n [ProjectName] -ns [prefix] -t field -fw react
Comments
Post a Comment