@pnp/cli-microsoft365 5.4.0-beta.8724dc1 → 5.4.0-beta.a467afc

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 (99) hide show
  1. package/.devcontainer/Dockerfile +1 -1
  2. package/.eslintrc.js +1 -0
  3. package/dist/m365/aad/commands/app/app-set.js +4 -1
  4. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -19
  5. package/dist/m365/aad/commands/o365group/o365group-get.js +3 -9
  6. package/dist/m365/base/PlannerCommand.js +10 -0
  7. package/dist/m365/flow/commands/flow-export.js +3 -3
  8. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -16
  9. package/dist/m365/planner/commands/bucket/bucket-get.js +4 -18
  10. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -17
  11. package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -18
  12. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -18
  13. package/dist/m365/planner/commands/plan/plan-add.js +4 -16
  14. package/dist/m365/planner/commands/plan/plan-details-get.js +4 -19
  15. package/dist/m365/planner/commands/plan/plan-get.js +4 -17
  16. package/dist/m365/planner/commands/plan/plan-list.js +4 -17
  17. package/dist/m365/planner/commands/task/task-add.js +4 -16
  18. package/dist/m365/planner/commands/task/task-checklistitem-add.js +89 -0
  19. package/dist/m365/planner/commands/task/{task-details-get.js → task-checklistitem-list.js} +21 -13
  20. package/dist/m365/planner/commands/task/task-get.js +40 -29
  21. package/dist/m365/planner/commands/task/task-list.js +4 -16
  22. package/dist/m365/planner/commands/task/task-set.js +4 -16
  23. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +33 -0
  24. package/dist/m365/planner/commands.js +4 -1
  25. package/dist/m365/spo/commands/contenttype/contenttype-add.js +1 -1
  26. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +1 -1
  27. package/dist/m365/spo/commands/contenttype/contenttype-get.js +1 -1
  28. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -3
  29. package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +102 -0
  30. package/dist/m365/spo/commands/field/field-add.js +1 -1
  31. package/dist/m365/spo/commands/field/field-get.js +5 -5
  32. package/dist/m365/spo/commands/field/field-list.js +3 -3
  33. package/dist/m365/spo/commands/field/field-remove.js +5 -5
  34. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
  35. package/dist/m365/spo/commands/list/list-contenttype-add.js +3 -3
  36. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +2 -2
  37. package/dist/m365/spo/commands/list/list-contenttype-list.js +3 -3
  38. package/dist/m365/spo/commands/list/list-contenttype-remove.js +3 -3
  39. package/dist/m365/spo/commands/list/list-get.js +2 -2
  40. package/dist/m365/spo/commands/list/list-label-get.js +3 -3
  41. package/dist/m365/spo/commands/list/list-label-set.js +2 -2
  42. package/dist/m365/spo/commands/list/list-list.js +10 -1
  43. package/dist/m365/spo/commands/list/list-remove.js +2 -2
  44. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
  45. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
  46. package/dist/m365/spo/commands/list/list-sitescript-get.js +3 -3
  47. package/dist/m365/spo/commands/list/list-view-add.js +3 -3
  48. package/dist/m365/spo/commands/list/list-view-field-add.js +2 -2
  49. package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
  50. package/dist/m365/spo/commands/list/list-view-field-set.js +2 -2
  51. package/dist/m365/spo/commands/list/list-view-get.js +4 -4
  52. package/dist/m365/spo/commands/list/list-view-list.js +3 -3
  53. package/dist/m365/spo/commands/list/list-view-remove.js +3 -3
  54. package/dist/m365/spo/commands/list/list-view-set.js +3 -3
  55. package/dist/m365/spo/commands/list/list-webhook-add.js +3 -3
  56. package/dist/m365/spo/commands/list/list-webhook-get.js +3 -3
  57. package/dist/m365/spo/commands/list/list-webhook-list.js +5 -5
  58. package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -4
  59. package/dist/m365/spo/commands/list/list-webhook-set.js +3 -3
  60. package/dist/m365/spo/commands/listitem/listitem-add.js +2 -2
  61. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +2 -2
  62. package/dist/m365/spo/commands/listitem/listitem-get.js +2 -2
  63. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +2 -2
  64. package/dist/m365/spo/commands/listitem/listitem-list.js +31 -11
  65. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +2 -2
  66. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +2 -2
  67. package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
  68. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
  69. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
  70. package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
  71. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +82 -0
  72. package/dist/m365/spo/commands/site/site-remove.js +23 -37
  73. package/dist/m365/spo/commands.js +2 -0
  74. package/dist/m365/teams/commands/app/app-list.js +6 -20
  75. package/dist/m365/teams/commands/channel/channel-get.js +6 -19
  76. package/dist/m365/teams/commands/channel/channel-list.js +6 -18
  77. package/dist/m365/teams/commands/channel/channel-member-add.js +7 -18
  78. package/dist/m365/teams/commands/channel/channel-member-list.js +6 -19
  79. package/dist/m365/teams/commands/channel/channel-member-remove.js +6 -19
  80. package/dist/m365/teams/commands/channel/channel-member-set.js +6 -19
  81. package/dist/m365/teams/commands/tab/tab-get.js +6 -19
  82. package/dist/m365/teams/commands/team/team-add.js +2 -7
  83. package/dist/m365/teams/commands/team/team-get.js +6 -19
  84. package/dist/utils/aadGroup.js +57 -0
  85. package/dist/utils/index.js +2 -0
  86. package/dist/utils/validation.js +12 -2
  87. package/docs/docs/cmd/aad/app/app-set.md +1 -1
  88. package/docs/docs/cmd/file/file-list.md +4 -4
  89. package/docs/docs/cmd/planner/task/task-checklistitem-add.md +36 -0
  90. package/docs/docs/cmd/planner/task/task-checklistitem-list.md +24 -0
  91. package/docs/docs/cmd/planner/task/task-get.md +3 -0
  92. package/docs/docs/cmd/planner/tenant/tenant-settings-list.md +28 -0
  93. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.md +64 -0
  94. package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
  95. package/docs/docs/cmd/spo/list/list-list.md +3 -0
  96. package/docs/docs/cmd/spo/listitem/listitem-list.md +16 -10
  97. package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +36 -0
  98. package/package.json +1 -1
  99. package/docs/docs/cmd/planner/task/task-details-get.md +0 -24
