@pnp/cli-microsoft365 10.9.0 → 10.10.0-beta.1bb5ba0

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.
Files changed (84) hide show
  1. package/.devproxy/api-specs/sharepoint-admin.yaml +67 -0
  2. package/.devproxy/api-specs/sharepoint.yaml +230 -0
  3. package/.devproxy/devproxyrc.json +48 -0
  4. package/.devproxy/generate-openapi-spec.json +24 -0
  5. package/.devproxy/spo-csom-types.json +54 -0
  6. package/.eslintrc.cjs +8 -0
  7. package/allCommands.json +1 -1
  8. package/allCommandsFull.json +1 -1
  9. package/dist/cli/cli.js +2 -2
  10. package/dist/m365/app/commands/permission/permission-add.js +8 -1
  11. package/dist/m365/base/SpoCommand.js +1 -0
  12. package/dist/m365/entra/commands/app/app-permission-add.js +5 -18
  13. package/dist/m365/entra/commands/organization/organization-set.js +104 -0
  14. package/dist/m365/entra/commands.js +1 -0
  15. package/dist/m365/file/commands/file-copy.js +2 -2
  16. package/dist/m365/file/commands/file-move.js +1 -1
  17. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +0 -3
  18. package/dist/m365/spo/commands/contenttype/contenttype-add.js +3 -65
  19. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +5 -50
  20. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +4 -48
  21. package/dist/m365/spo/commands/contenttype/contenttype-set.js +8 -58
  22. package/dist/m365/spo/commands/contenttype/contenttype-sync.js +2 -2
  23. package/dist/m365/spo/commands/folder/folder-sharinglink-add.js +1 -1
  24. package/dist/m365/spo/commands/folder/folder-sharinglink-clear.js +1 -1
  25. package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +1 -1
  26. package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +1 -1
  27. package/dist/m365/spo/commands/folder/folder-sharinglink-remove.js +1 -1
  28. package/dist/m365/spo/commands/folder/folder-sharinglink-set.js +1 -1
  29. package/dist/m365/spo/commands/list/list-view-add.js +140 -87
  30. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +3 -27
  31. package/dist/m365/spo/commands/page/Page.js +16 -1
  32. package/dist/m365/spo/commands/page/clientsidepages.js +4 -0
  33. package/dist/m365/spo/commands/page/page-add.js +1 -1
  34. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -8
  35. package/dist/m365/spo/commands/page/page-control-remove.js +99 -0
  36. package/dist/m365/spo/commands/page/page-control-set.js +1 -1
  37. package/dist/m365/spo/commands/page/page-header-set.js +9 -40
  38. package/dist/m365/spo/commands/page/page-publish.js +2 -10
  39. package/dist/m365/spo/commands/page/page-section-add.js +75 -21
  40. package/dist/m365/spo/commands/page/page-set.js +1 -1
  41. package/dist/m365/spo/commands/site/site-admin-add.js +1 -12
  42. package/dist/m365/spo/commands/site/site-set.js +2 -2
  43. package/dist/m365/spo/commands.js +1 -0
  44. package/dist/utils/entraServicePrincipal.js +21 -0
  45. package/dist/utils/md.js +3 -3
  46. package/dist/utils/spo.js +87 -3
  47. package/docs/docs/cmd/_global.mdx +1 -1
  48. package/docs/docs/cmd/entra/organization/organization-set.mdx +84 -0
  49. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +19 -0
  50. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +19 -0
  51. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +19 -0
  52. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +21 -0
  53. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +21 -0
  54. package/docs/docs/cmd/planner/plan/plan-add.mdx +19 -0
  55. package/docs/docs/cmd/planner/plan/plan-get.mdx +19 -0
  56. package/docs/docs/cmd/planner/plan/plan-list.mdx +19 -0
  57. package/docs/docs/cmd/planner/plan/plan-remove.mdx +21 -0
  58. package/docs/docs/cmd/planner/plan/plan-set.mdx +19 -0
  59. package/docs/docs/cmd/planner/roster/roster-add.mdx +19 -0
  60. package/docs/docs/cmd/planner/roster/roster-get.mdx +19 -0
  61. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +19 -0
  62. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +19 -0
  63. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +19 -0
  64. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +21 -0
  65. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +19 -0
  66. package/docs/docs/cmd/planner/roster/roster-remove.mdx +21 -0
  67. package/docs/docs/cmd/planner/task/task-add.mdx +19 -0
  68. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +19 -0
  69. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +19 -0
  70. package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +21 -0
  71. package/docs/docs/cmd/planner/task/task-get.mdx +27 -0
  72. package/docs/docs/cmd/planner/task/task-list.mdx +19 -0
  73. package/docs/docs/cmd/planner/task/task-reference-add.mdx +19 -0
  74. package/docs/docs/cmd/planner/task/task-reference-list.mdx +19 -0
  75. package/docs/docs/cmd/planner/task/task-reference-remove.mdx +21 -0
  76. package/docs/docs/cmd/planner/task/task-remove.mdx +21 -0
  77. package/docs/docs/cmd/planner/task/task-set.mdx +19 -0
  78. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +44 -7
  79. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +43 -8
  80. package/docs/docs/cmd/spo/list/list-view-add.mdx +53 -10
  81. package/docs/docs/cmd/spo/page/page-control-remove.mdx +56 -0
  82. package/docs/docs/cmd/spo/page/page-section-add.mdx +22 -2
  83. package/npm-shrinkwrap.json +2324 -536
  84. package/package.json +17 -14
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # planner task remove
4
6
 
