@pnp/cli-microsoft365 10.4.0-beta.47f1e4d → 10.4.0-beta.5adfc5b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/config.js +1 -1
- package/dist/m365/entra/commands/group/group-member-add.js +12 -6
- package/dist/m365/entra/commands/group/group-member-set.js +12 -6
- package/dist/m365/spo/commands/field/field-get.js +6 -3
- package/dist/m365/spo/commands/field/field-remove.js +10 -8
- package/dist/m365/spo/commands/field/field-set.js +6 -2
- package/dist/m365/spo/commands/page/clientsidepages.js +101 -9
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -1
- package/dist/m365/spo/commands/page/page-text-add.js +7 -1
- package/docs/docs/cmd/entra/group/group-member-add.mdx +17 -2
- package/docs/docs/cmd/entra/group/group-member-set.mdx +17 -2
- package/docs/docs/cmd/spo/field/field-get.mdx +12 -2
- package/docs/docs/cmd/spo/field/field-remove.mdx +12 -3
- package/docs/docs/cmd/spo/field/field-set.mdx +17 -3
- package/npm-shrinkwrap.json +568 -1139
- package/package.json +13 -13
|
@@ -26,10 +26,13 @@ m365 spo field set [options]
|
|
|
26
26
|
: Server- or site-relative URL of the list where the field is located (if list column). Specify either `listTitle`, `listId` or `listUrl`.
|
|
27
27
|
|
|
28
28
|
`-i, --id [id]`
|
|
29
|
-
: ID of the field to update. Specify either `id` or
|
|
29
|
+
: ID of the field to update. Specify either `id`, `title`, or 'internalName' but not all.
|
|
30
30
|
|
|
31
31
|
`-t, --title [title]`
|
|
32
|
-
: Title
|
|
32
|
+
: Title of the field to update. Specify either `id`, `title`, or 'internalName' but not all.
|
|
33
|
+
|
|
34
|
+
`--internalName [internalName]`
|
|
35
|
+
: Internal name of the field to update. Specify either `id`, `title`, or 'internalName' but not all.
|
|
33
36
|
|
|
34
37
|
`--updateExistingLists`
|
|
35
38
|
: Set, to push the update to existing lists. Otherwise, the changes will apply to new lists only.
|
|
@@ -51,6 +54,12 @@ When updating column formatting for a field with the `--CustomFormatter` option,
|
|
|
51
54
|
|
|
52
55
|
Update the title of the site column specified by its internal name and push changes to existing lists.
|
|
53
56
|
|
|
57
|
+
```sh
|
|
58
|
+
m365 spo field set --webUrl https://contoso.sharepoint.com/sites/project-x --internalName 'MyColumn' --updateExistingLists --Title 'My column'
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Update the title of the site column specified by its title and push changes to existing lists.
|
|
62
|
+
|
|
54
63
|
```sh
|
|
55
64
|
m365 spo field set --webUrl https://contoso.sharepoint.com/sites/project-x --title 'MyColumn' --updateExistingLists --Title 'My column'
|
|
56
65
|
```
|
|
@@ -67,11 +76,16 @@ Update the description of a column specified by the ID on a list retrieved by th
|
|
|
67
76
|
m365 spo field set --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Lists/My List' --id 330f29c5-5c4c-465f-9f4b-7903020ae1ce --Description 'My column Description'
|
|
68
77
|
```
|
|
69
78
|
|
|
70
|
-
Update column formatting of the specified list column.
|
|
79
|
+
Update column formatting of the specified list column based on title.
|
|
71
80
|
|
|
72
81
|
```sh
|
|
73
82
|
m365 spo field set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'My List' --title 'MyColumn' --CustomFormatter '{"schema":"https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", "elmType": "div", "txtContent": "@currentField"}'
|
|
74
83
|
```
|
|
84
|
+
Update column formatting of the specified list column based on internalName.
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
m365 spo field set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'My List' --internalName 'MyColumn' --CustomFormatter '{"schema":"https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", "elmType": "div", "txtContent": "@currentField"}'
|
|
88
|
+
```
|
|
75
89
|
|
|
76
90
|
## Response
|
|
77
91
|
|