@@ -14,12 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./aadGroup"), exports);
17
18
  __exportStar(require("./accessToken"), exports);
18
19
  __exportStar(require("./formatting"), exports);
19
20
  __exportStar(require("./fsUtil"), exports);
20
21
  __exportStar(require("./md"), exports);
21
22
  __exportStar(require("./odata"), exports);
22
23
  __exportStar(require("./packageManager"), exports);
24
+ __exportStar(require("./planner"), exports);
23
25
  __exportStar(require("./sinonUtil"), exports);
24
26
  __exportStar(require("./spfx"), exports);
25
27
  __exportStar(require("./spo"), exports);
@@ -37,22 +37,32 @@ exports.validation = {
37
37
  return dateTimeRegEx.test(date) ? true : dateOnlyRegEx.test(date);
38
38
  },
39
39
  isValidISODateTime(dateTime) {
40
- const withMilliSecsPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])\.[0-9]{3}Z$/);
41
- if (withMilliSecsPattern.test(dateTime)) {
40
+ // Format: 2000-01-01T00:00:00.0000000Z
41
+ const withMilliSecsLongPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])\.[0-9]{7}Z$/);
42
+ if (withMilliSecsLongPattern.test(dateTime)) {
42
43
  return true;
43
44
  }
45
+ // Format: 2000-01-01T00:00:00.000Z
46
+ const withMilliSecsShortPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])\.[0-9]{3}Z$/);
47
+ if (withMilliSecsShortPattern.test(dateTime)) {
48
+ return true;
49
+ }
50
+ // Format: 2000-01-01T00:00:00Z
44
51
  const withSecsPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])Z$/);