@@ -54,6 +56,25 @@ When using `rosterId`, the command is based on an API that is currently in previ
54
56
 
55
57
  :::
56
58
 
59
+ ## Permissions
60
+
61
+ <Tabs>
62
+ <TabItem value="Delegated">
63
+
64
+ | Resource | Permissions |
65
+ |-----------------|---------------------------------------|
66
+ | Microsoft Graph | Tasks.ReadWrite, GroupMember.Read.All |
67
+
68
+ </TabItem>
69
+ <TabItem value="Application">
70
+
71
+ | Resource | Permissions |
72
+ |-----------------|-------------------------------------------|
73
+ | Microsoft Graph | Tasks.ReadWrite.All, GroupMember.Read.All |
74
+
75
+ </TabItem>
76
+ </Tabs>
77
+
57
78
  ## Examples
58
79
 
59
80
  Removes the Microsoft Planner task by ID.
@@ -100,6 +100,25 @@ When using `rosterId`, the command is based on an API that is currently in previ
100
100
 
101
101
  :::
102
102
 
103
+ ## Permissions
104
+
105
+ <Tabs>
106
+ <TabItem value="Delegated">
107
+
108
+ | Resource | Permissions |
109
+ |-----------------|--------------------------------------------------|
110
+ | Microsoft Graph | Tasks.ReadWrite, GroupMember.Read.All, User.Read |
111
+
112
+ </TabItem>
113
+ <TabItem value="Application">
114
+
115
+ | Resource | Permissions |
116
+ |-----------------|----------------------------------------------------------|
117
+ | Microsoft Graph | Tasks.ReadWrite.All, GroupMember.Read.All, User.Read.All |
118
+
119
+ </TabItem>
120
+ </Tabs>
121
+
103
122
  ## Examples
104
123
 
105
124
  Updates a Microsoft Planner task name of the specified task by ID.
@@ -18,13 +18,30 @@ m365 planner tenant settings list [options]
18
18
 
19
19
  ## Remarks
20
20
 
21
- :::info
21
+ After executing the command `planner tenant settings set`, it can take some time for all changes to propagate across the tenant. Because of this, executing this command right away can return some unexpected results.
22
22
 
23
- To use this command you must be a global administrator.
23
+ ## Permissions
24
24
 
25
- :::
25
+ <Tabs>
26
+ <TabItem value="Delegated">
26
27
 
27
- After executing the command `planner tenant settings set`, it can take some time for all changes to propagate across the tenant. Because of this, executing this command right away can return some unexpected results.
28
+ | Resource | Permissions |
29
+ |-----------------|-------------|
30
+ | Microsoft Graph | email |
31
+
32
+ :::info
33
+
34
+ To use this command you must be a **global administrator**.
35
+
36
+ :::
37
+
38
+ </TabItem>
39
+ <TabItem value="Application">
40
+
41
+ This command does not support application permissions.
42
+
43
+ </TabItem>
44
+ </Tabs>
28
45
 
