Create a folder where you want to store all the files of your project. I have created a folder named DemoPCFProject. Open NodeJS Command Prompt and navigate to the newly created folder using cd command.

Run below command to create the PCF Project and install npm
pac pcf init --namespace PCFNameSpace --name DempPCFComponent --template field
npm install

You can check the files are created in the folder

There are two types of components you can create: field and dataset
While still in NodeJS Command Prompt, type code. to open the folder in Visual Studio Code.

You can now edit the project and add business logic into it.
