Some important Basic Powershell script commands which are used in our day to day life for deployment process on Sharepoint 2010
Add-SPSolution -LiteralPath "solution path\solutionname.wsp"
Install-SPSolution -Identity "solutionname.wsp" –GACDeployment.
Upgrade the Existing Solution
Update-SPSolution -Identity "solutionname.wsp" -LiteralPath "solutionpath\solutionname.wsp" -GACDeployment
UnInstall the SPSolution
Uninstall-SPSolution -Identity "solutioname.wsp"
Remove the SPSolution
Remove-SPSolution -Identity “solutioname.wsp”
Deploy the feature to a particular site collection
Enable-SPFeature -Identity "featurefoldername" -url "sitecurl"
Activate the feature to a particular site collection
Install-SPFeature -path "featurefoldername"
Deactivate the feature from a particular site collection
Uninstall-SPFeature -path "featurefoldername"
Remove the feature from a particular site collection
Disable-SPFeature -Identity "featurefoldername" -url "siteurl"
Note: The below mentioned command is used to get all the features which have not been installed so far but presents in the environment and if the user will run this command without -Whatif then it will install all the features which are present but not installed yet.
Install-SPFeature -AllExistingFeatures -Whatif