29
46
  ## Examples
30
47
 
@@ -47,7 +64,17 @@ m365 planner tenant settings list
47
64
  "allowTenantMoveWithDataLoss": false,
48
65
  "allowTenantMoveWithDataMigration": false,
49
66
  "allowRosterCreation": true,
50
- "allowPlannerMobilePushNotifications": true
67
+ "allowPlannerMobilePushNotifications": true,
68
+ "allowFileRecommendations": true,
69
+ "enforceClientLicenseCheck": false,
70
+ "allowDataFlowToDataverse": true,
71
+ "allowPlannerCopilot": true,
72
+ "disallowedSharedWithContainerTypes": [
73
+ {
74
+ "hostContainerType": "group",
75
+ "sharedWithContainerType": "roster"
76
+ }
77
+ ]
51
78
  }
52
79
  ```
53
80
 
@@ -56,10 +83,16 @@ m365 planner tenant settings list
56
83
 
57
84
  ```txt
58
85
  allowCalendarSharing : true
86
+ allowDataFlowToDataverse : true
87
+ allowFileRecommendations : true
88
+ allowPlannerCopilot : true
59
89
  allowPlannerMobilePushNotifications: true
60
90
  allowRosterCreation : true
61
91
  allowTenantMoveWithDataLoss : false
62
92
  allowTenantMoveWithDataMigration : false
93
+ disallowedSharedWithContainerTypes : [{"hostContainerType":"group","sharedWithContainerType":"roster"}]
94
+ enforceClientLicenseCheck : false
95
+ id : 1
63
96
  isPlannerAllowed : true
64
97
  ```
65
98
 
@@ -67,8 +100,8 @@ m365 planner tenant settings list
67
100
  <TabItem value="CSV">
68
101
 
69
102
  ```csv
70
- isPlannerAllowed,allowCalendarSharing,allowTenantMoveWithDataLoss,allowTenantMoveWithDataMigration,allowRosterCreation,allowPlannerMobilePushNotifications
71
- 1,1,,,1,1
103
+ id,isPlannerAllowed,allowCalendarSharing,allowTenantMoveWithDataLoss,allowTenantMoveWithDataMigration,allowRosterCreation,allowPlannerMobilePushNotifications,allowFileRecommendations,enforceClientLicenseCheck,allowDataFlowToDataverse,allowPlannerCopilot
104
+ 1,1,1,0,0,1,1,1,0,1,1
72
105
  ```
73
106
 
74
107
  </TabItem>
@@ -90,6 +123,10 @@ m365 planner tenant settings list
90
123
  allowTenantMoveWithDataMigration | false
91
124
  allowRosterCreation | true
92
125
  allowPlannerMobilePushNotifications | true
126
+ allowFileRecommendations | true
127
+ enforceClientLicenseCheck | false
128
+ allowDataFlowToDataverse | true
129
+ allowPlannerCopilot | true
93
130
  ```
94
131
 
95
132
  </TabItem>
@@ -36,13 +36,28 @@ m365 planner tenant settings set [options]
36
36
 
37
37
  <Global />
38
38
 
39
- ## Remarks
39
+ ## Permissions
40
40
 
41
- :::info
41
+ <Tabs>
42
+ <TabItem value="Delegated">
43
+
44
+ | Resource | Permissions |
45
+ |-----------------|-------------|
46
+ | Microsoft Graph | email |
47
+
48
+ :::info
42
49
 
43
- To use this command you must be a global administrator.
50
+ To use this command you must be a **global administrator**.
44
51
 
45
- :::
52
+ :::
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ This command does not support application permissions.
58
+
59
+ </TabItem>
60
+ </Tabs>
46
61
 
47
62
  ## Examples
48
63
 
@@ -77,7 +92,17 @@ m365 planner tenant settings set --isPlannerAllowed true --allowRosterCreation f
77
92
  "allowTenantMoveWithDataLoss": false,
78
93
  "allowTenantMoveWithDataMigration": false,
79
94
  "allowRosterCreation": true,
