@pnp/cli-microsoft365 11.4.0-beta.40f818c → 11.4.0-beta.810a987
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +1 -1
- package/dist/cli/cli.js +1 -1
- package/dist/m365/commands/login.js +5 -1
- package/dist/m365/connection/commands/connection-set.js +15 -29
- package/dist/m365/spe/commands/container/container-recyclebinitem-remove.js +96 -0
- package/dist/m365/spe/commands.js +1 -0
- package/dist/m365/spo/commands/file/file-add.js +49 -11
- package/dist/m365/spo/commands/listitem/listitem-set.js +1 -1
- package/dist/m365/spo/commands/page/page-header-set.js +97 -89
- package/dist/m365/spo/commands/page/page-set.js +26 -26
- package/dist/m365/spp/commands/autofillcolumn/autofillcolumn-set.js +166 -0
- package/dist/m365/spp/commands.js +1 -0
- package/dist/utils/spo.js +1 -2
- package/docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx +79 -0
- package/docs/docs/cmd/spo/file/file-add.mdx +140 -1
- package/docs/docs/cmd/spo/page/page-header-set.mdx +28 -8
- package/docs/docs/cmd/spo/page/page-set.mdx +35 -5
- package/docs/docs/cmd/spp/autofillcolumn/autofillcolumn-set.mdx +104 -0
- package/eslint.config.mjs +1 -0
- package/package.json +2 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo page set
|
|
4
6
|
|
|
@@ -20,16 +22,19 @@ m365 spo page set [options]
|
|
|
20
22
|
: URL of the site where the page to update is located.
|
|
21
23
|
|
|
22
24
|
`-l, --layoutType [layoutType]`
|
|
23
|
-
: Layout of the page. Allowed values `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`, `HeaderlessSearchResults`, `Spaces`, `Topic`.
|
|
25
|
+
: Layout of the page. Allowed values: `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`, `HeaderlessSearchResults`, `Spaces`, `Topic`.
|
|
24
26
|
|
|
25
27
|
`-p, --promoteAs [promoteAs]`
|
|
26
|
-
: Update the page purpose. Allowed values `HomePage`, `NewsPage`, `Template`.
|
|
28
|
+
: Update the page purpose. Allowed values: `HomePage`, `NewsPage`, `Template`.
|
|
27
29
|
|
|
28
30
|
`--demoteFrom [demoteFrom]`
|
|
29
|
-
: Update the page purpose back to a regular article. Allowed values `NewsPage`.
|
|
31
|
+
: Update the page purpose back to a regular article. Allowed values: `NewsPage`.
|
|
30
32
|
|
|
31
33
|
`--commentsEnabled [commentsEnabled]`
|
|
32
|
-
: Set to `true`, to enable comments on the page. Allowed values `true`, `false`.
|
|
34
|
+
: Set to `true`, to enable comments on the page. Allowed values: `true`, `false`.
|
|
35
|
+
|
|
36
|
+
`--isRetired [isRetired]`
|
|
37
|
+
: Marks the page as retired, showing a message that the page may be out of date. Allowed values: `true`, `false`.
|
|
33
38
|
|
|
34
39
|
`--publish`
|
|
35
40
|
: Set to publish the page.
|
|
@@ -69,6 +74,25 @@ When using the `--content` option it's possible to enter a JSON string. In Power
|
|
|
69
74
|
|
|
70
75
|
:::
|
|
71
76
|
|
|
77
|
+
## Permissions
|
|
78
|
+
|
|
79
|
+
<Tabs>
|
|
80
|
+
<TabItem value="Delegated">
|
|
81
|
+
|
|
82
|
+
| Resource | Permissions |
|
|
83
|
+
|------------|----------------|
|
|
84
|
+
| SharePoint | AllSites.Write |
|
|
85
|
+
|
|
86
|
+
</TabItem>
|
|
87
|
+
<TabItem value="Application">
|
|
88
|
+
|
|
89
|
+
| Resource | Permissions |
|
|
90
|
+
|------------|---------------------|
|
|
91
|
+
| SharePoint | Sites.ReadWrite.All |
|
|
92
|
+
|
|
93
|
+
</TabItem>
|
|
94
|
+
</Tabs>
|
|
95
|
+
|
|
72
96
|
## Examples
|
|
73
97
|
|
|
74
98
|
Change the layout of the existing page to _Article_
|
|
@@ -89,7 +113,7 @@ Promote the existing article page as a template
|
|
|
89
113
|
m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --promoteAs Template
|
|
90
114
|
```
|
|
91
115
|
|
|
92
|
-
Demote the existing
|
|
116
|
+
Demote the existing news page
|
|
93
117
|
|
|
94
118
|
```sh
|
|
95
119
|
m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --demoteFrom NewsPage
|
|
@@ -119,6 +143,12 @@ Set page description
|
|
|
119
143
|
m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --description "Description to add for the page"
|
|
120
144
|
```
|
|
121
145
|
|
|
146
|
+
Marks a page as retired
|
|
147
|
+
|
|
148
|
+
```sh
|
|
149
|
+
m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --isRetired true
|
|
150
|
+
```
|
|
151
|
+
|
|
122
152
|
Set page content
|
|
123
153
|
|
|
124
154
|
```sh
|
|
@@ -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
|
+
# spp autofillcolumn set
|
|
6
|
+
|
|
7
|
+
Applies the autofill option to the selected column
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spp autofillcolumn set [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --siteUrl <siteUrl>`
|
|
19
|
+
: The URL of the target site.
|
|
20
|
+
|
|
21
|
+
`--listTitle [listTitle]`
|
|
22
|
+
: The title of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
23
|
+
|
|
24
|
+
`--listId [listId]`
|
|
25
|
+
: The ID of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
26
|
+
|
|
27
|
+
`--listUrl [listUrl]`
|
|
28
|
+
: Server or web-relative URL of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
|
|
29
|
+
|
|
30
|
+
`-i, --columnId [columnId]`
|
|
31
|
+
: ID of the column to which the autofill option will be assigned. Specify either `columnId`, `columnTitle` or `columnInternalName`.
|
|
32
|
+
|
|
33
|
+
`-t, --columnTitle [columnTitle]`
|
|
34
|
+
: Title of the column to which the autofill option will be assigned. Specify either `columnId`, `columnTitle` or `columnInternalName`.
|
|
35
|
+
|
|
36
|
+
`--columnInternalName [columnInternalName]`
|
|
37
|
+
: The internal name (case-sensitive) of the column to which the autofill option will be assigned. Specify either `columnId`, `columnTitle` or `columnInternalName`.
|
|
38
|
+
|
|
39
|
+
`--prompt [prompt]`
|
|
40
|
+
: The text in natural language that will be used to extract specific information or generate information from files within a SharePoint library.
|
|
41
|
+
|
|
42
|
+
`--isEnabled [isEnabled]`
|
|
43
|
+
: Enables or disables the autofill column feature.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
<Global />
|
|
47
|
+
|
|
48
|
+
## Remarks
|
|
49
|
+
|
|
50
|
+
The `prompt` parameter is required when setting the autofill column for the first time.
|
|
51
|
+
|
|
52
|
+
## Examples
|
|
53
|
+
|
|
54
|
+
Applies an autofill column on a selected column to a document library based on the list id.
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Applies an autofill column on a selected column to a document library based on the list title.
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listTitle "Documents" --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Applies an autofill column on a selected column to a document library based on the list url.
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listUrl '/Shared Documents' --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Applies an autofill column on a selected column to a document library based on the list id and column title.
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --prompt "Write a 2-line summary of the document"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Applies an autofill column on a selected column to a document library based on the list id and column internal name.
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnInternalName "ColumnTitle" --prompt "Write a 2-line summary of the document"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Disables the autofill column for a selected column in a document library, based on the list id and column title.
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled false
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Reenable the autofill column for a selected column in a document library, based on the list id and column title.
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled true
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Modifies the prompt for the autofill column
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled true --prompt "Write a 1-line summary of the document"
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Response
|
|
103
|
+
|
|
104
|
+
The command won't return a response on success.
|
package/eslint.config.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "11.4.0-beta.
|
|
3
|
+
"version": "11.4.0-beta.810a987",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"De Cleyre, Nico <nico.de.cleyre@gmail.com>",
|
|
148
148
|
"Deshpande, Vardhaman <vardhaman.rd@gmail.com>",
|
|
149
149
|
"Dojcsák, János <dojcsak.janos@gmail.com>",
|
|
150
|
+
"Druzhkina, Antanina <totora246@gmail.com>",
|
|
150
151
|
"Dyjas, Robert <15113729+robdy@users.noreply.github.com>",
|
|
151
152
|
"Faleel, Mohamed Ashiq <ashiqf@gmail.com>",
|
|
152
153
|
"Flores, Gaston <gaston.flrs@gmail.com>",
|