You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALM APIs provide simple APIs to manage deployment of your SharePoint Framework solutions and add-ins across your tenant. ALM APIs support the following capabilities:
12
12
13
-
- Add SharePoint Framework solution or SharePoint Add-in to tenant app catalog.
14
-
- Remove SharePoint Framework solution or SharePoint Add-in from tenant app catalog.
15
-
- Enable SharePoint Framework solution or SharePoint Add-in to be available for installation in tenant app catalog.
16
-
- Disable SharePoint Framework solution or SharePoint Add-in not to be available for installation in tenant app catalog.
17
-
- Install SharePoint Framework solution or SharePoint Add-in from tenant app catalog to a site.
18
-
- Upgrade SharePoint Framework solution or SharePoint Add-in to a site, which has a newer version available in the tenant app catalog.
13
+
- Add SharePoint Framework solution or SharePoint Add-in to tenant or site collection app catalog.
14
+
- Remove SharePoint Framework solution or SharePoint Add-in from tenant or site collection app catalog.
15
+
- Enable SharePoint Framework solution or SharePoint Add-in to be available for installation in tenant or site collection app catalog.
16
+
- Disable SharePoint Framework solution or SharePoint Add-in not to be available for installation in tenant or site collection app catalog.
17
+
- Install SharePoint Framework solution or SharePoint Add-in from tenant or site collection app catalog to a site.
18
+
- Upgrade SharePoint Framework solution or SharePoint Add-in to a site, which has a newer version available in the tenant or site collection app catalog.
19
19
- Uninstall SharePoint Framework solution or SharePoint Add-in from the site.
20
-
- List all and get details about SharePoint Framework solutions or SharePoint Add-ins in the tenant app catalog.
20
+
- List all and get details about SharePoint Framework solutions or SharePoint Add-ins in the tenant or site collection app catalog.
21
21
22
22
ALM APIs can be used to perform exactly the same operations that are available from a UI perspective. When these APIs are used, all typical actions are performed. Following are some of the characteristics of ALM APIs:
23
23
24
24
-`Install` and `UnInstall` events are being fired for provider-hosted add-ins when corresponding operations occur.
25
25
- ALM APIs support app-only-based operations.
26
26
27
-
ALM APIs are natively provided by using REST APIs, but there are additional CSOM extensions, PowerShell cmdlets, and the cross-platform Office 365 CLI available through SharePoint Patterns and Practices.
28
-
29
-
> [!NOTE]
30
-
> ALM APIs are not currently supported for the [site collection app catalog](../general-development/site-collection-app-catalog.md). Support will be added in early 2018.
27
+
ALM APIs are natively provided by using REST APIs, but there are additional CSOM extensions, PowerShell cmdlets, and the cross-platform Office 365 CLI available through SharePoint PnP Community channels.
31
28
32
29
## REST API
33
30
34
-
### Add solution package to the tenant app catalog
31
+
> [!TIP]
32
+
> ALM APIs are also supported for the [site collection app catalog](../general-development/site-collection-app-catalog.md). URLs for the site collection app catalog operations are exactly the same, but you can change the `tenantappcatalog` as `sitecollectionappcatalog`. Notice also that you will need to enable site collection app catalog in your site collection or you will get an exception when trying to use these APIs.
33
+
34
+
### Add solution package to the app catalog
35
35
36
-
This API is designed to be executed in the context of the tenant app catalog site.
36
+
This API is designed to be executed in the context of the app catalog site.
### Deploy solution packages in the tenant app catalog
48
+
### Deploy solution packages in the app catalog
49
49
50
-
This enables the solution to be available to install to specific sites. This API is designed to be executed in the context of the tenant app catalog site.
50
+
This enables the solution to be available to install to specific sites. This API is designed to be executed in the context of the app catalog site.
### Install solution package from the tenant app catalog to a SharePoint site
115
+
### Install solution package from the app catalog to a SharePoint site
116
116
117
-
Install a solution package with a specific identifier from the tenant app catalog to the site based on URL context. This REST call can be executed in the context of the site where the install operation should happen.
117
+
Install a solution package with a specific identifier from the app catalog to the site based on URL context. This REST call can be executed in the context of the site where the install operation should happen.
### Upgrade solution packages on the SharePoint site
128
128
129
-
Upgrade a solution package from the site to a newer version available in the tenant app catalog. This REST call can be executed in the context of the site where the upgrade operation should happen.
129
+
Upgrade a solution package from the site to a newer version available in the app catalog. This REST call can be executed in the context of the site where the upgrade operation should happen.
By using [PnP PowerShell](https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps), you can automate deploying, publishing, installing, upgrading, and retracting your apps.
157
157
158
+
> [!NOTE]
159
+
> Support for scope option was released on the April 2018 release of PnP PowerShell.
160
+
158
161
### Add and publish your app to the app catalog
159
-
Adding your app (.sppkg file, .app file) to the tenant app catalog is a prerequisite to making your app available for use on your SharePoint sites. You can do this by using the following cmdlet:
162
+
Adding your app (.sppkg file, .app file) to the app catalog is a prerequisite to making your app available for use on your SharePoint sites. You can do this by using the following cmdlet:
160
163
161
164
```PowerShell
162
-
Add-PnPApp -Path ./myapp.sppkg
165
+
Add-PnPApp -Path ./myapp.sppkg -Scope Tenant
163
166
```
164
167
165
168
Once added, you need to continue with publishing your app, effectively making the app available to be used by the users of your tenant. The following PnP PowerShell cmdlet shows how this can be done:
0 commit comments