@pnp/cli-microsoft365 7.0.0-beta.14c7857 → 7.0.0-beta.18ce559

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 (33) hide show
  1. package/dist/Command.js +2 -2
  2. package/dist/cli/Cli.js +1 -1
  3. package/dist/m365/aad/commands/m365group/m365group-conversation-list.js +5 -0
  4. package/dist/m365/aad/commands/m365group/m365group-conversation-post-list.js +4 -0
  5. package/dist/m365/aad/commands/m365group/m365group-get.js +4 -3
  6. package/dist/m365/aad/commands/m365group/m365group-remove.js +5 -0
  7. package/dist/m365/aad/commands/m365group/m365group-renew.js +5 -0
  8. package/dist/m365/aad/commands/m365group/m365group-set.js +5 -0
  9. package/dist/m365/aad/commands/m365group/m365group-teamify.js +11 -6
  10. package/dist/m365/aad/commands/m365group/m365group-user-add.js +5 -0
  11. package/dist/m365/aad/commands/m365group/m365group-user-list.js +5 -0
  12. package/dist/m365/aad/commands/m365group/m365group-user-remove.js +5 -0
  13. package/dist/m365/aad/commands/m365group/m365group-user-set.js +5 -0
  14. package/dist/m365/flow/commands/flow-export.js +13 -13
  15. package/dist/m365/pa/commands/connector/connector-export.js +5 -5
  16. package/dist/m365/pp/commands/chatbot/chatbot-list.js +2 -2
  17. package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +127 -0
  18. package/dist/m365/spo/commands/listitem/listitem-attachment-get.js +97 -0
  19. package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +121 -0
  20. package/dist/m365/spo/commands/listitem/listitem-attachment-set.js +115 -0
  21. package/dist/m365/spo/commands/user/user-get.js +10 -10
  22. package/dist/m365/spo/commands.js +4 -0
  23. package/dist/utils/aadGroup.js +16 -0
  24. package/docs/docs/_clisettings.mdx +1 -1
  25. package/docs/docs/cmd/flow/flow-export.mdx +11 -11
  26. package/docs/docs/cmd/pa/connector/connector-export.mdx +3 -3
  27. package/docs/docs/cmd/pp/chatbot/chatbot-list.mdx +4 -4
  28. package/docs/docs/cmd/spo/listitem/listitem-attachment-add.mdx +110 -0
  29. package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +104 -0
  30. package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +58 -0
  31. package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +58 -0
  32. package/docs/docs/cmd/spo/user/user-get.mdx +8 -8
  33. package/package.json +1 -1
