Showing posts with label SharePoint framework commands. Show all posts
Showing posts with label SharePoint framework commands. Show all posts

Tuesday, 19 March 2019

spfx commands



Below are some basic commands to work with SharePoint framework with visual studio code tool.




//to create new solution
md SPHellowWebpart
cd SPHellowWebpart
yo @microsoft/sharepoint

//to add new webpart/Extension
//start new terminal and
//run below command
yo @microsoft/sharepoint

//to start the host on local machine
gulp serve

//to trust the certificate on local host
gulp trust-dev-cert

//to install libary/package
npm install libararyName

gulp serve --nobrowser // if already runing local host
gulp budle --ship //before package run this command for dev without ship
gulp package-solution --ship //to create package run this command for dev without
ship