PowerShell Commands To Install SharePoint 2013 Apps

In this blog, we will talk about the power shell commands to install the SharePoint apps 2013. First, you need to import the published SharePoint apps, and then go for the installation in the farm.
 
1. $customSPApp = Import-SPAppPackage -Path < Path to app > -Site < URL > -Source < Source >
2. Install-SPApp -Web < URL > -Identity $customSPApp
 
For example
 
 $MyApp = Import-SPAppPackage -Path "c:\Lakshmanan\ MyApp.app" -Site "http://letch541.microsoftonline/apps" -Source "([microsoft.sharepoint.administration.spappsource]::DeveloperSite)"

Install-SPApp -Web "http://letch541.microsoftonline/apps" -Identity $MyApp