Install-PnPSolution

Installs a sandboxed solution to a site collection. WARNING! This method can delete your composed look gallery due to the method used to activate the solution. We recommend you to only to use this cmdlet if you are okay with that.

Syntax

Install-PnPSolution
       -PackageId <GuidPipeBind>
                          -SourceFilePath <String>
                          [-MajorVersion <Int>]
                          [-MinorVersion <Int>]
                          [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Install-PnPSolution -PackageId c2f5b025-7c42-4d3a-b579-41da3b8e7254 -SourceFilePath mypackage.wsp

Installs the package to the current site

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-MajorVersion

Optional major version of the solution, defaults to 1

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-MinorVersion

Optional minor version of the solution, defaults to 0

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-PackageId

ID of the solution, from the solution manifest

Type:GuidPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-SourceFilePath

Path to the sandbox solution package (.WSP) file

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False