[FEATURE] - Add-PnPApp/Publish-PnPApp - add parameters to add/remove to 'all sites' and/or 'all teams'
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 904
- Forks
- 407
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 10
Description
Is your feature request related to a problem? Please describe.
At the moment it seems not possible to enable/disable Apps in the Tenant App Catalog for usage in All Sites or All Teams, by means of a PnP cmdlet
Describe the solution you'd like
I would like the options in the screenshot below to have corresponding cmdlet options (especially when adding/publishing apps to a catalog)
For instance:
- add the parameters
AddToAllSitesandAddToAllTeamsto theAdd-PnPAppandPublish-PnPAppcmdlets - These parameters should support setting
:$falseand:$true, so we can enable and disable these options just like in the UI (both on Adding the App AND on Republishing an existing App)
Describe alternatives you've considered
I could do this manually, but this would require documenting what has been done. I prefer the script based approach and Documentation-as-Code.
Additional context

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Add-PnPApp and Publish-PnPApp cmdlet implementations and inspect how existing app-catalog options are passed through. Determine how boolean AddToAllSites and AddToAllTeams values must behave for adding and republishing, then verify both enabling and disabling paths with the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100