Skip to content

spo app upgrade

Upgrades app in the specified site

Usage

spo app upgrade [options]

Options

Option Description
--help output usage information
-i, --id <id> ID of the app to upgrade
-s, --siteUrl <siteUrl> Absolute URL of the site to upgrade the app in
--scope [scope] Scope of the app catalog: tenant|sitecollection. Default tenant
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to a SharePoint Online site, using the spo login command.

Remarks

To upgrade an app in the site, you have to first log in to a SharePoint site using the spo login command, eg. spo login https://contoso.sharepoint.com.

If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error.

Examples

Upgrade the app with ID b2307a39-e878-458b-bc90-03bc578531d6 in the https://contoso.sharepoint.com site.

spo app upgrade --id b2307a39-e878-458b-bc90-03bc578531d6 --siteUrl https://contoso.sharepoint.com

Upgrade the app with ID b2307a39-e878-458b-bc90-03bc578531d6 in the https://contoso.sharepoint.com site from site collection app catalog.

spo app upgrade --id b2307a39-e878-458b-bc90-03bc578531d6 --siteUrl https://contoso.sharepoint.com --scope sitecollection

More information