80
- "allowPlannerMobilePushNotifications": true
95
+ "allowPlannerMobilePushNotifications": true,
96
+ "allowFileRecommendations": true,
97
+ "enforceClientLicenseCheck": false,
98
+ "allowDataFlowToDataverse": true,
99
+ "allowPlannerCopilot": true,
100
+ "disallowedSharedWithContainerTypes": [
101
+ {
102
+ "hostContainerType": "group",
103
+ "sharedWithContainerType": "roster"
104
+ }
105
+ ]
81
106
  }
82
107
  ```
83
108
 
@@ -86,10 +111,16 @@ m365 planner tenant settings set --isPlannerAllowed true --allowRosterCreation f
86
111
 
87
112
  ```txt
88
113
  allowCalendarSharing : true
114
+ allowDataFlowToDataverse : true
115
+ allowFileRecommendations : true
116
+ allowPlannerCopilot : true
89
117
  allowPlannerMobilePushNotifications: true
90
118
  allowRosterCreation : true
91
119
  allowTenantMoveWithDataLoss : false
92
120
  allowTenantMoveWithDataMigration : false
121
+ disallowedSharedWithContainerTypes : [{"hostContainerType":"group","sharedWithContainerType":"roster"}]
122
+ enforceClientLicenseCheck : false
123
+ id : 1
93
124
  isPlannerAllowed : true
94
125
  ```
95
126
 
@@ -97,15 +128,15 @@ m365 planner tenant settings set --isPlannerAllowed true --allowRosterCreation f
97
128
  <TabItem value="CSV">
98
129
 
99
130
  ```csv
100
- isPlannerAllowed,allowCalendarSharing,allowTenantMoveWithDataLoss,allowTenantMoveWithDataMigration,allowRosterCreation,allowPlannerMobilePushNotifications
101
- 1,1,,,1,1
131
+ id,isPlannerAllowed,allowCalendarSharing,allowTenantMoveWithDataLoss,allowTenantMoveWithDataMigration,allowRosterCreation,allowPlannerMobilePushNotifications,allowFileRecommendations,enforceClientLicenseCheck,allowDataFlowToDataverse,allowPlannerCopilot
132
+ 1,1,1,0,0,1,1,1,0,1,1
102
133
  ```
103
134
 
104
135
  </TabItem>
105
136
  <TabItem value="Markdown">
106
137
 
107
138
  ```md
108
- # planner tenant settings list
139
+ # planner tenant settings set --isPlannerAllowed true
109
140
 
110
141
  Date: 4/2/2023
111
142
 
@@ -120,6 +151,10 @@ m365 planner tenant settings set --isPlannerAllowed true --allowRosterCreation f
120
151
  allowTenantMoveWithDataMigration | false
121
152
  allowRosterCreation | true
122
153
  allowPlannerMobilePushNotifications | true
