I want to deploy SPFx package to SharePoint Online using Office 365 CLI as below.
o365 spo app add -p "SPFx.sppkg" --overwrite --appCatalogUrl "XXX/sites/site1/AppCatalog" --scope sitecollection
o365 spo app deploy --name SPFx.sppkg --appCatalogUrl "XXX/sites/site1" --scope sitecollection
afterwards, I found there are two versions are adding to the version history of the package file.
if I only run the " o365 spo app add", then only one version will be added. Please explain why the deploy CLI will add another version to the package.
2.1m questions
2.1m answers
60 comments
57.0k users