@pnp/cli-microsoft365 5.9.0-beta.60e454b → 5.9.0-beta.6d50b23

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 (59) hide show
  1. package/dist/Command.js +16 -2
  2. package/dist/m365/aad/commands/app/app-add.js +37 -13
  3. package/dist/m365/commands/status.js +6 -1
  4. package/dist/m365/outlook/commands/mail/mail-send.js +54 -30
  5. package/dist/m365/pp/commands/card/card-get.js +110 -0
  6. package/dist/m365/pp/commands/gateway/gateway-get.js +70 -0
  7. package/dist/m365/pp/commands/solution/solution-get.js +117 -0
  8. package/dist/m365/pp/commands.js +3 -0
  9. package/dist/m365/spfx/commands/project/project-doctor.js +4 -1
  10. package/dist/m365/spfx/commands/project/project-externalize.js +4 -1
  11. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +2 -1
  12. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +2 -1
  13. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +2 -1
  14. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +2 -1
  15. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +2 -1
  16. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +3 -2
  17. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +2 -1
  18. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +2 -1
  19. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +56 -0
  20. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +56 -0
  21. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.16.0-beta.1.js → upgrade-1.16.0-beta.2.js} +44 -28
  22. package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
  23. package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
  24. package/dist/m365/spo/commands/contenttype/contenttype-add.js +82 -43
  25. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +53 -21
  26. package/dist/m365/spo/commands/contenttype/contenttype-get.js +35 -14
  27. package/dist/m365/spo/commands/list/list-roleassignment-add.js +1 -1
  28. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +14 -6
  29. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +15 -7
  30. package/dist/m365/spo/commands/list/list-webhook-get.js +2 -3
  31. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +239 -0
  32. package/dist/m365/spo/commands.js +1 -0
  33. package/dist/m365/todo/commands/task/task-add.js +55 -3
  34. package/docs/docs/_clisettings.md +19 -0
  35. package/docs/docs/cmd/outlook/mail/mail-send.md +13 -0
  36. package/docs/docs/cmd/planner/bucket/bucket-add.md +29 -0
  37. package/docs/docs/cmd/planner/bucket/bucket-get.md +29 -0
  38. package/docs/docs/cmd/planner/bucket/bucket-list.md +30 -0
  39. package/docs/docs/cmd/planner/bucket/bucket-remove.md +4 -0
  40. package/docs/docs/cmd/planner/bucket/bucket-set.md +4 -0
  41. package/docs/docs/cmd/planner/plan/plan-add.md +123 -0
  42. package/docs/docs/cmd/planner/plan/plan-get.md +75 -0
  43. package/docs/docs/cmd/planner/plan/plan-list.md +45 -0
  44. package/docs/docs/cmd/planner/plan/plan-remove.md +4 -0
  45. package/docs/docs/cmd/pp/card/card-get.md +51 -0
  46. package/docs/docs/cmd/pp/gateway/gateway-get.md +24 -0
  47. package/docs/docs/cmd/pp/solution/solution-get.md +51 -0
  48. package/docs/docs/cmd/spfx/project/project-rename.md +1 -14
  49. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  50. package/docs/docs/cmd/spo/contenttype/contenttype-add.md +20 -2
  51. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +22 -4
  52. package/docs/docs/cmd/spo/contenttype/contenttype-get.md +21 -3
  53. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +11 -8
  54. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +14 -5
  55. package/docs/docs/cmd/spo/list/list-webhook-get.md +2 -2
  56. package/docs/docs/cmd/spo/list/list-webhook-set.md +3 -3
  57. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.md +81 -0
  58. package/docs/docs/cmd/todo/task/task-add.md +32 -5
  59. package/package.json +11 -6
@@ -16,20 +16,7 @@ m365 spfx project rename [options]
16
16
  `--generateNewId`
17
17
  : Generate a new solution ID for the project
18
18
 
19
- `-h, --help`
20
- : output usage information
21
-
22
- `--query [query]`
23
- : JMESPath query string. See [http://jmespath.org/](http://jmespath.org/) for more information and examples
24
-
25
- `-o, --output [output]`
26
- : Output type. `json,text,csv,md`. Default `json`
27
-
28
- `--verbose`
29
- : Runs command with verbose logging
30
-
31
- `--debug`
32
- : Runs command with debug logging
19
+ --8<-- "docs/cmd/_global.md"
33
20
 
34
21
  !!! important
35
22
  Run this command in the folder where the project that you want to rename is located.
@@ -32,7 +32,7 @@ m365 spfx project upgrade [options]
32
32
 
33
33
  ## Remarks
34
34
 
35
- The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.16.0-beta.1).
35
+ The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.16.0-beta.2).
36
36
 
37
37
  This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
38
38
 
@@ -14,7 +14,13 @@ m365 spo contenttype add [options]
14
14
  : Absolute URL of the site where the content type should be created
15
15
 
16
16
  `-l, --listTitle [listTitle]`
17
- : Title of the list where the content type should be created (if it should be created as a list content type)
17
+ : Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
+
19
+ `--listId [listId]`
20
+ : ID of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
24
 
19
25
  `-i, --id <id>`
20
26
  : The ID of the content type. Determines the parent content type
@@ -44,12 +50,24 @@ Create a site content type that inherits from the List item content type
44
50
  m365 spo contenttype add --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D --group 'PnP Content Types'
45
51
  ```
46
52
 
47
- Create a list content type that inherits from the List item content type
53
+ Create a list (retrieved by Title) content type that inherits from the List item content type
48
54
 
49
55
  ```sh
50
56
  m365 spo contenttype add --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Alerts --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D
51
57
  ```
52
58
 
59
+ Create a list (retrieved by ID) content type that inherits from the List item content type
60
+
61
+ ```sh
62
+ m365 spo contenttype add --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c' --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D
63
+ ```
64
+
65
+ Create a list (retrieved by URL) content type that inherits from the List item content type
66
+
67
+ ```sh
68
+ m365 spo contenttype add --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/Shared Documents' --name 'PnP Alert' --id 0x01007926A45D687BA842B947286090B8F67D
69
+ ```
70
+
53
71
  ## More information
54
72
 
55
73
  - Content Type IDs: [https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v%3Doffice.14)](https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v%3Doffice.14))
@@ -14,7 +14,13 @@ m365 spo contenttype field remove [options]
14
14
  : Absolute URL of the site where the content type is located
15
15
 
16
16
  `-l, --listTitle [listTitle]`
17
- : Title of the list where the content type is located (if it is a list content type)
17
+ : Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
+
19
+ `--listId [listId]`
20
+ : ID of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
24
 
19
25
  `-i, --contentTypeId <contentTypeId>`
20
26
  : The ID of the content type to remove the column from
@@ -32,20 +38,32 @@ m365 spo contenttype field remove [options]
32
38
 
33
39
  ## Examples
34
40
 
35
- Remove column with ID _2c1ba4c4-cd9b-4417-832f-92a34bc34b2a_ from content type with ID _0x0100CA0FA0F5DAEF784494B9C6020C3020A6_ from web with URL _https://contoso.sharepoint.com_
41
+ Remove column with a specific ID from a content type with a specific ID from a specific site.
36
42
 
37
43
  ```sh
38
44
  m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --confirm
39
45
  ```
40
46
 
41
- Remove column with ID _2c1ba4c4-cd9b-4417-832f-92a34bc34b2a_ from content type with ID _0x0100CA0FA0F5DAEF784494B9C6020C3020A6_ from web with URL _https://contoso.sharepoint.com_ updating child content types
47
+ Remove column with a specific ID from a content type with a specific ID from a specific site and updating the child content types
42
48
 
43
49
  ```sh
44
50
  m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --updateChildContentTypes
45
51
  ```
46
52
 
47
- Remove fieldLink with ID _2c1ba4c4-cd9b-4417-832f-92a34bc34b2a_ from list content type with ID _0x0100CA0FA0F5DAEF784494B9C6020C3020A6_ from web with URL _https://contoso.sharepoint.com_
53
+ Remove fieldLink with a specific ID from a list (obtained by Title) content type with a specific ID on a spefici site.
48
54
 
49
55
  ```sh
50
56
  m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listTitle "Documents"
