spo app upgrade
Upgrades app in the specified site
Usage
m365 spo app upgrade [options]
Options
-i, --id <id>ID of the app to upgrade.
-s, --siteUrl <siteUrl>Absolute URL of the site to upgrade the app in.
--appCatalogScope [appCatalogScope]Scope of the app catalog. Allowed values:
tenant,sitecollection. Defaults totenant.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Remarks
If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| SharePoint | AllSites.FullControl |
| Resource | Permissions |
|---|---|
| SharePoint | Sites.FullControl.All |
Examples
Upgrade the app with the specified ID in the specified site.
m365 spo app upgrade --id b2307a39-e878-458b-bc90-03bc578531d6 --siteUrl https://contoso.sharepoint.com
Upgrade the app with the specified ID in the specified site from site collection app catalog.
m365 spo app upgrade --id b2307a39-e878-458b-bc90-03bc578531d6 --siteUrl https://contoso.sharepoint.com --appCatalogScope sitecollection
Response
The command won't return a response on success.
More information
- Application Lifecycle Management (ALM) APIs: https://learn.microsoft.com/sharepoint/dev/apis/alm-api-for-spfx-add-ins