Enhancement: Extend contenttype field remove & set with additional options
Open
@MathijsVerbeeck is already working on this.
Since May 6, 2026.
enhancement
keep-open
work in progress
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 413
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 21
Description
We try to align the options a bit with the other commands available within this command group. For the group contenttype field and for the commands remove & set I would suggest we add the option contentTypeName. That way contentTypeId & contentTypeName appear across all the contenttype commands.
Also, as mentioned here https://github.com/pnp/cli-microsoft365/issues/6170#issuecomment-2243508267, it'd be nice to have an internalName option for these commands. That is a more common property for fields then ID.
Options
| Option | Description |
|---|---|
--contentTypeName [contentTypeName] |
The name of the content type for which to list fields. Specify either contentTypeId or contentTypeName. |
--internalName [internalName] |
The field's internal name to which the reference should be set. Specify either id or internalName. |
Be sure to update the description for contentTypeId and id.
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.
Assessment
This issue has not been assessed yet.