@pnp/cli-microsoft365 10.8.0-beta.a51d886 → 10.8.0
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.cjs +2 -1
- package/README.md +3 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/cli/cli.js +1 -1
- package/dist/config.js +1 -0
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +54 -67
- package/dist/m365/app/commands/app-get.js +5 -2
- package/dist/m365/app/commands/app-open.js +9 -22
- package/dist/m365/app/commands/permission/permission-add.js +18 -30
- package/dist/m365/app/commands/permission/permission-list.js +5 -2
- package/dist/m365/base/AppCommand.js +9 -25
- package/dist/m365/booking/commands/business/business-get.js +18 -25
- package/dist/m365/cli/commands/app/app-reconsent.js +103 -0
- package/dist/m365/cli/commands.js +1 -0
- package/dist/m365/context/commands/context-remove.js +12 -25
- package/dist/m365/context/commands/option/option-remove.js +11 -25
- package/dist/m365/entra/commands/organization/organization-list.js +51 -0
- package/dist/m365/entra/commands.js +1 -0
- package/dist/m365/graph/commands/directoryextension/directoryextension-list.js +74 -0
- package/dist/m365/graph/commands/openextension/openextension-set.js +107 -0
- package/dist/m365/graph/commands.js +2 -0
- package/dist/m365/spe/commands/container/container-add.js +85 -0
- package/dist/m365/spe/commands/container/container-list.js +2 -9
- package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +62 -0
- package/dist/m365/spe/commands/container/container-remove.js +99 -0
- package/dist/m365/spe/commands/containertype/containertype-add.js +11 -11
- package/dist/m365/spe/commands/containertype/containertype-get.js +28 -32
- package/dist/m365/spe/commands/containertype/containertype-list.js +14 -4
- package/dist/m365/spe/commands/containertype/containertype-remove.js +81 -0
- package/dist/m365/spe/commands.js +5 -1
- package/dist/m365/spo/commands/list/list-get.js +12 -6
- package/dist/m365/spp/commands/model/model-apply.js +130 -0
- package/dist/m365/spp/commands/model/model-get.js +7 -24
- package/dist/m365/spp/commands/model/model-list.js +1 -1
- package/dist/m365/spp/commands/model/model-remove.js +1 -1
- package/dist/m365/spp/commands.js +1 -0
- package/dist/utils/entraServicePrincipal.js +11 -0
- package/dist/utils/formatting.js +12 -0
- package/dist/utils/spe.js +77 -0
- package/dist/utils/spo.js +0 -18
- package/dist/utils/spp.js +59 -1
- package/dist/utils/zod.js +26 -1
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
- package/docs/docs/cmd/cli/app/app-reconsent.mdx +63 -0
- package/docs/docs/cmd/entra/organization/organization-list.mdx +154 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-list.mdx +135 -0
- package/docs/docs/cmd/graph/openextension/openextension-set.mdx +97 -0
- package/docs/docs/cmd/spe/container/container-activate.mdx +0 -2
- package/docs/docs/cmd/spe/container/container-add.mdx +128 -0
- package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +96 -0
- package/docs/docs/cmd/spe/container/container-remove.mdx +65 -0
- package/docs/docs/cmd/spe/containertype/containertype-add.mdx +9 -1
- package/docs/docs/cmd/spe/containertype/containertype-get.mdx +8 -0
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +8 -0
- package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +52 -0
- package/docs/docs/cmd/spo/list/list-get.mdx +12 -3
- package/docs/docs/cmd/spp/model/model-apply.mdx +79 -0
- package/package.json +3 -3
- package/dist/m365/spe/ContainerProperties.js +0 -2
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spe container add
|
|
6
|
+
|
|
7
|
+
Creates a new container
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spe container add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --name <name>`
|
|
19
|
+
: The display name of the new container.
|
|
20
|
+
|
|
21
|
+
`-d, --description [description]`
|
|
22
|
+
: The description of the new container.
|
|
23
|
+
|
|
24
|
+
`--containerTypeId [containerTypeId]`
|
|
25
|
+
: The container type ID of the container instance. Use either `containerTypeId`, or `containerTypeName` but not both.
|
|
26
|
+
|
|
27
|
+
`--containerTypeName [containerTypeName]`
|
|
28
|
+
: The container type name of the container instance. Use either `containerTypeId`, or `containerTypeName` but not both.
|
|
29
|
+
|
|
30
|
+
`--ocrEnabled [ocrEnabled]`
|
|
31
|
+
: Indicates whether Optical Character Recognition (OCR) is enabled for the container. Possible values: `true`, `false`. Defaults to `false`.
|
|
32
|
+
|
|
33
|
+
`--itemMajorVersionLimit [itemMajorVersionLimit]`
|
|
34
|
+
: The maximum major versions allowed for items in the container. Defaults to `500`.
|
|
35
|
+
|
|
36
|
+
`--itemVersioningEnabled [itemVersioningEnabled]`
|
|
37
|
+
: Indicates whether versioning is enabled for items in the container. Possible values: `true`, `false`. Defaults to `true`.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
<Global />
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
Creates a new container by specifying the container type ID
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spe container add --name Invoices --containerTypeId bba89883-47c2-455b-956b-7a3d8db007fb
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Creates a new container by specifying the container type name
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spe container add --name Invoices --containerTypeName "Invoice app container type"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Creates a new container with additional options
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
m365 spe container add --name Invoices --containerTypeId bba89883-47c2-455b-956b-7a3d8db007fb --ocrEnabled true --itemMajorVersionLimit 200 --itemVersioningEnabled true
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Response
|
|
63
|
+
|
|
64
|
+
<Tabs>
|
|
65
|
+
<TabItem value="JSON">
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"id": "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z",
|
|
70
|
+
"displayName": "Invoices",
|
|
71
|
+
"description": "This container is used to store invoices",
|
|
72
|
+
"containerTypeId": "bfdd048e-e03f-47d2-bd16-dbbc27281aa3",
|
|
73
|
+
"status": "inactive",
|
|
74
|
+
"createdDateTime": "2025-04-15T13:31:09.62Z",
|
|
75
|
+
"lockState": "unlocked",
|
|
76
|
+
"settings": {
|
|
77
|
+
"isOcrEnabled": false,
|
|
78
|
+
"itemMajorVersionLimit": 500,
|
|
79
|
+
"isItemVersioningEnabled": true
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
</TabItem>
|
|
85
|
+
<TabItem value="Text">
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
containerTypeId: bfdd048e-e03f-47d2-bd16-dbbc27281aa3
|
|
89
|
+
createdDateTime: 2025-04-15T15:14:03.89Z
|
|
90
|
+
description : This container is used to store invoices
|
|
91
|
+
displayName : Invoices
|
|
92
|
+
id : b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z
|
|
93
|
+
lockState : unlocked
|
|
94
|
+
settings : {"isOcrEnabled":false,"itemMajorVersionLimit":500,"isItemVersioningEnabled":true}
|
|
95
|
+
status : inactive
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
</TabItem>
|
|
99
|
+
<TabItem value="CSV">
|
|
100
|
+
|
|
101
|
+
```csv
|
|
102
|
+
id,displayName,description,containerTypeId,status,createdDateTime,lockState
|
|
103
|
+
b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z,Invoices,This container is used to store invoices,bfdd048e-e03f-47d2-bd16-dbbc27281aa3,inactive,2025-04-15T15:14:45.317Z,unlocked
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
</TabItem>
|
|
107
|
+
<TabItem value="Markdown">
|
|
108
|
+
|
|
109
|
+
```md
|
|
110
|
+
# spe container add --name "Invoices" --containerTypeId "bfdd048e-e03f-47d2-bd16-dbbc27281aa3" --description "This container is used to store invoices"
|
|
111
|
+
|
|
112
|
+
Date: 15/04/2025
|
|
113
|
+
|
|
114
|
+
## Invoices (b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z)
|
|
115
|
+
|
|
116
|
+
Property | Value
|
|
117
|
+
---------|-------
|
|
118
|
+
id | b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z
|
|
119
|
+
displayName | Invoices
|
|
120
|
+
description | This container is used to store invoices
|
|
121
|
+
containerTypeId | bfdd048e-e03f-47d2-bd16-dbbc27281aa3
|
|
122
|
+
status | inactive
|
|
123
|
+
createdDateTime | 2025-04-15T15:15:19.123Z
|
|
124
|
+
lockState | unlocked
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
</TabItem>
|
|
128
|
+
</Tabs>
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spe container recyclebinitem list
|
|
6
|
+
|
|
7
|
+
Lists deleted containers of a specific container type
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spe container recyclebinitem list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`--containerTypeId [containerTypeId]`
|
|
19
|
+
: The container type ID of the container instance. Use either `containerTypeId` or `containerTypeName` but not both.
|
|
20
|
+
|
|
21
|
+
`--containerTypeName [containerTypeName]`
|
|
22
|
+
: The container type name of the container instance. Use either `containerTypeId` or `containerTypeName` but not both.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Global />
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
List deleted containers of a specific container type specified by id.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spe container recyclebinitem list --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
List deleted containers of a specific container type specified by name.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spe container recyclebinitem list --containerTypeName "My container type name"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
<Tabs>
|
|
44
|
+
<TabItem value="JSON">
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
[
|
|
48
|
+
{
|
|
49
|
+
"id": "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z",
|
|
50
|
+
"displayName": "My Application Storage Container",
|
|
51
|
+
"containerTypeId": "1a55ba46-a673-45a4-b0d9-bd9913d06957",
|
|
52
|
+
"createdDateTime": "2025-04-15T21:51:48Z",
|
|
53
|
+
"settings": {
|
|
54
|
+
"isOcrEnabled": false
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
</TabItem>
|
|
61
|
+
<TabItem value="Text">
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
id displayName
|
|
65
|
+
------------------------------------------------------------------ --------------------------------
|
|
66
|
+
b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z My Application Storage Container
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
</TabItem>
|
|
70
|
+
<TabItem value="CSV">
|
|
71
|
+
|
|
72
|
+
```csv
|
|
73
|
+
id,displayName,containerTypeId,createdDateTime
|
|
74
|
+
b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z,My Application Storage Container,1a55ba46-a673-45a4-b0d9-bd9913d06957,2025-04-15T21:51:48Z
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
</TabItem>
|
|
78
|
+
<TabItem value="Markdown">
|
|
79
|
+
|
|
80
|
+
```md
|
|
81
|
+
# spe container recyclebinitem list --containerTypeId "1a55ba46-a673-45a4-b0d9-bd9913d06957"
|
|
82
|
+
|
|
83
|
+
Date: 18/04/2025
|
|
84
|
+
|
|
85
|
+
## My Application Storage Container (b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z)
|
|
86
|
+
|
|
87
|
+
Property | Value
|
|
88
|
+
---------|-------
|
|
89
|
+
id | b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z
|
|
90
|
+
displayName | My Application Storage Container
|
|
91
|
+
containerTypeId | 1a55ba46-a673-45a4-b0d9-bd9913d06957
|
|
92
|
+
createdDateTime | 2025-04-15T21:51:48Z
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
</TabItem>
|
|
96
|
+
</Tabs>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# spe container remove
|
|
4
|
+
|
|
5
|
+
Removes a container
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 spe container remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The ID of the container instance. Specify either `id` or `name` but not both.
|
|
18
|
+
|
|
19
|
+
`-n, --name [name]`
|
|
20
|
+
: The name of the container instance. Specify either `id` or `name` but not both.
|
|
21
|
+
|
|
22
|
+
`--containerTypeId [containerTypeId]`
|
|
23
|
+
: The ID of the container type. Specify either `containerTypeId` or `containerTypeName` when using `name` but not both.
|
|
24
|
+
|
|
25
|
+
`--containerTypeName [containerTypeName]`
|
|
26
|
+
: The name of the container type. Specify either `containerTypeId` or `containerTypeName` when using `name` but not both.
|
|
27
|
+
|
|
28
|
+
`--recycle`
|
|
29
|
+
: Recycle the container instance instead of permanently deleting it.
|
|
30
|
+
|
|
31
|
+
`-f, --force`
|
|
32
|
+
: Do not prompt for confirmation.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<Global />
|
|
36
|
+
|
|
37
|
+
## Examples
|
|
38
|
+
|
|
39
|
+
Remove a container by ID.
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Move a container specified by ID to the recycle bin.
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --recycle
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Remove a container by name specifying the container type id.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
m365 spe container remove --name "My Application Storage Container" --containerTypeId d248c449-da7e-4119-b5f6-7bb0865a42f9
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Remove a container by name specifying the container type name.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
m365 spe container remove --name "My Application Storage Container" --containerTypeName "My Application Container Type"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Response
|
|
64
|
+
|
|
65
|
+
The command won't return a response on success.
|
|
@@ -38,8 +38,16 @@ m365 spe containertype add [options]
|
|
|
38
38
|
|
|
39
39
|
## Remarks
|
|
40
40
|
|
|
41
|
+
:::info
|
|
42
|
+
|
|
43
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
44
|
+
|
|
45
|
+
:::
|
|
46
|
+
|
|
41
47
|
:::note
|
|
42
|
-
|
|
48
|
+
|
|
49
|
+
You can only create one Trial container type per tenant, a single application registration can only contain one container type and a tenant can contain a maximum of five containers types in total.
|
|
50
|
+
|
|
43
51
|
:::
|
|
44
52
|
|
|
45
53
|
## Examples
|
|
@@ -16,6 +16,14 @@ m365 spe containertype list [options]
|
|
|
16
16
|
|
|
17
17
|
<Global />
|
|
18
18
|
|
|
19
|
+
## Remarks
|
|
20
|
+
|
|
21
|
+
:::info
|
|
22
|
+
|
|
23
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
24
|
+
|
|
25
|
+
:::
|
|
26
|
+
|
|
19
27
|
## Examples
|
|
20
28
|
|
|
21
29
|
Retrieves a list of Container Types created for a SharePoint Embedded Application from the tenant.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# spe containertype remove
|
|
4
|
+
|
|
5
|
+
Remove a specific container type
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 spe containertype remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The ID of the container type. Specify either `id` or `name` but not both.
|
|
18
|
+
|
|
19
|
+
`-n, --name [name]`
|
|
20
|
+
: The container type name. Specify either `id` or `name` but not both.
|
|
21
|
+
|
|
22
|
+
`-f, --force`
|
|
23
|
+
: Force removal of the container type without confirmation.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
<Global />
|
|
27
|
+
|
|
28
|
+
## Remarks
|
|
29
|
+
|
|
30
|
+
:::info
|
|
31
|
+
|
|
32
|
+
To use this command you must be either **SharePoint Administrator** or **Global Administrator**.
|
|
33
|
+
|
|
34
|
+
:::
|
|
35
|
+
|
|
36
|
+
## Examples
|
|
37
|
+
|
|
38
|
+
Removes a container type by ID
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 spe containertype remove --id 4ec4aefd-4fa3-0e4a-20c3-6e68389e7138
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Removes a container type by name
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spe containertype remove --name 'My container type'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
The command won't return a response on success.
|
|
@@ -19,13 +19,16 @@ m365 spo list get [options]
|
|
|
19
19
|
: URL of the site where the list to retrieve is located.
|
|
20
20
|
|
|
21
21
|
`-i, --id [id]`
|
|
22
|
-
: ID of the list to retrieve information for. Specify either `id`, `title
|
|
22
|
+
: ID of the list to retrieve information for. Specify either `id`, `title`,`url` or `default` but not multiple.
|
|
23
23
|
|
|
24
24
|
`-t, --title [title]`
|
|
25
|
-
: Title of the list to retrieve information for. Specify either `id`, `title
|
|
25
|
+
: Title of the list to retrieve information for. Specify either `id`, `title`,`url` or `default` but not multiple.
|
|
26
26
|
|
|
27
27
|
`--url [url]`
|
|
28
|
-
: Server- or site-relative URL of the list. Specify either `id`, `title
|
|
28
|
+
: Server- or site-relative URL of the list. Specify either `id`, `title`,`url` or `default` but not multiple.
|
|
29
|
+
|
|
30
|
+
`--default`
|
|
31
|
+
: Set to retrieve the default list from the site. Specify either `id`, `title`, `url`, or `default` but not multiple.
|
|
29
32
|
|
|
30
33
|
`-p, --properties [properties]`
|
|
31
34
|
: Comma-separated list of properties to retrieve from the list. Will retrieve all properties possible from default response, if not specified.
|
|
@@ -42,6 +45,12 @@ When the `properties` option includes values with a `/`, for example: `ListItemA
|
|
|
42
45
|
|
|
43
46
|
## Examples
|
|
44
47
|
|
|
48
|
+
Get the default document library located in the specified site.
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 spo list get --webUrl https://contoso.sharepoint.com/sites/project-x --default
|
|
52
|
+
```
|
|
53
|
+
|
|
45
54
|
Get information about a list with specified ID located in the specified site.
|
|
46
55
|
|
|
47
56
|
```sh
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spp model apply
|
|
6
|
+
|
|
7
|
+
Applies (or syncs) a trained document understanding model to a document library
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spp model apply [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: The URL of the web where the library is located.
|
|
20
|
+
|
|
21
|
+
`-c, --contentCenterUrl <contentCenterUrl>`
|
|
22
|
+
: The URL of the content center site where model is located.
|
|
23
|
+
|
|
24
|
+
`-i, --id [id]`
|
|
25
|
+
: The unique ID of the model. Specify either `id` or `title` but not both.
|
|
26
|
+
|
|
27
|
+
`-t, --title [title]`
|
|
28
|
+
: The display name of the model. Specify either `id` or `title` but not both.
|
|
29
|
+
|
|
30
|
+
`--listTitle [listTitle]`
|
|
31
|
+
: The title of the document library to which the model will be applied. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
32
|
+
|
|
33
|
+
`--listId [listId]`
|
|
34
|
+
: The ID of the library to which the model will be applied. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
35
|
+
|
|
36
|
+
`--listUrl [listUrl]`
|
|
37
|
+
: Server or web-relative URL of the library to which the model will be applied. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
38
|
+
|
|
39
|
+
`--viewOption [viewOption]`
|
|
40
|
+
: Defines whether the model view should be set as the default view for the document library. Allowed values are: `NewViewAsDefault`, `DoNotChangeDefault`, `TileViewAsDefault`. The default value is `NewViewAsDefault`.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
<Global />
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
|
|
47
|
+
Applies a trained document understanding model using its unique ID to a document library, identified by its title.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spp model apply --webUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --id "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --listTitle "Shared Documents"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Applies a trained document understanding model using its display name to a document library, identified by its title.
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
m365 spp model apply --webUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --title "ModelExample" --listTitle "Shared Documents"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Applies a trained document understanding model using its display name to a document library, identified by its URL.
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
m365 spp model apply --webUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --title "ModelExample" --listUrl "/Shared Documents"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Applies a trained document understanding model using its display name to a document library, identified by its unique ID.
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
m365 spp model apply --webUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --title "ModelExample" --listId "b4cfa0d9-b3d7-49ae-a0f0-f14ffdd005f7"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Applies a trained document understanding model using its display name to a document library, identified by its unique ID. Without changing a default document library view.
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
m365 spp model apply --webUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --title "ModelExample" --listId "b4cfa0d9-b3d7-49ae-a0f0-f14ffdd005f7" --viewOption "DoNotChangeDefault"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Response
|
|
78
|
+
|
|
79
|
+
The command won't return a response on success.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "10.8.0
|
|
3
|
+
"version": "10.8.0",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"Levert, Sebastien <slevert@outlook.com>",
|
|
178
178
|
"Lingstuyl, Martin <mlingstuyl@live.com>",
|
|
179
179
|
"Macháček, Martin <machacek@edhouse.cz>",
|
|
180
|
-
"Maestrini Tobias <tobias@
|
|
180
|
+
"Maestrini, Tobias <tobias.maestrini@gmail.com>",
|
|
181
181
|
"Maillot, Michaël <battosaimykle@gmail.com>",
|
|
182
182
|
"Mastykarz, Waldek <waldek@mastykarz.nl>",
|
|
183
183
|
"McDonnell, Kevin <kevin@mcd79.com>",
|
|
@@ -312,4 +312,4 @@
|
|
|
312
312
|
"sinon": "^20.0.0",
|
|
313
313
|
"source-map-support": "^0.5.21"
|
|
314
314
|
}
|
|
315
|
-
}
|
|
315
|
+
}
|