@pnp/cli-microsoft365 6.5.0-beta.f8b8018 → 6.6.0-beta.f3b4299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -0
- package/dist/Command.js +17 -7
- package/dist/cli/Cli.js +15 -11
- package/dist/m365/cli/commands/config/config-set.js +1 -0
- package/dist/m365/commands/request.js +18 -1
- package/dist/m365/pa/commands/app/app-export.js +197 -0
- package/dist/m365/pa/commands.js +1 -0
- package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +79 -0
- package/dist/m365/purview/commands.js +2 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.0.js +23 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.17.0-rc.1.js → upgrade-1.17.0.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/file/file-move.js +1 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +22 -1
- package/dist/m365/spo/commands/listitem/listitem-get.js +21 -6
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +35 -1
- package/dist/m365/spo/commands/web/web-set.js +33 -13
- package/dist/settingsNames.js +2 -1
- package/docs/docs/_clisettings.md +1 -0
- package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
- package/docs/docs/cmd/pa/app/app-export.md +52 -0
- package/docs/docs/cmd/purview/threatassessment/threatassessment-get.md +191 -0
- package/docs/docs/cmd/request.md +10 -4
- package/docs/docs/cmd/spfx/project/project-upgrade.md +2 -2
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.md +12 -1
- package/docs/docs/cmd/spo/listitem/listitem-get.md +14 -5
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.md +15 -2
- package/npm-shrinkwrap.json +460 -273
- package/package.json +11 -11
|
@@ -13,17 +13,20 @@ m365 spo listitem get [options]
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
14
|
: URL of the site where the item is located.
|
|
15
15
|
|
|
16
|
-
`-i, --id
|
|
17
|
-
: ID of the item to retrieve.
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: ID of the item to retrieve. Specify either `id` or `uniqueId` but not both.
|
|
18
|
+
|
|
19
|
+
`--uniqueId [uniqueId]`
|
|
20
|
+
: The Unique ID (GUID) of the item to retrieve. Specify either `id` or `uniqueId` but not both.
|
|
18
21
|
|
|
19
22
|
`-l, --listId [listId]`
|
|
20
|
-
: ID of the list. Specify either `listTitle`, `listId
|
|
23
|
+
: ID of the list. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
21
24
|
|
|
22
25
|
`-t, --listTitle [listTitle]`
|
|
23
|
-
: Title of the list. Specify either `listTitle`, `listId
|
|
26
|
+
: Title of the list. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
24
27
|
|
|
25
28
|
`--listUrl [listUrl]`
|
|
26
|
-
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId
|
|
29
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
27
30
|
|
|
28
31
|
`-p, --properties [properties]`
|
|
29
32
|
: Comma-separated list of properties to retrieve. Will retrieve all properties if not specified and json output is requested.
|
|
@@ -45,6 +48,12 @@ Get an item with the ID parameter from a given list in a given site.
|
|
|
45
48
|
m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
46
49
|
```
|
|
47
50
|
|
|
51
|
+
Get an item with the Unique ID parameter from a given list in a given site.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
m365 spo listitem get --listTitle "Demo List" --uniqueId "64dc28c4-3c43-45f6-ba66-307d9eb7e6aa" --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
55
|
+
```
|
|
56
|
+
|
|
48
57
|
Get an item columns with the ID parameter from a given list in a given site.
|
|
49
58
|
|
|
50
59
|
```sh
|
|
@@ -31,11 +31,18 @@ m365 spo listitem retentionlabel ensure [options]
|
|
|
31
31
|
`-i, --id [id]`
|
|
32
32
|
: The id of the retention label. Specify either `name` or `id`.
|
|
33
33
|
|
|
34
|
+
`-a, --assetId [assetId]`
|
|
35
|
+
: A Compliance Asset Id to set on the item when it's labeled. See below for more information.
|
|
36
|
+
|
|
34
37
|
--8<-- "docs/cmd/_global.md"
|
|
35
38
|
|
|
39
|
+
## Remarks
|
|
40
|
+
|
|
41
|
+
The `--assetId` option has to do with event-based retention. Event-based retention is about starting a retention period when a specific event occurs, instead of the moment a document was labeled or created.
|
|
42
|
+
|
|
36
43
|
## Examples
|
|
37
44
|
|
|
38
|
-
Applies
|
|
45
|
+
Applies a retention label to a list item in a given site based on the list id and label name
|
|
39
46
|
|
|
40
47
|
```sh
|
|
41
48
|
m365 spo listitem retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --listItemId 1 --name 'Some label'
|
|
@@ -47,12 +54,18 @@ Applies a retention label to a list item in a given site based on the list title
|
|
|
47
54
|
m365 spo listitem retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --listItemId 1 --id '7a621a91-063b-461b-aff6-d713d5fb23eb'
|
|
48
55
|
```
|
|
49
56
|
|
|
50
|
-
Applies
|
|
57
|
+
Applies a retention label to a list item in a given site based on the server relative list url
|
|
51
58
|
|
|
52
59
|
```sh
|
|
53
60
|
m365 spo listitem retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --listItemId 1 --name 'Some label'
|
|
54
61
|
```
|
|
55
62
|
|
|
63
|
+
Applies a retention label to a list item in a given site based on the server relative list url and updates the Asset Id field
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
m365 spo listitem retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --listItemId 1 --name 'Some label' --assetId 'XYZ'
|
|
67
|
+
```
|
|
68
|
+
|
|
56
69
|
## Response
|
|
57
70
|
|
|
58
71
|
The command won't return a response on success.
|