51
57
  ```
58
+
59
+ Remove fieldLink with a specific ID from a list (obtained by ID) content type with a specific ID on a spefici site.
60
+
61
+ ```sh
62
+ m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listId "8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c"
63
+ ```
64
+
65
+ Remove fieldLink with a specific ID from a list (obtained by URL) content type with a specific ID on a spefici site.
66
+
67
+ ```sh
68
+ m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listUrl "/shared documents"
69
+ ```
@@ -14,7 +14,13 @@ m365 spo contenttype get [options]
14
14
  : Absolute URL of the site where the content type is located
15
15
 
16
16
  `-l, --listTitle [listTitle]`
17
- : Title of the list where the content type is located (if it is a list content type)
17
+ : Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
+
19
+ `--listId [listId]`
20
+ : ID of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
24
 
19
25
  `-i, --id [id]`
20
26
  : The ID of the content type to retrieve. Specify either id or name but not both
@@ -39,11 +45,23 @@ m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-s
39
45
  Retrieve site content type by name
40
46
 
41
47
  ```sh
42
- m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name "Document"
48
+ m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'Document'
43
49
  ```
44
50
 
45
- Retrieve list content type
51
+ Retrieve list (retrieved by Title) content type
46
52
 
47
53
  ```sh
48
54
  m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events --id 0x0100558D85B7216F6A489A499DB361E1AE2F
49
55
  ```
56
+
57
+ Retrieve list (retrieved by ID) content type
58
+
59
+ ```sh
60
+ m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c' --id 0x0100558D85B7216F6A489A499DB361E1AE2F
61
+ ```
62
+
63
+ Retrieve list (retrieved by URL) content type
64
+
65
+ ```sh
66
+ m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/Shared Documents' --id 0x0100558D85B7216F6A489A499DB361E1AE2F
67
+ ```
@@ -11,13 +11,16 @@ m365 spo list roleinheritance break [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list to retrieve is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-i, --listId [listId]`
17
- : ID of the list to retrieve information for. Specify either id or title but not both
17
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list to retrieve information for. Specify either id or title but not both
20
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
24
 
22
25
  `-c, --clearExistingPermissions`
23
26
  : Flag if used clears all roles from the list
@@ -30,26 +33,26 @@ By default, when breaking permissions inheritance, the list will retain existing
30
33
 
31
34
  ## Examples
32
35
 
33
- Break inheritance of list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_
36
+ Break inheritance of list by title in a specific site
34
37
 
35
38
  ```sh
36
39
  m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList"
37
40
  ```
38
41
 
39
- Break inheritance of list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_
42
+ Break inheritance of list by id in a specific site
40
43
 
41
44
  ```sh
42
45
  m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991"
43
46
  ```
44
47
 
45
- Break inheritance of list _someList_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
48
+ Break inheritance of list by title located in a specific site and clearing the existing permissions
46
49
 
47
50
  ```sh
48
51
  m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --clearExistingPermissions
49
52
  ```
50
53
 
51
- Break inheritance of list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions
54
+ Break inheritance of list by url in a specific site and clearing the existing permissions
52
55
 
53
56
  ```sh
54
- m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991" --clearExistingPermissions
57
+ m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listUrl '/sites/project-x/lists/events' --clearExistingPermissions
55
58
  ```
