Publish an SPPKG file to SharePoint Online
Tags: sharepointonline, spfx
Published: 2024-04-11 08:57:51

---
title: Publish an SPPKG file to SharePoint Online
published: true
date: 2024-04-10 09:00:00 UTC
tags: SharePointOnline,spfx
canonical_url: https://iamguidozam.blog/2024/04/10/publish-an-sppkg-file-to-sharepoint-online/
---

Disclaimer: This is an article meant for those who are starting developing custom solutions for SharePoint Online, if you already published any SPPKG file save your time and read some more useful article like [granting API permissions requests for SPFx](https://iamguidozam.blog/2024/02/21/granting-api-permissions-requests-for-spfx/)

If you’re still reading I guess you’re interested in this article so let’s start!

When developing a custom SharePoint Framework solution (and if you’re wondering how to get started check out [this article](https://iamguidozam.blog/2023/09/13/yeoman-generator-is-your-best-friend-for-an-spfx-project/)) at some point you will need to deploy your solution which will be a file with the SPPKG extension (which is a zip of some files and folders of your solution) and to deploy it you need to perform some steps:

- Open the **SharePoint Online admin center**
- Open the **Manage apps**
- Deploy your solution

Let’s see in more details what are those steps.

#### Open the SharePoint Online admin center

To open the SharePoint Online admin center you can proceed in various fashions:

- From one of the Microsoft 365 applications using the application launcher.
- Go directly to the **Microsoft 365 admin center** with the following link [https://admin.microsoft.com/](https://admin.microsoft.com/).
- Writing directly the URL of the **SharePoint Online admin center** , which will be `https://{your tenant name}-admin.sharepoint.com`

###### Using the Application Launcher

In every Microsoft 365 application, on the top left corner, you’ll find the **App launcher** (which is the square composed by dots):

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-2.png?w=221)

Clicking it will display various options:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-3.png?w=396)

Resist the urge to click on the SharePoint option and click instead on the **Admin** option, from here you can proceed with the following section.

###### Accessing directly to admin.microsoft.com

If you want to access the Microsoft 365 admin center to reach the **SharePoint Online admin center** you will need to perform a couple of clicks in order to achieve that.

Once that you entered the Microsoft 365 admin center ([https://admin.microsoft.com/](https://admin.microsoft.com/)), on the left, you will find the navigation menu:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image.png?w=372)

Clicking on “Show all” will display more options, some of which are the available admin centers, in my case:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-1.png?w=374)

Clicking on “SharePoint” will take you to the **SharePoint Online admin center**.

#### Open the Manage apps page

From the **SharePoint Online admin center** , the navigation menu will be something like the following:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-4.png?w=389)

Click on **More features** , it will open a page where you can see more available options, the following is a partial visualization of the available options:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-5.png?w=1024)

Open the **Apps** section, that will bring you to the **Manage apps** page.

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-6.png?w=1024)

#### Deploy your solution

To deploy the SPPKG file in the **Manage apps** page you can proceed in two ways:

- Click on the **Upload button**.
- **drag and drop** the file in the table area.

Once the file is uploaded you will be greet by the following panel:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-7.png?w=714)

Where you can choose if you want to:

- Just enable the application, you will have to add the application manually to the site/s where you want to use it.
- Enable the application and add automatically to all sites. With this selection you can also choose to automatically add the application to Teams.

> NB: in the previous screenshot there is also a checkbox which reads **Add to Teams** and that is present whenever your solution is suitable to be added to Teams, if your solution does not support Teams it will not be displayed.

Once the deployment is finished you will see the following result:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-8.png?w=738)

###### Using APIs

If you’ve specified the _webApiPermissionRequests_ inside the _package-solution.json_ the panels are a bit different, in the first one you will have the required permissions listed:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-9.png?w=718)

Also, once the application has been enabled, you will be prompted to approve the API request:

![](https://iamguidozam.blog/wp-content/uploads/2024/03/image-10.png?w=727)

If you want to know more about approving the API request you can check my [previous article](https://iamguidozam.blog/2024/02/21/granting-api-permissions-requests-for-spfx/).

#### Conclusion

Publishing an SPPKG file is an easy and straightforward task, probably it’s better to bookmark the **Manage apps** , don’t you think?

Hope this helps!