45
52
  if (withSecsPattern.test(dateTime)) {
46
53
  return true;
47
54
  }
55
+ // Format: 2000-01-01T00:00Z
48
56
  const withMinutesPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3]):(0[0-9]|[1-5][0-9])Z$/);
49
57
  if (withMinutesPattern.test(dateTime)) {
50
58
  return true;
51
59
  }
60
+ // Format: 2000-01-01T00Z
52
61
  const withHoursPattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))T(0[0-9]|1[0-9]|2[0-3])Z$/);
53
62
  if (withHoursPattern.test(dateTime)) {
54
63
  return true;
55
64
  }
65
+ // Format: 2000-01-01
56
66
  const withoutTimePattern = new RegExp(/^[0-9]{4}-((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|(0[469]|11)-(0[1-9]|[12][0-9]|30)|(02)-(0[1-9]|[12][0-9]))$/);
57
67
  if (withoutTimePattern.test(dateTime)) {
58
68
  return true;
@@ -20,7 +20,7 @@ m365 aad app set [options]
20
20
  : Name of the Azure AD application registration to update. Specify either `appId`, `objectId` or `name`
21
21
 
22
22
  `-u, --uri [uri]`
23
- : Application ID URI to update
23
+ : Comma-separated list of Application ID URIs to update
24
24
 
25
25
  `-r, --redirectUris [redirectUris]`
26
26
  : Comma-separated list of redirect URIs to add to the app registration. Requires `platform` to be specified
@@ -27,20 +27,20 @@ This command is an improved version of the `spo file list` command. The main dif
27
27
 
28
28
  ## Examples
29
29
 
30
- Return all files from folder _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
30
+ Return all files from the folder _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
31
31
 
32
32
  ```sh
33
- m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents'
33
+ m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents'
34
34
  ```
35
35
 
36
36
  Return all files from the folder _Shared Documents_ and all the sub-folders of _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
37
37
 
38
38
  ```sh
39
- m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents' --recursive
39
+ m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents' --recursive
40
40
  ```
41
41
 
42
42
  Return all files from the _Important_ folder in the _Shared Documents_ document library located in site _https://contoso.sharepoint.com/sites/project-x_
43
43
 
44
44
  ```sh
45
- m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents/Important'
45
+ m365 file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents/Important'
46
46
  ```
@@ -0,0 +1,36 @@
1
+ # planner task checklistitem add
2
+
3
+ Adds a new checklist item to a Planner task
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 planner task checklistitem add [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --taskId <taskId>`
14
+ : ID of the task.
15
+
16
+ `-t, --title <title>`
17
+ : Title of the checklist item.
18
+
19
+ `--isChecked`
20
+ : Mark the checklist item as checked.
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ Adds an unchecked checklist item with title _My checklist item_ to a Microsoft Planner task with ID _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
27
+
28
+ ```sh
29
+ m365 planner task checklistitem add --taskId 2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2 --title "My checklist item"
30
+ ```
31
+
32
+ Adds a checked checklist item with title _My checklist item_ to a Microsoft Planner task with ID _2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2_
33
+
34
+ ```sh
35
+ m365 planner task checklistitem add --taskId 2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2 --title "My checklist item" --isChecked
36
+ ```
@@ -0,0 +1,24 @@
1
+ # planner task checklistitem list
2
+
3
+ Lists the checklist items of a Planner task.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 planner task checklistitem list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --taskId <taskId>`
14
+ : ID of the task
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Lists the checklist items of a Planner task.
21
+
22
+ ```sh
23
+ m365 planner task checklistitem list --taskId 'vzCcZoOv-U27PwydxHB8opcADJo-'
24
+ ```
@@ -16,6 +16,9 @@ m365 planner task get [options]
16
16
  `-t, --title [title]`
17
17
  : Title of the task. Specify either `id` or `title` but not both.
18
18
 
19
+ `--taskId [taskId]`
20
+ : (deprecated. Use `id` instead) ID of the task.
21
+
19
22
  `--bucketId [bucketId]`
20
23
  : Bucket ID to which the task belongs. Specify `bucketId` or `bucketName` when using `title`.
21
24
 
@@ -0,0 +1,28 @@
1
+ # planner tenant settings list
2
+
3
+ Lists the Microsoft Planner configuration of the tenant
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 planner tenant settings list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ --8<-- "docs/cmd/_global.md"
14
+
15
+ ## Remarks
16
+
17
+ !!! important
18
+ To use this command you must be a global administrator.
19
+
20
+ 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.
21
+
22
+ ## Examples
23
+
24
+ Lists the Microsoft Planner settings of the tenant
25
+
26
+ ```sh
27
+ m365 planner tenant settings list
28
+ ```
@@ -0,0 +1,64 @@
1
+ # spo eventreceiver list
2
+
3
+ Retrieves event receivers for the specified web, site or list.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo eventreceiver list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The URL of the web for which to retrieve the event receivers.
15
+
16
+ `--listTitle [listTitle]`
17
+ : The title of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
18
+ Specify either `listTitle`, `listId` or `listUrl`.
19
+
20
+ `--listId [listId]`
21
+ : The id of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
22
+ Specify either `listTitle`, `listId` or `listUrl`.
23
+
24
+ `--listUrl [listUrl]`
25
+ : The url of the list for which to retrieve the event receivers, _if the event receivers should be retrieved from a list_.
26
+ Specify either `listTitle`, `listId` or `listUrl`.
27
+
28
+ `-s, --scope [scope]`
29
+ : The scope of which to retrieve the Event Receivers.
30
+ Can be either "site" or "web". Defaults to "web". Only applicable when not specifying any of the list properties.
31
+
32
+ --8<-- "docs/cmd/_global.md"
33
+
34
+ ## Examples
35
+
36
+ Retrieves event receivers in web _<https://contoso.sharepoint.com/sites/contoso-sales>_.
37
+
38
+ ```sh
39
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales
40
+ ```
41
+
42
+ Retrieves event receivers in site _<https://contoso.sharepoint.com/sites/contoso-sales>_.
43
+
44
+ ```sh
45
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --scope site
46
+ ```
47
+
48
+ Retrieves event receivers for list with title _Events_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_.
49
+
50
+ ```sh
51
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events
52
+ ```
53
+
54
+ Retrieves event receivers for list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_.
55
+
56
+ ```sh
57
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '202b8199-b9de-43fd-9737-7f213f51c991'
58
+ ```
59
+
60
+ Retrieves event receivers for list with url _/sites/contoso-sales/lists/Events_ in web _<https://contoso.sharepoint.com/sites/contoso-sales>_.
61
+
62
+ ```sh
63
+ m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/sites/contoso-sales/lists/Events'
64
+ ```
@@ -32,5 +32,5 @@ m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x -
32
32
  Checks out file with server-relative url _/sites/project-x/documents/Test1.docx_ located in site _https://contoso.sharepoint.com/sites/project-x_
33
33
 
34
34
  ```sh
35
- m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/documents/Test1.docx'
35
+ m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl '/sites/project-x/documents/Test1.docx'
36
36
  ```
@@ -13,6 +13,9 @@ m365 spo list list [options]
13
13
  `-u, --webUrl <webUrl>`
14
14
  : URL of the site where the lists to retrieve are located
15
15
 
16
+ `--executeWithLimitedPermissions`
17
+ : Use this option to execute this command with site member or visitor permissions. Not specifying this option will require site owner (or admin) permissions.
18
+
16
19
  --8<-- "docs/cmd/_global.md"
17
20
 
18
21
  ## Examples
@@ -13,11 +13,17 @@ m365 spo listitem list [options]
13
13
  `-u, --webUrl <webUrl>`
14
14
  : URL of the site from which the item should be retrieved
15
15
 
16
- `-i, --id [id]`
17
- : ID of the list to retrieve items from. Specify `id` or `title` but not both
16
+ `-i, --listId [listId]`
17
+ : ID of the list to retrieve items from. Specify `listId` or `listTitle` but not both
18
18
 
19
- `-t, --title [title]`
20
- : Title of the list from which to retrieve the item. Specify `id` or `title` but not both
19
+ `--id [id]`
20
+ : (deprecated. Use `listId` instead) ID of the list to retrieve items from. Specify `id` or `title` but not both
21
+
22
+ `-t, --listTitle [listTitle]`
23
+ : Title of the list to retrieve items from. Specify `listId` or `listTitle` but not both
24
+
25
+ `--title [title]`
26
+ : (deprecated. Use `listTitle` instead) Title of the list to retrieve items from. Specify `id` or `title` but not both
21
27
 
22
28
  `-q, --camlQuery [camlQuery]`
23
29
  : CAML query to use to query the list of items with
@@ -45,35 +51,35 @@ m365 spo listitem list [options]
45
51
  Get all items from a list named Demo List
46
52
 
47
53
  ```sh
48
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x
54
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x
49
55
  ```
50
56
 
51
57
  From a list named _Demo List_ get all items with title _Demo list item_ using a CAML query
52
58
 
53
59
  ```sh
54
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --camlQuery "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Demo list item</Value></Eq></Where></Query></View>"
60
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --camlQuery "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Demo list item</Value></Eq></Where></Query></View>"
55
61
  ```
56
62
 
57
63
  Get all items from a list with ID _935c13a0-cc53-4103-8b48-c1d0828eaa7f_
58
64
 
59
65
  ```sh
60
- m365 spo listitem list --id 935c13a0-cc53-4103-8b48-c1d0828eaa7f --webUrl https://contoso.sharepoint.com/sites/project-x
66
+ m365 spo listitem list --listId 935c13a0-cc53-4103-8b48-c1d0828eaa7f --webUrl https://contoso.sharepoint.com/sites/project-x
61
67
  ```
62
68
 
63
69
  Get all items from list named _Demo List_. For each item, retrieve the value of the _ID_, _Title_ and _Modified_ fields
64
70
 
65
71
  ```sh
66
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --fields "ID,Title,Modified"
72
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --fields "ID,Title,Modified"
67
73
  ```
68
74
 
69
75
  From a list named _Demo List_ get all items with title _Demo list item_ using an OData filter
70
76
 
71
77
  ```sh
72
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --filter "Title eq 'Demo list item'"
78
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --filter "Title eq 'Demo list item'"
73
79
  ```
74
80
 
75
81
  From a list named _Demo List_ get the second batch of 10 items
76
82
 
77
83
  ```sh
78
- m365 spo listitem list --title "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 10 --pageNumber 2
84
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --pageSize 10 --pageNumber 2
79
85
  ```
@@ -0,0 +1,36 @@
1
+ # spo roledefinition remove
2
+
3
+ Removes the role definition from the specified site
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo roledefinition remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site from which role should be removed
15
+
16
+ `-i, --id <id>`
17
+ : ID of the role definition to remove
18
+
19
+ `--confirm`
20
+ : Don't prompt for confirming removing the role definition
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ Remove the role definition from site _https://contoso.sharepoint.com/sites/project-x_ with id _1_
27
+
28
+ ```sh
29
+ m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1
30
+ ```
31
+
32
+ Remove the role definition from site _https://contoso.sharepoint.com/sites/project-x_ with id _1_ and don't prompt for confirmation
33
+
34
+ ```sh
35
+ m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1 --confirm
36
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.4.0-beta.8724dc1",
3
+ "version": "5.4.0-beta.a467afc",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -1,24 +0,0 @@
1
- # planner task details get
2
-
3
- Retrieve the details of the specified planner task
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 planner task details get [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-i, --taskId <taskId>`
14
- : ID of the task to retrieve details from
15
-
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Examples
19
-
20
- Retrieve the details of the specified planner task
21
-
22
- ```sh
23
- m365 planner task details get --taskId 'vzCcZoOv-U27PwydxHB8opcADJo-'
24
- ```