Skip to content

New sample script: install and uninstall package #1961

@waldekmastykarz

Description

@waldekmastykarz

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions