Skip to content

New command: download Teams app package for an SPFx solution #2934

@waldekmastykarz

Description

@waldekmastykarz

Usage

m365 spo app teamspackage download [options]

Description

Downloads Teams app package for an SPFx solution

Options

Option Description
--appItemUniqueId [appItemUniqueId] The unique ID of the SPFx app to download the Teams package for. Specify appItemUniqueId, appItemId or appName
--appItemId [appItemId] The ID of the list item behind the SPFx app to download the Teams package for. Specify appItemUniqueId, appItemId or appName
--appName [appName] The name of the SPFx app to download the Teams package for. Specify appItemUniqueId, appItemId or appName
--fileName [fileName] Name of the file to save the package to. If not specified will use the name of the SPFx package file with a .zip extension
-u, --appCatalogUrl [appCatalogUrl] URL of the tenant app catalog. If not specified, the command will try to autodiscover it

Additional Info

To download the Teams package for an SPFx package, call:

https://contoso.sharepoint.com/sites/appcatalog/_api/web/tenantappcatalog/downloadteamssolution(itemID)/$value

We could also check if this works with site collection app catalogs and if so, extend the command with -u, --appCatalogUrl [appCatalogUrl] and -s, --scope [scope] tenant|sitecollection

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions