Publish-PnPApp

Publishes/Deploys/Trusts an available app in the app catalog

Syntax

Publish-PnPApp
       -Identity <AppMetadataPipeBind>
                     [-SkipFeatureDeployment [<SwitchParameter>]]
                     [-Scope <AppCatalogScope>]
                     [-Connection <SPOnlineConnection>]

Examples

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

Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f

This will deploy/trust an app into the app catalog. Notice that the app needs to be available in the tenant scoped app catalog

------------------EXAMPLE 2------------------

Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f -Scope Site

This will deploy/trust an app into the app catalog. Notice that the app needs to be available in the site collection scoped app catalog

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.

Only applicable to: SharePoint Online, SharePoint Server 2019

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

Specifies the Id of the app

Only applicable to: SharePoint Online, SharePoint Server 2019

Type:AppMetadataPipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-Scope

Defines which app catalog to use. Defaults to Tenant

Only applicable to: SharePoint Online, SharePoint Server 2019

Type:AppCatalogScope
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-SkipFeatureDeployment

Only applicable to: SharePoint Online, SharePoint Server 2019

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