Cli-microsoft365: New sample script: install and uninstall package

Created on 20 Nov 2020  路  1Comment  路  Source: pnp/cli-microsoft365

Set of sample scripts allowing developers to easily install and uninstall .sppkg packages in their tenant, used during development after running gulp package-solution.

Install script:

  • [ ] automatically detects the package to install based on the project structure (script assumes it's located in the project root)
  • [ ] adds package to the app catalog (overwrite if necessary)
  • [ ] deploys to all sites
  • [ ] approves all permissions requested by the package

Uninstall script:

  • [ ] automatically detects the package to remove based on the project structure (script assumes it's located in the project root)
  • [ ] retracts the package from the tenant
  • [ ] removes the package from app catalog
  • [ ] removes the package from recycle bin (unless removing from app catalog already gets rid of the file outside of recycle bin)
docs help wanted

Most helpful comment

@StfBauer once we have these scripts, is this something you could consider for including in the community SPFx generator to help devs work more efficiently?

>All comments

@StfBauer once we have these scripts, is this something you could consider for including in the community SPFx generator to help devs work more efficiently?

Was this page helpful?
0 / 5 - 0 ratings