154
+ allowFileRecommendations | true
155
+ enforceClientLicenseCheck | false
156
+ allowDataFlowToDataverse | true
157
+ allowPlannerCopilot | true
123
158
  ```
124
159
 
125
160
  </TabItem>
@@ -30,12 +30,33 @@ m365 spo list view add [options]
30
30
  `--title <title>`
31
31
  : Title of the view to be created for the list.
32
32
 
33
- `--fields <fields>`
34
- : Comma-separated list of **case-sensitive** internal names of the fields to add to the view.
33
+ `--type [type]`
34
+ : Type of the view. Possible values are: `list`, `calendar`, `gallery`, `kanban`. Defaults to `list`.
35
+
36
+ `--fields [fields]`
37
+ : Comma-separated list of **case-sensitive** internal names of the fields to add to the view. Optional when `type` is set to `calendar`.
35
38
 
36
39
  `--viewQuery [viewQuery]`
37
40
  : XML representation of the list query for the underlying view.
38
41
 
42
+ `--calendarStartDateField [calendarStartDateField]`
43
+ : Internal name of the field that contains the start date of the calendar event. Required when `type` is set to `calendar`.
44
+
45
+ `--calendarEndDateField [calendarEndDateField]`
46
+ : Internal name of the field that contains the end date of the calendar event. Required when `type` is set to `calendar`.
47
+
48
+ `--calendarTitleField [calendarTitleField]`
49
+ : Internal name of the field that contains the title of the calendar event. Required when `type` is set to `calendar`.
50
+
51
+ `--calendarSubTitleField [calendarSubTitleField]`
52
+ : Internal name of the field that contains the subtitle of the calendar event.
53
+
54
+ `--calendarDefaultLayout [calendarDefaultLayout]`
55
+ : Default layout of the calendar view. Possible values are: `month`, `week`, `workWeek`, `day`. Defaults to `month`.
56
+
57
+ `--kanbanBucketField [kanbanBucketField]`
58
+ : Internal name of the field that contains the bucket for the Kanban board view. Required when `type` is set to `kanban`.
59
+
39
60
  `--personal`
40
61
  : View will be created as personal view, if specified.
41
62
 
@@ -53,32 +74,54 @@ m365 spo list view add [options]
53
74
 
54
75
  ## Remarks
55
76
 
77
+ :::tip
78
+
56
79
  We recommend using the `paged` option. When specified, the view supports displaying more items page by page (default behavior). When not specified, the `rowLimit` is absolute, and there is no link to see more items.
57
80
 
81
+ :::
82
+
58
83
  ## Examples
59
84
 
60
- Add a view called _All events_ to a list with specific title.
85
+ Add a list view called to a list with specific title.
86
+
87
+ ```sh
88
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "All customers" --fields "LinkTitle,Country,Sector,Country,Address,Contact" --paged
89
+ ```
90
+
91
+ Add a gallery view as default view to a list with a specific URL.
92
+
93
+ ```sh
94
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listUrl "/Lists/Customers" --title "All customers" --type gallery --fields "LinkTitle,Country,Sector,Country,Address,Contact" --paged --default
95
+ ```
96
+
97
+ Add a view with defined filter and sorting.
98
+
99
+ ```sh
100
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "Transport customers" --fields "LinkTitle,Country,Country,Address,Contact" --viewQuery "<OrderBy><FieldRef Name='LinkTitle' Ascending='TRUE' /></OrderBy><Where><Eq><FieldRef Name='Sector' /><Value Type='Text'>Transportation</Value></Eq></Where>" --paged
101
+ ```
102
+
103
+ Add a gallery view as personal view.
61
104
 
62
105
  ```sh
63
- m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Test" --title "All events" --fields "FieldName1,FieldName2,Created,Author,Modified,Editor" --paged
106
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "All customers" --type gallery --fields "LinkTitle,Country,Sector,Country,Address,Contact" --paged --personal
64
107
  ```
65
108
 
66
- Add a view as default view with title _All events_ to a list with a specific URL.
109
+ Add a calendar view with month layout.
67
110
 
68
111
  ```sh
69
- m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/Lists/MyList" --title "All events" --fields "FieldName1,Created" --paged --default
112
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Events" --title "All events" --type calendar --fields "EventType,InternalExternal" --calendarStartDateField EventStartDate --calendarEndDateField EventEndDate --calendarTitleField LinkTitle --paged
70
113
  ```
71
114
 
72
- Add a personal view called _All events_ to a list with a specific ID.
115
+ Add a calendar view with week layout and subtitle.
73
116
 
74
117
  ```sh
75
- m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listId 00000000-0000-0000-0000-000000000000 --title "All events" --fields "FieldName1,Created" --paged --personal
118
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Events" --title "All events" --type calendar --fields "EventType,InternalExternal" --calendarStartDateField EventStartDate --calendarEndDateField EventEndDate --calendarTitleField LinkTitle --calendarSubTitleField Location --calendarDefaultLayout week --paged
76
119
  ```
77
120
 
78
- Add a view called _All events_ with defined filter and sorting.
121
+ Add a Kanban board view.
79
122
 
80
123
  ```sh
