PCF cheat sheat
2025-04-03
All articles from this blog can ONLY be redistributed on an Attribution-NonCommercial-NoDerivs basis. Please credit the source, thank you.
Twitter:@kelvinshen
Blog:Kelvin Shen's Blog
Install the PAC CLI Tool
Install the PAC CLI tool for both the VS Code and Command Prompt for Windows
Install Power Platform CLI using Windows MSI
## Create a PCF solution folder
mkdir FileExplorerV9
Initialize the PCF solution structure
pac pcf init -ns Kys.CustomControl.FileExplorer -n src --template dataset -fw react -npm
pac pcf init --namespace SampleNamespace --name LinearInputControl --template field --run-npm-install
Initialize the Dataverse solution project
pac solution init --publisher-name KelvinBytes --publisher-prefix kys
pac solution add-reference --path FileExplorer