Add-PnPField needs -AddToAllContentTypes parameter
Reporting an Issue or Missing Feature
When adding a column to a List or Library using the browser, one has an option to add the column to all of the Content Types in the List or Library. When adding a column to a List or Library using PnP PowerShell, this option is missing.

Expected behavior
If a parameter (e.g. -AddToAllContentTypes) specifies that the column should be added to all List Content Types, then the column should indeed be added to all List Content Types.
Actual behavior
No such parameter exists and the column is only added to the List's Default Content Type.
Steps to reproduce behavior
- Create a List or Library
- Allow Content Types
- Add two or more Content Types to the List or Library
- Add a new column to the List or Library using the Add-PnPField cmdlet
Add-PnPField -List $list -DisplayName $columnName -InternalName $columnInternalName -AddToDefaultView -Type $columnType | Out-Null - Notice that the new column is only added to the Default Content Type
Which version of the PnP-PowerShell Cmdlets are you using?
- [ ] PnP PowerShell for SharePoint 2013
- [ ] PnP PowerShell for SharePoint 2016
- [X] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
3.18.2002.0
How did you install the PnP-PowerShell Cmdlets?
- [ ] MSI Installed downloaded from GitHub
- [X] Installed through the PowerShell Gallery with Install-Module
- [ ] Other means
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I opened a pull request to PnP-Sites-Core and another to PnP-PowerShell to implement -AddToAllContentTypes
The PR has been merged and now you can use -AddToAllContentTypes parameter with Add-PnPField