81
- m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Test" --title "All events" --fields "FieldName1" --viewQuery "<OrderBy><FieldRef Name='Created' Ascending='FALSE' /></OrderBy><Where><Eq><FieldRef Name='TextFieldName' /><Value Type='Text'>Field value</Value></Eq></Where>" --paged
124
+ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Tasks" --title "All tasks" --type kanban --fields "Title,AssignedTo" --kanbanBucketField Status --paged
82
125
  ```
83
126
 
84
127
  ## Response
@@ -0,0 +1,56 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # spo page control remove
4
+
5
+ Removes a control from a modern page
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 spo page control remove [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-u, --webUrl <webUrl>`
17
+ : URL of the site where the page is located.
18
+
19
+ `-n, --pageName <pageName>`
20
+ : Name of the page where the control is located.
21
+
22
+ `-i, --id <id>`
23
+ : The ID of the control to be removed.
24
+
25
+ `--draft`
26
+ : Save the page as draft instead of republishing it.
27
+
28
+ `-f, --force`
29
+ : Don't prompt for confirmation.
30
+ ```
31
+
32
+ <Global />
33
+
34
+ ## Examples
35
+
36
+ Remove a control from a SharePoint page, with confirmation
37
+
38
+ ```sh
39
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName home.aspx --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1
40
+ ```
41
+
42
+ Remove a control from a SharePoint page and don't republish the page
43
+
44
+ ```sh
45
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName "home.aspx" --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1 --draft
46
+ ```
47
+
48
+ Remove a control from a SharePoint page, that is located in a folder
49
+
50
+ ```sh
51
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName "Archive/home.aspx" --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1
52
+ ```
53
+
54
+ ## Response
55
+
56
+ The command won't return a response on success.
@@ -20,7 +20,7 @@ m365 spo page section add [options]
20
20
  : URL of the site where the page to retrieve is located.
21
21
 
22
22
  `-t, --sectionTemplate <sectionTemplate>`
23
- : Type of section to add. Allowed values `OneColumn`, `OneColumnFullWidth`, `TwoColumn`, `ThreeColumn`, `TwoColumnLeft`, `TwoColumnRight`, `Vertical`.
23
+ : Type of section to add. Allowed values `OneColumn`, `OneColumnFullWidth`, `TwoColumn`, `ThreeColumn`, `TwoColumnLeft`, `TwoColumnRight`, `Vertical`, `Flexible`.
24
24
 
25
25
  `--order [order]`
26
26
  : Order of the section to add.
@@ -43,6 +43,9 @@ m365 spo page section add [options]
43
43
  `--isExpanded`
44
44
  : Sets the default display state of the collapsible section. Sets `false` if not specified.
45
45
 
46
+ `--headingLevel [headingLevel]`
47
+ : Heading level of collapsible section Allowed values `2`, `3`, `4`.
48
+
46
49
  `--gradientText [gradientText]`
47
50
  : Sets the gradient setting of the background of a section. Required when `zoneEmphasis` is `Gradient`.
48
51
 
@@ -68,7 +71,13 @@ m365 spo page section add [options]
68
71
  : The overlay opacity for the background. Applied only when `zoneEmphasis` is `Image` or `Gradient`. Sets `60` value if not specified.
69
72
 
70
73
  `--collapsibleTitle [collapsibleTitle]`
71
- : The display name of the collapsible section
74
+ : The display name of the collapsible section.
75
+
76
+ `--zoneReflowStrategy [zoneReflowStrategy]`
77
+ : Mobile and email reflow. Allowed values `TopToBottom`, `LeftToRight`. Applied only for `Flexible` section.
78
+
79
+ `--zoneHeight [zoneHeight]`
80
+ : Section height. Minimum value is `34`. Applied only for `Flexible` section.
72
81
  ```
73
82
 
74
83
  <Global />
@@ -115,6 +124,12 @@ Add OneColumn section as a collapsible section as expanded with icon aligned to
115
124
  m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --isExpanded --iconAlignment Left
116
125
  ```
117
126
 
127
+ Add OneColumn section as a collapsible section as expanded with headingLevel 3
128
+
129
+ ```sh
130
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --isExpanded --headingLevel 3
131
+ ```
132
+
118
133
  Add TwoColumn section with Image background
119
134
 
120
135
  ```sh
@@ -127,6 +142,11 @@ Add OneColumn section with Gradient background
127
142
  m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate TwoColumn --zoneEmphasis Gradient --gradientText "linear-gradient(72.44deg, #E6FBFE 0%, #EDDDFB 100%)"
128
143
  ```
129
144
 
145
+ Add a Flexible section to the modern page with mobile and email reflow and section height.
146
+
147
+ ```sh
148
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate Flexible --zoneHeight 100 --zoneReflowStrategy LeftToRight
149
+ ```
130
150
 
131
151
  ## Response
132
152