@@ -0,0 +1,110 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo listitem attachment add
6
+
7
+ Adds an attachment to a list item
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo listitem attachment add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : URL of the site where the list item is located.
20
+
21
+ `--listId [listId]`
22
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
23
+
24
+ `--listTitle [listTitle]`
25
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
26
+
27
+ `--listUrl [listUrl]`
28
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
29
+
30
+ `--listItemId <listItemId>`
31
+ : The ID of the list item.
32
+
33
+ `-p, --filePath <filePath>`
34
+ : Local path to the file that will be added as an attachment to the list item.
35
+
36
+ `-n, --fileName [fileName]`
37
+ : Name for the file. If no name is provided, the name from `filePath` will be utilized.
38
+ ```
39
+
40
+ <Global />
41
+
42
+ ## Examples
43
+
44
+ Add a new attachment to a list item from a local file by using list title
45
+
46
+ ```sh
47
+ m365 spo listitem attachment add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "DemoList" --listItemId 147 --filePath "C:/Reports/File1.jpg"
48
+ ```
49
+
50
+ Add a new attachment to a list item from a local file by using list URL with a different filename
51
+
52
+ ```sh
53
+ m365 spo listitem attachment add --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/sites/project-x/Lists/DemoList" --listItemId 147 --filePath "C:/Reports/File1.jpg" --fileName "File2"
54
+ ```
55
+
56
+ ## Response
57
+
58
+ <Tabs>
59
+ <TabItem value="JSON">
60
+
61
+ ```json
62
+ [
63
+ {
64
+ "FileName": "File1.jpg",
65
+ "FileNameAsPath": {
66
+ "DecodedUrl": "File1.jpg"
67
+ },
68
+ "ServerRelativePath": {
69
+ "DecodedUrl": "/Lists/DemoList/Attachments/147/File1.jpg"
70
+ },
71
+ "ServerRelativeUrl": "/Lists/Test/Attachments/147/File1.jpg"
72
+ }
73
+ ]
74
+ ```
75
+
76
+ </TabItem>
77
+ <TabItem value="Text">
78
+
79
+ ```text
80
+ FileName : File1.jpg
81
+ FileNameAsPath : {"DecodedUrl":"File1jpg"}
82
+ ServerRelativePath: {"DecodedUrl":"/Lists/DemoList/Attachments/743/File1.jpg"}
83
+ ServerRelativeUrl : /Lists/DemoList/Attachments/147/File1.jpg
84
+ ```
85
+
86
+ </TabItem>
87
+ <TabItem value="CSV">
88
+
89
+ ```csv
90
+ FileName,ServerRelativeUrl
91
+ File1.jpg,/Lists/DemoList/Attachments/147/File1.jpg
92
+ ```
93
+
94
+ </TabItem>
95
+ <TabItem value="Markdown">
96
+
97
+ ```md
98
+ # spo listitem attachment add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "DemoList" --listItemId 147 --filePath "C:/Reports/File1.jpg"
99
+
100
+ Date: 25/07/2023
101
+
102
+ Property | Value
103
+ ---------|-------
104
+ FileName | File1.jpg
105
+ ServerRelativeUrl | /Lists/DemoList/Attachments/147/File1.jpg
106
+ ```
107
+
108
+ </TabItem>
109
+ </Tabs>
110
+
@@ -0,0 +1,104 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo listitem attachment get
6
+
7
+ Gets an attachment from a list item
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo listitem attachment get [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : URL of the site where the list item is located.
20
+
21
+ `--listId [listId]`
22
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
23
+
24
+ `--listTitle [listTitle]`
25
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
26
+
27
+ `--listUrl [listUrl]`
28
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
29
+
30
+ `--listItemId <listItemId>`
31
+ : The ID of the list item.
32
+
33
+ `-n, --fileName <fileName>`
34
+ : Name of the file to get.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Examples
40
+
41
+ Get an attachment from a list item by using list title.
42
+
43
+ ```sh
44
+ m365 spo listitem attachment get --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List" --listItemId 147 --fileName "File1.jpg"
45
+ ```
46
+
47
+ Get an attachment from a list item by using list URL.
48
+
49
+ ```sh
50
+ m365 spo listitem attachment get --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/sites/project-x/Lists/DemoList" --listItemId 147 --fileName "File1.jpg"
51
+ ```
52
+
53
+ ## Response
54
+
55
+ <Tabs>
56
+ <TabItem value="JSON">
57
+
58
+ ```json
59
+ {
60
+ "FileName": "File1.jpg",
61
+ "FileNameAsPath": {
62
+ "DecodedUrl": "File1.jpg"
63
+ },
64
+ "ServerRelativePath": {
65
+ "DecodedUrl": "/sites/project-x/Lists/DemoListAttachments/147/File1.jpg"
66
+ },
67
+ "ServerRelativeUrl": "/sites/project-x/Lists/DemoListAttachments/147/File1.jpg"
68
+ }
69
+ ```
70
+
71
+ </TabItem>
72
+ <TabItem value="Text">
73
+
74
+ ```text
75
+ FileName : File1.jpg
76
+ FileNameAsPath : {"DecodedUrl":"File1.jpg"}
77
+ ServerRelativePath: {"DecodedUrl":"/sites/project-x/Lists/DemoListAttachments/147/File1.jpg"}
78
+ ServerRelativeUrl : /sites/project-x/Lists/DemoListAttachments/147/File1.jpg
79
+ ```
80
+
81
+ </TabItem>
82
+ <TabItem value="CSV">
83
+
84
+ ```csv
85
+ FileName,ServerRelativeUrl
86
+ File1.jpg,/sites/project-x/Lists/DemoListAttachments/147/File1.jpg
87
+ ```
88
+
89
+ </TabItem>
90
+ <TabItem value="Markdown">
91
+
92
+ ```md
93
+ # spo listitem attachment get --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "PnP PowerShell List" --listItemId "1" --fileName "File1.jpg"
94
+
95
+ Date: 7/20/2023
96
+
97
+ Property | Value
98
+ ---------|-------
99
+ FileName | File1.jpg
100
+ ServerRelativeUrl | /sites/project-x/Lists/DemoListAttachments/147/File1.jpg
101
+ ```
102
+
103
+ </TabItem>
104
+ </Tabs>
@@ -0,0 +1,58 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo listitem attachment remove
6
+
7
+ Removes an attachment from a list item
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo listitem attachment remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : URL of the site where the list item is located.
20
+
21
+ `--listId [listId]`
22
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
23
+
24
+ `--listTitle [listTitle]`
25
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
26
+
27
+ `--listUrl [listUrl]`
28
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
29
+
30
+ `--listItemId <listItemId>`
31
+ : The ID of the list item.
32
+
33
+ `-n, --fileName <fileName>`
34
+ : Name of the file to remove.
35
+
36
+ `-f, --force`
37
+ : Don't prompt for confirmation.
38
+ ```
39
+
40
+ <Global />
41
+
42
+ ## Examples
43
+
44
+ Remove an attachment from a list item using list tile.
45
+
46
+ ```sh
47
+ m365 spo listitem attachment remove --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List" --listItemId 147 --fileName "File1.jpg"
48
+ ```
49
+
50
+ Remove an attachment from a list item using list URL.
51
+
52
+ ```sh
53
+ m365 spo listitem attachment remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/sites/project-x/Lists/DemoList" --listItemId 147 --fileName "File1.jpg"
54
+ ```
55
+
56
+ ## Response
57
+
58
+ The command won't return a response on success.
@@ -0,0 +1,58 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo listitem attachment set
6
+
7
+ Updates an attachment from a list item
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo listitem attachment set [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : URL of the site where the list item is located.
20
+
21
+ `--listId [listId]`
22
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
23
+
24
+ `--listTitle [listTitle]`
25
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
26
+
27
+ `--listUrl [listUrl]`
28
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
29
+
30
+ `--listItemId <listItemId>`
31
+ : The ID of the list item.
32
+
33
+ `-p, --filePath <filePath>`
34
+ : Local path used for updating the attachment contents.
35
+
36
+ `-n, --fileName <fileName>`
37
+ : Name of the file to update.
38
+ ```
39
+
40
+ <Global />
41
+
42
+ ## Examples
43
+
44
+ Update an attachment from a list item by using list title
45
+
46
+ ```sh
47
+ m365 spo listitem attachment set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List" --listItemId 147 --fileName "File1.jpg" --filePath "C:/Reports/File2.jpg"
48
+ ```
49
+
50
+ Update an attachment from a list item by using list URL
51
+
52
+ ```sh
53
+ m365 spo listitem attachment set --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/sites/project-x/Lists/DemoList" --listItemId 147 --fileName "File1.jpg" --filePath "C:/Reports/File2.jpg"
54
+ ```
55
+
56
+ ## Response
57
+
58
+ The command won't return a response on success.
@@ -19,13 +19,13 @@ m365 spo user get [options]
19
19
  : URL of the web to get the user within
20
20
 
21
21
  `-i, --id [id]`
22
- : ID of the user to retrieve information for. Use either `email`, `id` or `userName`, but not all.
22
+ : ID of the user to retrieve information for. Use either `email`, `id` or `loginName`, but not all.
23
23
 
24
24
  `--email [email]`
25
- : Email of the user to retrieve information for. Use either `email`, `id` or `userName`, but not all.
25
+ : Email of the user to retrieve information for. Use either `email`, `id` or `loginName`, but not all.
26
26
 
27
- `--userName [userName]`
28
- : Login name of the user to retrieve information for. Use either `email`, `id` or `userName`, but not all.
27
+ `--loginName [loginName]`
28
+ : Login name of the user to retrieve information for. Use either `email`, `id` or `loginName`, but not all.
29
29
  ```
30
30
 
31
31
  <Global />
@@ -38,16 +38,16 @@ Get user by email for a web
38
38
  m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --email john.doe@mytenant.onmicrosoft.com
39
39
  ```
40
40
 
41
- Get user with ID _6_ for a web
41
+ Get user by ID for a web
42
42
 
43
43
  ```sh
44
44
  m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --id 6
45
45
  ```
46
46
 
47
- Get user with login name 'i:0#.f|membership|john.doe@mytenant.onmicrosoft.com' for a web
47
+ Get user by login name for a web
48
48
 
49
49
  ```sh
50
- m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --userName "i:0#.f|membership|john.doe@mytenant.onmicrosoft.com"
50
+ m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --loginName "i:0#.f|membership|john.doe@mytenant.onmicrosoft.com"
51
51
  ```
52
52
 
53
53
  ## Response
@@ -105,7 +105,7 @@ m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --user
105
105
  <TabItem value="Markdown">
106
106
 
107
107
  ```md
108
- # spo user get --webUrl "https://contoso.sharepoint.com" --userName "i:0#.f|membership|john.doe@contoso.onmicrosoft.com"
108
+ # spo user get --webUrl "https://contoso.sharepoint.com" --loginName "i:0#.f|membership|john.doe@contoso.onmicrosoft.com"
109
109
 
110
110
  Date: 4/10/2023
111
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "7.0.0-beta.14c7857",
3
+ "version": "7.0.0-beta.18ce559",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",