@@ -11,26 +11,35 @@ m365 spo list roleinheritance reset [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the list is located
14
+ : URL of the site where the list is located.
15
15
 
16
16
  `-i, --listId [listId]`
17
- : ID of the list. Specify either id or title but not both
17
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
18
18
 
19
19
  `-t, --listTitle [listTitle]`
20
- : Title of the list. Specify either id or title but not both
20
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
21
24
 
22
25
  --8<-- "docs/cmd/_global.md"
23
26
 
24
27
  ## Examples
25
28
 
26
- Restore role inheritance of list with ID _0cd891ef-afce-4e55-b836-fce03286cccf_ located in site _https://contoso.sharepoint.com/sites/project-x_
29
+ Restores role inheritance of a specific list by id in a specific site
27
30
 
28
31
  ```sh
29
32
  m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
30
33
  ```
31
34
 
32
- Restore role inheritance of list with title _test_ located in site _https://contoso.sharepoint.com/sites/project-x_
35
+ Restores role inheritance of a specific list by title in a specific site
33
36
 
34
37
  ```sh
35
38
  m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test
36
39
  ```
40
+
41
+ Restores role inheritance of a specific list by url in a specific site
42
+
43
+ ```sh
44
+ m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/lists/events'
45
+ ```
@@ -22,10 +22,10 @@ m365 spo list webhook get [options]
22
22
  `--listUrl [listUrl]`
23
23
  : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
24
24
 
25
- `-i, --id [id]`
25
+ `-i, --id <id>`
26
26
  : ID of the webhook.
27
27
 
28
- --8<-- "docs/cmd/_global.md"
28
+ --8<-- "docs/cmd/\_global.md"
29
29
 
30
30
  ## Remarks
31
31
 
@@ -22,16 +22,16 @@ m365 spo list webhook set [options]
22
22
  `--listUrl [listUrl]`
23
23
  : Server- or site-relative URL of the list. Specify either `listId`, `listTitle` or `listUrl`.
24
24
 
25
- `-i, --id [id]`
25
+ `-i, --id <id>`
26
26
  : ID of the webhook to update.
27
27
 
28
28
  `-n, --notificationUrl [notificationUrl]`
29
29
  : The new notification url.
30
30
 
31
31
  `-e, --expirationDateTime [expirationDateTime]`
32
- : The new expiration date.
32
+ : The new expiration date. _Note: Expiration Time cannot be more than 6 months in future_
33
33
 
34
- --8<-- "docs/cmd/_global.md"
34
+ --8<-- "docs/cmd/\_global.md"
35
35
 
36
36
  ## Remarks
37
37
 
@@ -0,0 +1,81 @@
1
+ # spo listitem roleassignment add
2
+
3
+ Adds a role assignment to a listitem.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem roleassignment add [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the listitem is located
15
+
16
+ `--listId [listId]`
17
+ : ID of the list. Specify either listId, listTitle or listUrl but not multiple.
18
+
19
+ `--listTitle [listTitle]`
20
+ : Title of the list. Specify either listId, listTitle or listUrl but not multiple.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Relative URL of the list. Specify either listId, listTitle or listUrl but not multiple.
24
+
25
+ `--listItemId <listItemId>`
26
+ : Id of the listitem to assign the role to.
27
+
28
+ `--principalId [principalId]`
29
+ : The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either upn, groupName or principalId.
30
+
31
+ `--upn [upn]`
32
+ : upn/email of user to assign role to. Specify either upn, groupName or principalId.
33
+
34
+ `--groupName [groupName]`
35
+ : The group name of Azure AD or SharePoint group. Specify either upn, groupName or principalId.
36
+
37
+ `--roleDefinitionId [roleDefinitionId]`
38
+ : ID of role definition. Specify either roleDefinitionId or roleDefinitionName but not both
39
+
40
+ `--roleDefinitionName [roleDefinitionName]`
41
+ : Enter the name of a role definition, like 'Contribute', 'Read', etc. Specify either roleDefinitionId or roleDefinitionName but not both
42
+
43
+ --8<-- "docs/cmd/_global.md"
44
+
45
+ ## Examples
46
+
47
+ Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
48
+
49
+ ```sh
50
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
51
+ ```
52
+
53
+ Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
54
+
55
+ ```sh
56
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "0CD891EF-AFCE-4E55-B836-FCE03286CCCF" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
57
+ ```
58
+
59
+ Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition id.
60
+
61
+ ```sh
62
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listUrl "sites/documents" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
63
+ ```
64
+
65
+ Add role assignment to specified listitem in specified list located in specified site for specified upn and specified role definition id.
66
+
67
+ ```sh
68
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --upn "someaccount@tenant.onmicrosoft.com" --roleDefinitionId 1073741829
69
+ ```
70
+
71
+ Add role assignment to specified listitem in specified list located in specified site for specified group and specified role definition id.
72
+
73
+ ```sh
74
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --groupName "someGroup" --roleDefinitionId 1073741829
75
+ ```
76
+
77
+ Add role assignment to specified listitem in specified list located in specified site for specified principal id and specified role definition name.
78
+
79
+ ```sh
80
+ m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --principalId 11 --roleDefinitionName "Full Control"
81
+ ```
@@ -11,26 +11,53 @@ m365 todo task add [options]
11
11
  ## Options
12
12
 
13
13
  `-t, --title <title>`
14
- : The title of the task
14
+ : The title of the task.
15
15
 
16
16
  `--listName [listName]`
17
- : The name of the list in which to create the task. Specify either `listName` or `listId` but not both
17
+ : The name of the list in which to create the task. Specify either `listName` or `listId` but not both.
18
18
 
19
19
  `--listId [listId]`
20
- : The id of the list in which to create the task. Specify either `listName` or `listId` but not both
20
+ : The id of the list in which to create the task. Specify either `listName` or `listId` but not both.
21
+
22
+ `--bodyContent [bodyContent]`
23
+ : The body content of the task. In the UI this is called 'notes'.
24
+
25
+ `--bodyContentType [bodyContentType]`
26
+ : The type of the body content. Possible values are `text` and `html`. Default is `text`.
27
+
28
+ `--dueDateTime [dueDateTime]`
29
+ : The date when the task is due. This should be defined as a valid ISO 8601 string in the UTC time zone. Only date value is needed, time value is always ignored.
30
+
31
+ `--importance [importance]`
32
+ : The importance of the task. Possible values are: `low`, `normal`, `high`. Default is `normal`.
33
+
34
+ `--reminderDateTime [reminderDateTime]`
35
+ : The date and time for a reminder alert of the task to occur. This should be defined as a valid ISO 8601 string in the UTC time zone.
21
36
 
22
37
  --8<-- "docs/cmd/_global.md"
23
38
 
24
39
  ## Examples
25
40
 
26
- Add a task with title _New task_ to Microsoft To Do tasks list with the name _My task list_
41
+ Add a task to Microsoft To Do tasks list with with a specific name
27
42
 
28
43
  ```sh
29
44
  m365 todo task add --title "New task" --listName "My task list"
30
45
  ```
31
46
 
32
- Add a task with title _New task_ to Microsoft To Do tasks list with the id `AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==`
47
+ Add a task to a Microsoft To Do tasks list with a specific id
33
48
 
34
49
  ```sh
35
50
  m365 todo task add --title "New task" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA=="
36
51
  ```
52
+
53
+ Create a new task with bodyContent and reminder and flag it as important
54
+
55
+ ```sh
56
+ m365 todo task add --title "New task" --listName "My task list" --bodyContent "I should not forget this" --reminderDateTime 2023-01-01T12:00:00Z --importance high
57
+ ```
58
+
59
+ Create a new task with a specific due date
60
+
61
+ ```sh
62
+ m365 todo task add --title "New task" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==" --dueDateTime 2023-01-01
63
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.9.0-beta.60e454b",
3
+ "version": "5.9.0-beta.6d50b23",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -101,7 +101,7 @@
101
101
  "contributors": [
102
102
  "Abhishek K M <67158080+Sync271@users.noreply.github.com>",
103
103
  "Ågren, Simon <simon.agren@sogeti.com>",
104
- "Akash Karda <akashkarda@gmail.com>",
104
+ "Ahlawat, Priyanshu <priyanshuahlawat009@gmail.com>",
105
105
  "Albany, Bruce <bruce.albany@gmail.com>",
106
106
  "Auckloo, Reshmee <reshmee011@gmail.com>",
107
107
  "Balasubramaniam, Jayakumar <jayakumar@live.in>",
@@ -116,13 +116,13 @@
116
116
  "Calabro, David <davej.calabro@gmail.com>",
117
117
  "Choudhary, Karnail Singh <pradhankarnail@gmail.com>",
118
118
  "Connell, Andrew <me@andrewconnell.com>",
119
- "Conor O'Callaghan <brioscaibriste@gmail.com>",
119
+ "De Cleyre, Nico <nico.de.cleyre@gmail.com>",
120
120
  "Deshpande, Vardhaman <vardhaman.rd@gmail.com>",
121
121
  "Dyjas, Robert <15113729+robdy@users.noreply.github.com>",
122
122
  "Faleel, Mohamed Ashiq <ashiqf@gmail.com>",
123
+ "Flores, Gaston <gaston.flrs@gmail.com>",
123
124
  "Ford, Lee <fordyman@gmail.com>",
124
125
  "Freese, Luise <49960482+LuiseFreese@users.noreply.github.com>",
125
- "Gaston Flores <gaston.flrs@gmail.com>",
126
126
  "Georgiev, Velin <velin.georgiev@gmail.com>",
127
127
  "Ghuge, Pramod <pramod7@gmail.com>",
128
128
  "Gölles, Thomas <thomy@outlook.at>",
@@ -130,13 +130,12 @@
130
130
  "Harding, Phil <pil.harding@platinumdogs.co.uk>",
131
131
  "Hawrylak, Paweł <phawrylak@outlook.com>",
132
132
  "Holemans, Milan <Milan.Holemans@vanroey.be>",
133
- "Hüseyin Saatçi <huseyins@comodo.net>",
134
133
  "Honen, Nicholas <nickhonen@gmail.com>",
135
134
  "Högberg, Joakim <joakim.hogberg@bravero.se>",
136
135
  "Hvam, Allan <ahp@delegate.dk>",
137
136
  "Jaakke, Robert <robert.jaakke@mavention.nl>",
138
- "John Rafael <dragonwood0@protonmail.com>",
139
137
  "Kailasam, Balamurugan <kshsbala@engineer.com>",
138
+ "Karda, Akash <akashkarda@gmail.com>",
140
139
  "Kasireddy, Prasad <prasad.gietcse@gmail.com>",
141
140
  "Keijzers, Paul <KbWorks@users.noreply.github.com>",
142
141
  "Kelkar, Vipul <vipul.kelkar@outlook.com>",
@@ -158,7 +157,9 @@
158
157
  "Mücklisch, Steve <steve.muecklisch@gmail.com>",
159
158
  "Nachan, Nanddeep <nanddeepnachan@gmail.com>",
160
159
  "Nachan, Smita <smita.nachan@gmail.com>",
160
+ "Nadir, Daniaal <daniaal1030@gmail.com>",
161
161
  "Nikolić, Aleksandar <alexandair@live.com>",
162
+ "O'Callaghan, Conor <brioscaibriste@gmail.com>",
162
163
  "Otto <berot3@gmail.com>",
163
164
  "Pandey, Vividh <vividh.pandey.13@gmail.com>",
164
165
  "Patil, Atharva <atharvapatil19202@gmail.com>",
@@ -166,13 +167,16 @@
166
167
  "Powney, Mark <powney.mark@outlook.com>",
167
168
  "pramod74 <pramod.lumb@gmail.com>",
168
169
  "Priem, Mark <mark.priem@outlook.com>",
170
+ "Rafael, John <dragonwood0@protonmail.com>",
169
171
  "Raju, Arnie <arnie.raju@thesolutioncollective.com.au>",
170
172
  "Ramalho, David <dramalho@storm.ie>",
171
173
  "Rathi, Tanmay <tanmay_rathi@intuit.com>",
172
174
  "Reekmans, Yannick <reekmans.yannick@gmail.com>",
175
+ "Raghwendra Rishabh <rishabhraghwendra2002@gmail.com>",
173
176
  "Romano, Rodrigo <rodrigo@rodrigoromano.net>",
174
177
  "Romão, Douglas <douglas.romao@trentim.com>",
175
178
  "Rozinov, Roman <roman.rozinov@sogeti.com>",
179
+ "Saatçi, Hüseyin <huseyins@comodo.net>",
176
180
  "Schaeflein, Paul <paul@schaeflein.net>",
177
181
  "Schot, Albert-Jan <appie@digiwijs.nl>",
178
182
  "Schouten, Robert <robert.schouten@wortell.nl>",
@@ -185,6 +189,7 @@
185
189
  "Sitaraman, Rajesh <rajesh.sitaraman@outlook.com>",
186
190
  "Sittler, Laurent <laurent.sittler@lsonline.fr>",
187
191
  "Skelly, Pete <peteskelly@gmail.com>",
192
+ "Solazzi, Riccardo <rick.zal239@gmail.com>",
188
193
  "Sotelo, Aaron <soteloaaron16@gmail.com>",
189
194
  "strafe <strafe@users.noreply.github.com>",
190
195
  "Struyf, Elio <info@estruyf.be>",