@pnp/cli-microsoft365 9.0.0-beta.e69e8d0 → 9.0.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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +11 -12
- package/dist/Command.js +1 -3
- package/dist/cli/cli.js +68 -14
- package/dist/config.js +60 -5
- package/dist/m365/app/commands/permission/permission-add.js +9 -9
- package/dist/m365/base/SpoCommand.js +1 -1
- package/dist/m365/cli/commands/cli-consent.js +2 -2
- package/dist/m365/cli/commands/cli-doctor.js +2 -2
- package/dist/m365/cli/commands/cli-reconsent.js +2 -3
- package/dist/m365/cli/commands/config/config-set.js +12 -3
- package/dist/m365/commands/login.js +38 -14
- package/dist/m365/commands/setup.js +256 -33
- package/dist/m365/commands/status.js +2 -2
- package/dist/m365/connection/commands/connection-list.js +4 -4
- package/dist/m365/entra/commands/app/app-add.js +52 -288
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-remove.js +123 -0
- package/dist/m365/entra/commands/group/group-set.js +256 -0
- package/dist/m365/entra/commands/group/group-user-list.js +4 -4
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +4 -4
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +9 -6
- package/dist/m365/entra/commands.js +3 -0
- package/dist/m365/onenote/commands/notebook/notebook-add.js +132 -0
- package/dist/m365/onenote/commands.js +1 -0
- package/dist/m365/outlook/commands/message/message-get.js +11 -11
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +10 -1
- package/dist/m365/spo/commands/file/file-copy.js +34 -55
- package/dist/m365/spo/commands/folder/folder-set.js +4 -0
- package/dist/m365/spo/commands/list/list-list.js +4 -1
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +24 -48
- package/dist/m365/spo/commands/site/site-get.js +12 -16
- package/dist/m365/spo/commands/site/site-remove.js +7 -1
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +22 -2
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/message/message-restore.js +106 -0
- package/dist/m365/teams/commands.js +1 -0
- package/dist/settingsNames.js +7 -1
- package/dist/utils/entraApp.js +283 -0
- package/dist/utils/spo.js +0 -74
- package/docs/docs/_clisettings.mdx +6 -0
- package/docs/docs/cmd/app/permission/permission-add.mdx +5 -5
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +65 -0
- package/docs/docs/cmd/entra/group/group-add.mdx +0 -4
- package/docs/docs/cmd/entra/group/group-set.mdx +89 -0
- package/docs/docs/cmd/entra/group/group-user-list.mdx +7 -7
- package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +5 -5
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +3 -3
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
- package/docs/docs/cmd/onenote/notebook/notebook-add.mdx +169 -0
- package/docs/docs/cmd/outlook/message/message-get.mdx +5 -5
- package/docs/docs/cmd/setup.mdx +16 -3
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +12 -11
- package/docs/docs/cmd/spo/file/file-copy.mdx +12 -119
- package/docs/docs/cmd/spo/folder/folder-set.mdx +6 -0
- package/docs/docs/cmd/spo/list/list-list.mdx +7 -5
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +2 -11
- package/docs/docs/cmd/spo/site/site-remove.mdx +3 -0
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +49 -2
- package/docs/docs/cmd/teams/message/message-remove.mdx +2 -1
- package/docs/docs/cmd/teams/message/message-restore.mdx +62 -0
- package/npm-shrinkwrap.json +0 -1
- package/package.json +2 -3
package/docs/docs/cmd/setup.mdx
CHANGED
|
@@ -18,6 +18,9 @@ m365 setup [options]
|
|
|
18
18
|
|
|
19
19
|
`--scripting`
|
|
20
20
|
: Configure CLI for Microsoft 365 for use in scripts without prompting for additional information.
|
|
21
|
+
|
|
22
|
+
`--skipApp`
|
|
23
|
+
: Skip configuring an Entra app for use with CLI for Microsoft 365.
|
|
21
24
|
```
|
|
22
25
|
|
|
23
26
|
<Global />
|
|
@@ -28,6 +31,10 @@ The `m365 setup` command is a wizard that helps you configure the CLI for Micros
|
|
|
28
31
|
|
|
29
32
|
The command will ask you the following questions:
|
|
30
33
|
|
|
34
|
+
- _CLI for Microsoft 365 requires a Microsoft Entra app. Do you want to create a new app registration or use an existing one?_
|
|
35
|
+
|
|
36
|
+
You can choose between using an existing Entra app or creating a new one. If you choose to create a new app, the CLI will ask you to choose between a minimal and a full set of permissions. It then signs in as Azure CLI to your tenant, creates a new app registration, and stores its information in the CLI configuration.
|
|
37
|
+
|
|
31
38
|
- _How do you plan to use the CLI?_
|
|
32
39
|
|
|
33
40
|
You can choose between **interactive** and **scripting** use. In interactive mode, the CLI for Microsoft 365 will prompt you for additional information when needed, automatically open links browser, automatically show help on errors and show spinners. In **scripting** mode, the CLI will not use interactivity to prevent blocking your scripts.
|
|
@@ -71,24 +78,30 @@ The `m365 setup` command uses the following presets:
|
|
|
71
78
|
|
|
72
79
|
## Examples
|
|
73
80
|
|
|
74
|
-
Configure CLI for Microsoft based on your preferences interactively
|
|
81
|
+
Configure CLI for Microsoft 365 based on your preferences interactively
|
|
75
82
|
|
|
76
83
|
```sh
|
|
77
84
|
m365 setup
|
|
78
85
|
```
|
|
79
86
|
|
|
80
|
-
Configure CLI for Microsoft for interactive use without prompting for additional information
|
|
87
|
+
Configure CLI for Microsoft 365 for interactive use without prompting for additional information
|
|
81
88
|
|
|
82
89
|
```sh
|
|
83
90
|
m365 setup --interactive
|
|
84
91
|
```
|
|
85
92
|
|
|
86
|
-
Configure CLI for Microsoft for use in scripts without prompting for additional information
|
|
93
|
+
Configure CLI for Microsoft 365 for use in scripts without prompting for additional information
|
|
87
94
|
|
|
88
95
|
```sh
|
|
89
96
|
m365 setup --scripting
|
|
90
97
|
```
|
|
91
98
|
|
|
99
|
+
Configure CLI for Microsoft 365 without setting up an Entra app
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
m365 setup --skipApp
|
|
103
|
+
```
|
|
104
|
+
|
|
92
105
|
## Response
|
|
93
106
|
|
|
94
107
|
The command won't return a response on success.
|
|
@@ -14,25 +14,28 @@ m365 spfx project github workflow add [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-n, --name [name]`
|
|
17
|
-
: Name of the workflow that will be created. If none is specified a default name will be used 'Deploy Solution ${name of sppkg file}'
|
|
17
|
+
: Name of the workflow that will be created. If none is specified a default name will be used 'Deploy Solution ${name of sppkg file}'
|
|
18
18
|
|
|
19
19
|
`-b, --branchName [branchName]`
|
|
20
|
-
: Specify the branch name which should trigger the workflow on push. If none is specified a default will be used which is 'main'
|
|
20
|
+
: Specify the branch name which should trigger the workflow on push. If none is specified a default will be used which is 'main'
|
|
21
21
|
|
|
22
22
|
`-m, --manuallyTrigger`
|
|
23
|
-
: When specified a manual trigger option will be added to the workflow: `workflow_dispatch
|
|
23
|
+
: When specified a manual trigger option will be added to the workflow: `workflow_dispatch`
|
|
24
24
|
|
|
25
25
|
`-l, --loginMethod [loginMethod]`
|
|
26
|
-
: Specify the login method used for the login action. Possible options are: `user`, `application`. Default `application
|
|
26
|
+
: Specify the login method used for the login action. Possible options are: `user`, `application`. Default `application`'
|
|
27
27
|
|
|
28
28
|
`-s, --scope [scope]`
|
|
29
|
-
: Scope of the app catalog: `tenant`, `sitecollection`. Default is `tenant
|
|
29
|
+
: Scope of the app catalog: `tenant`, `sitecollection`. Default is `tenant`
|
|
30
30
|
|
|
31
31
|
`-u, --siteUrl [siteUrl]`
|
|
32
|
-
: The URL of the site collection where the solution package will be added. Required if scope is set to `sitecollection
|
|
32
|
+
: The URL of the site collection where the solution package will be added. Required if scope is set to `sitecollection`
|
|
33
33
|
|
|
34
34
|
`--skipFeatureDeployment`
|
|
35
|
-
: When specified and the app supports tenant-wide deployment, deploy it to the whole tenant
|
|
35
|
+
: When specified and the app supports tenant-wide deployment, deploy it to the whole tenant
|
|
36
|
+
|
|
37
|
+
`--overwrite`
|
|
38
|
+
: When specified the workflow will overwrite the existing .sppkg if it is already deployed in the app catalog.
|
|
36
39
|
```
|
|
37
40
|
|
|
38
41
|
<Global />
|
|
@@ -56,8 +59,6 @@ For the `user` login method you will need to create the following secrets in Git
|
|
|
56
59
|
|
|
57
60
|
This method is perfect to test your workflow, in a dev context, for personal usage. It will not work for accounts with MFA.
|
|
58
61
|
|
|
59
|
-
The workflow will overwrite the existing .sppkg if it is already deployed in the app catalog. Overwriting your sppkg file on every deployment is required to make continuous delivery of the latest version of your app which is the aim of the continuous delivery pipeline.
|
|
60
|
-
|
|
61
62
|
:::info
|
|
62
63
|
|
|
63
64
|
Run this command in the SPFx solution folder.
|
|
@@ -66,7 +67,7 @@ Run this command in the SPFx solution folder.
|
|
|
66
67
|
|
|
67
68
|
## Examples
|
|
68
69
|
|
|
69
|
-
Adds a GitHub workflow for a SharePoint Framework project with `application` login method triggered on push to main
|
|
70
|
+
Adds a GitHub workflow for a SharePoint Framework project with `application` login method triggered on push to main
|
|
70
71
|
|
|
71
72
|
```sh
|
|
72
73
|
m365 spfx project github workflow add
|
|
@@ -78,7 +79,7 @@ Adds a GitHub workflow for a SharePoint Framework project with `user` login meth
|
|
|
78
79
|
m365 spfx project github workflow add --manuallyTrigger --loginMethod "user"
|
|
79
80
|
```
|
|
80
81
|
|
|
81
|
-
Adds a GitHub workflow for a SharePoint Framework project with deployment to a site collection app catalog
|
|
82
|
+
Adds a GitHub workflow for a SharePoint Framework project with deployment to a site collection app catalog
|
|
82
83
|
|
|
83
84
|
```sh
|
|
84
85
|
m365 spfx project github workflow add --scope "sitecollection" --siteUrl "https://some.sharepoint.com/sites/someSite"
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
import Tabs from '@theme/Tabs';
|
|
3
|
-
import TabItem from '@theme/TabItem';
|
|
4
2
|
|
|
5
3
|
# spo file copy
|
|
6
4
|
|
|
@@ -33,14 +31,11 @@ m365 spo file copy [options]
|
|
|
33
31
|
`--nameConflictBehavior [nameConflictBehavior]`
|
|
34
32
|
: Behavior when a document with the same name is already present at the destination. Allowed values: `fail`, `replace`, `rename`. Defaults to `fail`.
|
|
35
33
|
|
|
34
|
+
`--resetAuthorAndCreated`
|
|
35
|
+
: Use this option to clear the author and created date. When not specified, the values from the source file are used.
|
|
36
|
+
|
|
36
37
|
`--bypassSharedLock`
|
|
37
38
|
: This indicates whether a file with a share lock can still be copied. Use this option to copy a file that is locked.
|
|
38
|
-
|
|
39
|
-
`--ignoreVersionHistory`
|
|
40
|
-
: Only copy the most recent version of the file and ignore the version history.
|
|
41
|
-
|
|
42
|
-
`--skipWait`
|
|
43
|
-
: Don't wait for the copy operation to complete.
|
|
44
39
|
```
|
|
45
40
|
|
|
46
41
|
<Global />
|
|
@@ -48,6 +43,7 @@ m365 spo file copy [options]
|
|
|
48
43
|
## Remarks
|
|
49
44
|
|
|
50
45
|
When you specify a value for `nameConflictBehavior`, consider the following:
|
|
46
|
+
|
|
51
47
|
- `fail` will throw an error when the destination file already exists.
|
|
52
48
|
- `replace` will replace the destination file if it already exists.
|
|
53
49
|
- `rename` will add a suffix (e.g. Document1.pdf) when the destination file already exists.
|
|
@@ -60,16 +56,16 @@ Copy a file by server-relative URL to a document library in another site collect
|
|
|
60
56
|
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents"
|
|
61
57
|
```
|
|
62
58
|
|
|
63
|
-
Copy a file by site-relative URL to a document library in another site collection and
|
|
59
|
+
Copy a file by site-relative URL to a document library in another site collection and clear the author and created date.
|
|
64
60
|
|
|
65
61
|
```sh
|
|
66
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --
|
|
62
|
+
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --resetAuthorAndCreated
|
|
67
63
|
```
|
|
68
64
|
|
|
69
|
-
Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file
|
|
65
|
+
Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file.
|
|
70
66
|
|
|
71
67
|
```sh
|
|
72
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report"
|
|
68
|
+
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report.pdf"
|
|
73
69
|
```
|
|
74
70
|
|
|
75
71
|
Copy file by sourceId (UniqueId) to a document library in another site collection with a new name, rename the file if it already exists.
|
|
@@ -80,111 +76,8 @@ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourc
|
|
|
80
76
|
|
|
81
77
|
## Response
|
|
82
78
|
|
|
83
|
-
### Standard Response
|
|
84
|
-
|
|
85
|
-
<Tabs>
|
|
86
|
-
<TabItem value="JSON">
|
|
87
|
-
|
|
88
|
-
```json
|
|
89
|
-
{
|
|
90
|
-
"CheckInComment": "",
|
|
91
|
-
"CheckOutType": 2,
|
|
92
|
-
"ContentTag": "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",
|
|
93
|
-
"CustomizedPageStatus": 0,
|
|
94
|
-
"ETag": "\"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1\"",
|
|
95
|
-
"Exists": true,
|
|
96
|
-
"IrmEnabled": false,
|
|
97
|
-
"Length": "5987",
|
|
98
|
-
"Level": 1,
|
|
99
|
-
"LinkingUri": null,
|
|
100
|
-
"LinkingUrl": "",
|
|
101
|
-
"MajorVersion": 1,
|
|
102
|
-
"MinorVersion": 0,
|
|
103
|
-
"Name": "Test1.docx",
|
|
104
|
-
"ServerRelativeUrl": "/sites/project-x/documents/Test1.docx",
|
|
105
|
-
"TimeCreated": "2022-10-30T10:16:18Z",
|
|
106
|
-
"TimeLastModified": "2022-10-30T10:16:18Z",
|
|
107
|
-
"Title": null,
|
|
108
|
-
"UIVersion": 512,
|
|
109
|
-
"UIVersionLabel": "1.0",
|
|
110
|
-
"UniqueId": "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
111
|
-
}
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
</TabItem>
|
|
115
|
-
<TabItem value="Text">
|
|
116
|
-
|
|
117
|
-
```text
|
|
118
|
-
CheckInComment :
|
|
119
|
-
CheckOutType : 2
|
|
120
|
-
ContentTag : {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
|
|
121
|
-
CustomizedPageStatus: 0
|
|
122
|
-
ETag : "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
|
|
123
|
-
Exists : true
|
|
124
|
-
IrmEnabled : false
|
|
125
|
-
Length : 5987
|
|
126
|
-
Level : 1
|
|
127
|
-
LinkingUri : null
|
|
128
|
-
LinkingUrl :
|
|
129
|
-
MajorVersion : 1
|
|
130
|
-
MinorVersion : 0
|
|
131
|
-
Name : Test1.docx
|
|
132
|
-
ServerRelativeUrl : /sites/project-x/documents/Test1.docx
|
|
133
|
-
TimeCreated : 2022-10-30T10:16:18Z
|
|
134
|
-
TimeLastModified : 2022-10-30T10:16:18Z
|
|
135
|
-
Title : null
|
|
136
|
-
UIVersion : 512
|
|
137
|
-
UIVersionLabel : 1.0
|
|
138
|
-
UniqueId : b2307a39-e878-458b-bc90-03bc578531d6
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
</TabItem>
|
|
142
|
-
<TabItem value="CSV">
|
|
143
|
-
|
|
144
|
-
```csv
|
|
145
|
-
CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,IrmEnabled,Length,Level,LinkingUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
|
|
146
|
-
,2,"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",0,"""{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1""",1,,5987,1,,,1,0,Test1.docx,/sites/project-x/documents/Test1.docx,2022-10-30T10:16:18Z,2022-10-30T10:16:18Z,,512,1.0,b2307a39-e878-458b-bc90-03bc578531d6
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
</TabItem>
|
|
150
|
-
<TabItem value="Markdown">
|
|
151
|
-
|
|
152
|
-
```md
|
|
153
|
-
# spo file copy --webUrl "https://contoso.sharepoint.com/sites/IT" --sourceUrl "/Shared Documents/Document.docx" --targetUrl "/sites/project-x/Shared Documents"
|
|
154
|
-
|
|
155
|
-
Date: 10/3/2023
|
|
156
|
-
|
|
157
|
-
## b2307a39-e878-458b-bc90-03bc578531d6
|
|
158
|
-
|
|
159
|
-
Property | Value
|
|
160
|
-
---------|-------
|
|
161
|
-
CheckInComment |
|
|
162
|
-
CheckOutType | 2
|
|
163
|
-
ContentTag | {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
|
|
164
|
-
CustomizedPageStatus | 0
|
|
165
|
-
ETag | "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
|
|
166
|
-
Exists | true
|
|
167
|
-
ExistsAllowThrowForPolicyFailures | true
|
|
168
|
-
IrmEnabled | false
|
|
169
|
-
Length | 5987
|
|
170
|
-
Level | 1
|
|
171
|
-
LinkingUri | https://contoso.sharepoint.com/sites/project-x/shared%20documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
|
|
172
|
-
LinkingUrl | https://contoso.sharepoint.com/sites/project-x/shared documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
|
|
173
|
-
MajorVersion | 1
|
|
174
|
-
MinorVersion | 0
|
|
175
|
-
Name | Document.docx
|
|
176
|
-
ServerRelativeUrl | /sites/project-x/shared documents/Document.docx
|
|
177
|
-
TimeCreated | 2023-05-23T09:51:34Z
|
|
178
|
-
TimeLastModified | 2023-05-23T10:13:01Z
|
|
179
|
-
Title |
|
|
180
|
-
UIVersion | 1536
|
|
181
|
-
UIVersionLabel | 1.0
|
|
182
|
-
UniqueId | b2307a39-e878-458b-bc90-03bc578531d6
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
</TabItem>
|
|
186
|
-
</Tabs>
|
|
187
|
-
|
|
188
|
-
### `skipWait` response
|
|
189
|
-
|
|
190
79
|
The command won't return a response on success.
|
|
80
|
+
|
|
81
|
+
## More information
|
|
82
|
+
|
|
83
|
+
- Copy items from a SharePoint document library: [https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc](https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc)
|
|
@@ -126,7 +126,8 @@ m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --fil
|
|
|
126
126
|
"ParserDisabled": false,
|
|
127
127
|
"ServerTemplateCanCreateFolders": false,
|
|
128
128
|
"TemplateFeatureId": "00000000-0000-0000-0000-000000000000",
|
|
129
|
-
"Title": "Theme Gallery"
|
|
129
|
+
"Title": "Theme Gallery",
|
|
130
|
+
"Url": "/_catalogs/theme"
|
|
130
131
|
}
|
|
131
132
|
]
|
|
132
133
|
```
|
|
@@ -135,17 +136,17 @@ m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --fil
|
|
|
135
136
|
<TabItem value="Text">
|
|
136
137
|
|
|
137
138
|
```text
|
|
138
|
-
Id
|
|
139
|
+
Id Url
|
|
139
140
|
------------------------------------ ----------------
|
|
140
|
-
66e5148c-7060-4479-88e7-636d79579148
|
|
141
|
+
66e5148c-7060-4479-88e7-636d79579148 /_catalogs/theme
|
|
141
142
|
```
|
|
142
143
|
|
|
143
144
|
</TabItem>
|
|
144
145
|
<TabItem value="CSV">
|
|
145
146
|
|
|
146
147
|
```csv
|
|
147
|
-
Id,
|
|
148
|
-
66e5148c-7060-4479-88e7-636d79579148
|
|
148
|
+
Id,Url
|
|
149
|
+
Theme Gallery,/_catalogs/theme,66e5148c-7060-4479-88e7-636d79579148
|
|
149
150
|
```
|
|
150
151
|
|
|
151
152
|
</TabItem>
|
|
@@ -210,6 +211,7 @@ m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --fil
|
|
|
210
211
|
ServerTemplateCanCreateFolders | true
|
|
211
212
|
TemplateFeatureId | 00000000-0000-0000-0000-000000000000
|
|
212
213
|
Title | Theme Gallery
|
|
214
|
+
Url | //\_catalogs/theme
|
|
213
215
|
```
|
|
214
216
|
|
|
215
217
|
</TabItem>
|
|
@@ -14,10 +14,7 @@ m365 spo site appcatalog remove [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --siteUrl <siteUrl>`
|
|
17
|
-
: URL of the site collection containing the app catalog to disable
|
|
18
|
-
|
|
19
|
-
`-f, --force`
|
|
20
|
-
: Don't prompt for confirmation.
|
|
17
|
+
: URL of the site collection containing the app catalog to disable
|
|
21
18
|
```
|
|
22
19
|
|
|
23
20
|
<Global />
|
|
@@ -34,18 +31,12 @@ To use this command you have to have permissions to access the tenant admin site
|
|
|
34
31
|
|
|
35
32
|
## Examples
|
|
36
33
|
|
|
37
|
-
Remove the site collection app catalog from specified site
|
|
34
|
+
Remove the site collection app catalog from specified site
|
|
38
35
|
|
|
39
36
|
```sh
|
|
40
37
|
m365 spo site appcatalog remove --siteUrl https://contoso.sharepoint/sites/site
|
|
41
38
|
```
|
|
42
39
|
|
|
43
|
-
Remove the site collection app catalog from specified site without prompting for confirmation.
|
|
44
|
-
|
|
45
|
-
```sh
|
|
46
|
-
m365 spo site appcatalog remove --siteUrl https://contoso.sharepoint/sites/site --force
|
|
47
|
-
```
|
|
48
|
-
|
|
49
40
|
## Response
|
|
50
41
|
|
|
51
42
|
The command won't return a response on success.
|
|
@@ -22,6 +22,9 @@ m365 spo site remove [options]
|
|
|
22
22
|
`--fromRecycleBin`
|
|
23
23
|
: Set to remove the site from the recycle bin.
|
|
24
24
|
|
|
25
|
+
`--wait`
|
|
26
|
+
: (deprecated) Wait for the site to be removed before completing the command.
|
|
27
|
+
|
|
25
28
|
`-f, --force`
|
|
26
29
|
: Don't prompt for confirmation.
|
|
27
30
|
```
|
|
@@ -17,6 +17,9 @@ m365 spo tenant recyclebinitem restore [options]
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-u, --siteUrl <siteUrl>`
|
|
19
19
|
: URL of the site.
|
|
20
|
+
|
|
21
|
+
`--wait`
|
|
22
|
+
: (deprecated) Wait for the site collection to be restored before completing the command.
|
|
20
23
|
```
|
|
21
24
|
|
|
22
25
|
<Global />
|
|
@@ -31,7 +34,7 @@ To use this command you must be a Global or SharePoint administrator.
|
|
|
31
34
|
|
|
32
35
|
## Examples
|
|
33
36
|
|
|
34
|
-
|
|
37
|
+
Restore a deleted site collection from tenant recycle bin
|
|
35
38
|
|
|
36
39
|
```sh
|
|
37
40
|
m365 spo tenant recyclebinitem restore --siteUrl https://contoso.sharepoint.com/sites/team
|
|
@@ -39,4 +42,48 @@ m365 spo tenant recyclebinitem restore --siteUrl https://contoso.sharepoint.com/
|
|
|
39
42
|
|
|
40
43
|
## Response
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
<Tabs>
|
|
46
|
+
<TabItem value="JSON">
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"HasTimedout": false,
|
|
51
|
+
"IsComplete": true,
|
|
52
|
+
"PollingInterval": 15000
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
</TabItem>
|
|
57
|
+
<TabItem value="Text">
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
HasTimedout : false
|
|
61
|
+
IsComplete : true
|
|
62
|
+
PollingInterval: 15000
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
</TabItem>
|
|
66
|
+
<TabItem value="CSV">
|
|
67
|
+
|
|
68
|
+
```csv
|
|
69
|
+
HasTimedout,IsComplete,PollingInterval
|
|
70
|
+
,1,15000
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
</TabItem>
|
|
74
|
+
<TabItem value="Markdown">
|
|
75
|
+
|
|
76
|
+
```md
|
|
77
|
+
# spo tenant recyclebinitem restore --siteUrl "https://contoso.sharepoint.com/teams/team1"
|
|
78
|
+
|
|
79
|
+
Date: 2023-06-22
|
|
80
|
+
|
|
81
|
+
Property | Value
|
|
82
|
+
---------|-------
|
|
83
|
+
HasTimedout | false
|
|
84
|
+
IsComplete | true
|
|
85
|
+
PollingInterval | 15000
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
</TabItem>
|
|
89
|
+
</Tabs>
|
|
@@ -36,7 +36,6 @@ m365 teams message remove [options]
|
|
|
36
36
|
|
|
37
37
|
## Remarks
|
|
38
38
|
|
|
39
|
-
You can only remove Microsoft Teams messages that you created yourself.
|
|
40
39
|
|
|
41
40
|
:::info
|
|
42
41
|
|
|
@@ -44,6 +43,8 @@ This command does only support delegated permissions.
|
|
|
44
43
|
|
|
45
44
|
:::
|
|
46
45
|
|
|
46
|
+
You can only remove Microsoft Teams messages that you created yourself.
|
|
47
|
+
|
|
47
48
|
## Examples
|
|
48
49
|
|
|
49
50
|
Remove a message by using IDs
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# teams message restore
|
|
6
|
+
|
|
7
|
+
Restores a deleted message from a channel in a Microsoft Teams team
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 teams message restore [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`--teamId [teamId]`
|
|
19
|
+
: ID of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both.
|
|
20
|
+
|
|
21
|
+
`--teamName [teamName]`
|
|
22
|
+
: Name of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both.
|
|
23
|
+
|
|
24
|
+
`--channelId [channelId]`
|
|
25
|
+
: Channel ID of the Microsoft Teams team. Specify either `channelId` or `channelName` but not both.
|
|
26
|
+
|
|
27
|
+
`--channelName [channelName]`
|
|
28
|
+
: Channel name of the Microsoft Teams team. Specify either `channelId` or `channelName` but not both.
|
|
29
|
+
|
|
30
|
+
`-i, --id <id>`
|
|
31
|
+
: The ID of the Teams message.
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
<Global />
|
|
35
|
+
|
|
36
|
+
## Remarks
|
|
37
|
+
|
|
38
|
+
:::info
|
|
39
|
+
|
|
40
|
+
This command does only support delegated permissions.
|
|
41
|
+
|
|
42
|
+
:::
|
|
43
|
+
|
|
44
|
+
You can only restore Microsoft Teams messages that you created yourself.
|
|
45
|
+
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
Restore a deleted message by using IDs
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 teams message restore --teamId 5f5d7b71-1161-44d8-bcc1-3da710eb4171 --channelId 19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2 --id 1540747442203
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Restore a deleted message by using display names
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 teams message restore --teamName Marketing --channelName Branding --id 1540747442203
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Response
|
|
61
|
+
|
|
62
|
+
The command won't return a response on success.
|
package/npm-shrinkwrap.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "9.0.0
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -271,7 +271,6 @@
|
|
|
271
271
|
"easy-table": "^1.2.0",
|
|
272
272
|
"jmespath": "^0.16.0",
|
|
273
273
|
"json-to-ast": "^2.1.0",
|
|
274
|
-
"minimist": "^1.2.8",
|
|
275
274
|
"node-forge": "^1.3.1",
|
|
276
275
|
"omelette": "^0.4.17",
|
|
277
276
|
"open": "^10.1.0",
|
|
@@ -312,4 +311,4 @@
|
|
|
312
311
|
"sinon": "^18.0.0",
|
|
313
312
|
"source-map-support": "^0.5.21"
|
|
314
313
|
}
|
|
315
|
-
}
|
|
314
|
+
}
|