@pnp/cli-microsoft365 5.1.0-beta.efe1dcb → 5.1.0-beta.ffd9bc8
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 +1 -0
- package/dist/cli/Cli.js +18 -3
- package/dist/cli/index.js +5 -1
- package/dist/m365/aad/commands/app/app-add.js +68 -10
- package/dist/m365/aad/commands/app/{app-delete.js → app-remove.js} +9 -5
- package/dist/m365/aad/commands/app/{app-role-delete.js → app-role-remove.js} +11 -7
- package/dist/m365/aad/commands/o365group/o365group-add.js +39 -1
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +87 -0
- package/dist/m365/aad/commands.js +4 -1
- package/dist/m365/base/PowerPlatformCommand.js +10 -0
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +98 -0
- package/dist/m365/pp/commands.js +7 -0
- package/dist/m365/spfx/commands/project/model/index.js +5 -1
- package/dist/m365/spfx/commands/project/project-externalize/index.js +5 -1
- package/dist/m365/spfx/commands/project/project-externalize/rules/index.js +5 -1
- package/dist/m365/spfx/commands/project/project-upgrade/index.js +5 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001033_DEP_tslib.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023002_GITIGNORE_heft.js +40 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.0.js +0 -2
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0-beta.1.js +63 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +24 -19
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +66 -0
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/chat/chat-message-send.js +50 -58
- package/dist/settingsNames.js +1 -0
- package/dist/utils/formatting.js +3 -0
- package/dist/utils/index.js +5 -1
- package/docs/docs/cmd/aad/app/{app-delete.md → app-remove.md} +15 -9
- package/docs/docs/cmd/aad/app/{app-role-delete.md → app-role-remove.md} +25 -19
- package/docs/docs/cmd/aad/o365group/o365group-add.md +42 -6
- package/docs/docs/cmd/aad/o365group/o365group-conversation-post-list.md +36 -0
- package/docs/docs/cmd/pp/managementapp/managementapp-add.md +50 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.md +27 -0
- package/docs/docs/cmd/teams/chat/chat-message-send.md +4 -4
- package/npm-shrinkwrap.json +173 -188
- package/package.json +12 -11
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015006_FILE_editorconfig.js +0 -14
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
# aad app role
|
|
1
|
+
# aad app role remove
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Removes role from the specified Azure AD app registration
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
+
```sh
|
|
8
|
+
m365 aad app role remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Alias
|
|
12
|
+
|
|
7
13
|
```sh
|
|
8
14
|
m365 aad app role delete [options]
|
|
9
15
|
```
|
|
@@ -11,60 +17,60 @@ m365 aad app role delete [options]
|
|
|
11
17
|
## Options
|
|
12
18
|
|
|
13
19
|
`--appId [appId]`
|
|
14
|
-
: Application (client) ID of the Azure AD application registration from which role should be
|
|
20
|
+
: Application (client) ID of the Azure AD application registration from which role should be removed. Specify either `appId`, `appObjectId` or `appName`
|
|
15
21
|
|
|
16
22
|
`--appObjectId [appObjectId]`
|
|
17
|
-
: Object ID of the Azure AD application registration from which role should be
|
|
23
|
+
: Object ID of the Azure AD application registration from which role should be removed. Specify either `appId`, `appObjectId` or `appName`
|
|
18
24
|
|
|
19
25
|
`--appName [appName]`
|
|
20
|
-
: Name of the Azure AD application registration from which role should be
|
|
26
|
+
: Name of the Azure AD application registration from which role should be removed. Specify either `appId`, `appObjectId` or `appName`
|
|
21
27
|
|
|
22
28
|
`-n, --name [name]`
|
|
23
|
-
: Name of the role to
|
|
29
|
+
: Name of the role to remove. Specify either `name`, `id` or `claim`
|
|
24
30
|
|
|
25
31
|
`-i, --id [id]`
|
|
26
|
-
: Id of the role to
|
|
32
|
+
: Id of the role to remove. Specify either `name`, `id` or `claim`
|
|
27
33
|
|
|
28
34
|
`-c, --claim [claim]`
|
|
29
|
-
: Claim value of the role to
|
|
35
|
+
: Claim value of the role to remove. Specify either `name`, `id` or `claim`
|
|
30
36
|
|
|
31
37
|
`--confirm`
|
|
32
|
-
: Don't prompt for confirmation to
|
|
38
|
+
: Don't prompt for confirmation to remove the role.
|
|
33
39
|
|
|
34
40
|
--8<-- "docs/cmd/_global.md"
|
|
35
41
|
|
|
36
42
|
## Remarks
|
|
37
43
|
|
|
38
|
-
For best performance use the `appObjectId` option to reference the Azure AD application registration from which to
|
|
44
|
+
For best performance use the `appObjectId` option to reference the Azure AD application registration from which to remove the role. If you use `appId` or `appName`, this command will first need to find the corresponding object ID for that application.
|
|
39
45
|
|
|
40
46
|
If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
41
47
|
|
|
42
48
|
If the command finds multiple roles with the specified role name, it will prompt you to disambiguate which role it should use, listing the claim values.
|
|
43
49
|
|
|
44
|
-
If the role to be
|
|
50
|
+
If the role to be removed is 'Enabled', this command will disable the role first and then remove.
|
|
45
51
|
|
|
46
52
|
## Examples
|
|
47
53
|
|
|
48
|
-
|
|
54
|
+
Remove role from a Azure AD application registration using object ID and role name options. Will prompt for confirmation before deleting the role.
|
|
49
55
|
|
|
50
56
|
```sh
|
|
51
|
-
m365 aad app role
|
|
57
|
+
m365 aad app role remove --appObjectId d75be2e1-0204-4f95-857d-51a37cf40be8 --name "Get Product"
|
|
52
58
|
```
|
|
53
59
|
|
|
54
|
-
|
|
60
|
+
Remove role from a Azure AD application registration using app (client) ID and role claim options. Will prompt for confirmation before deleting the role.
|
|
55
61
|
|
|
56
62
|
```sh
|
|
57
|
-
m365 aad app role
|
|
63
|
+
m365 aad app role remove --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --claim "Product.Get"
|
|
58
64
|
```
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
Remove role from a Azure AD application registration using app name and role claim options. Will prompt for confirmation before deleting the role.
|
|
61
67
|
|
|
62
68
|
```sh
|
|
63
|
-
m365 aad app role
|
|
69
|
+
m365 aad app role remove --appName "My app" --claim "Product.Get"
|
|
64
70
|
```
|
|
65
71
|
|
|
66
|
-
|
|
72
|
+
Remove role from a Azure AD application registration using object ID and role id options. Will NOT prompt for confirmation before deleting the role.
|
|
67
73
|
|
|
68
74
|
```sh
|
|
69
|
-
m365 aad app role
|
|
75
|
+
m365 aad app role remove --appObjectId d75be2e1-0204-4f95-857d-51a37cf40be8 --id 15927ce6-1933-4b2f-b029-4dee3d53f4dd --confirm
|
|
70
76
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# aad o365group add
|
|
2
2
|
|
|
3
|
-
Creates Microsoft 365 Group
|
|
3
|
+
Creates a Microsoft 365 Group
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -28,6 +28,18 @@ m365 aad o365group add [options]
|
|
|
28
28
|
`--isPrivate [isPrivate]`
|
|
29
29
|
: Set to `true` if the Microsoft 365 Group should be private and to `false` if it should be public (default)
|
|
30
30
|
|
|
31
|
+
`--allowMembersToPost [allowMembersToPost]`
|
|
32
|
+
: Set if only group members should be able to post conversations to the group
|
|
33
|
+
|
|
34
|
+
`--hideGroupInOutlook [hideGroupInOutlook]`
|
|
35
|
+
: Set to hide the group in Outlook experiences
|
|
36
|
+
|
|
37
|
+
`--subscribeNewGroupMembers [subscribeNewGroupMembers]`
|
|
38
|
+
: Set to subscribe all new group members to receive group conversation emails when new messages are posted in the group
|
|
39
|
+
|
|
40
|
+
`--welcomeEmailDisabled [welcomeEmailDisabled]`
|
|
41
|
+
: Set to not send welcome emails to new group members
|
|
42
|
+
|
|
31
43
|
`-l, --logoPath [logoPath]`
|
|
32
44
|
: Local path to the image file to use as group logo
|
|
33
45
|
|
|
@@ -43,29 +55,53 @@ If an invalid user is provided in the comma-separated list or Owners or Members,
|
|
|
43
55
|
Create a public Microsoft 365 Group
|
|
44
56
|
|
|
45
57
|
```sh
|
|
46
|
-
m365 aad o365group add --displayName Finance --description
|
|
58
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance
|
|
47
59
|
```
|
|
48
60
|
|
|
49
61
|
Create a private Microsoft 365 Group
|
|
50
62
|
|
|
51
63
|
```sh
|
|
52
|
-
m365 aad o365group add --displayName Finance --description
|
|
64
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --isPrivate true
|
|
53
65
|
```
|
|
54
66
|
|
|
55
67
|
Create a public Microsoft 365 Group and set specified users as its owners
|
|
56
68
|
|
|
57
69
|
```sh
|
|
58
|
-
m365 aad o365group add --displayName Finance --description
|
|
70
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --owners "DebraB@contoso.onmicrosoft.com,DiegoS@contoso.onmicrosoft.com"
|
|
59
71
|
```
|
|
60
72
|
|
|
61
73
|
Create a public Microsoft 365 Group and set specified users as its members
|
|
62
74
|
|
|
63
75
|
```sh
|
|
64
|
-
m365 aad o365group add --displayName Finance --description
|
|
76
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --members "DebraB@contoso.onmicrosoft.com,DiegoS@contoso.onmicrosoft.com"
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Create a public Microsoft 365 Group and allows only group members to be able to post conversations to the group.
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --allowMembersToPost
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Create a public Microsoft 365 Group and hides it from the Outlook experiences (web and client).
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --hideGroupInOutlook
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Create a public Microsoft 365 Group and subscribe all new group members to receive group conversation emails when new messages are posted in the group.
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --subscribeNewGroupMembers
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Create a public Microsoft 365 Group and set to not send welcome emails to new group members.
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --welcomeEmailDisabled
|
|
65
101
|
```
|
|
66
102
|
|
|
67
103
|
Create a public Microsoft 365 Group and set its logo
|
|
68
104
|
|
|
69
105
|
```sh
|
|
70
|
-
m365 aad o365group add --displayName Finance --description
|
|
106
|
+
m365 aad o365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --logoPath images/logo.png
|
|
71
107
|
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# aad o365group conversation post list
|
|
2
|
+
|
|
3
|
+
Lists conversation posts of a Microsoft 365 group
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 aad o365group conversation post list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --groupId [groupId]`
|
|
14
|
+
: The Id of the Office 365 Group. You can specify the groupId or groupDisplayName, but not both.
|
|
15
|
+
|
|
16
|
+
`-d, --groupDisplayName [groupDisplayName]`
|
|
17
|
+
: The Displayname of the Office 365 Group. You can specify the groupId or groupDisplayName, but not both.
|
|
18
|
+
|
|
19
|
+
`-t, --threadId <threadId>`
|
|
20
|
+
: The ID of the thread to retrieve details for
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Lists the posts of the specific conversation of Microsoft 365 group by groupId
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 aad o365group conversation post list --groupId '00000000-0000-0000-0000-000000000000' --threadId 'AAQkADkwN2Q2NDg1LWQ3ZGYtNDViZi1iNGRiLTVhYjJmN2Q5NDkxZQAQAOnRAfDf71lIvrdK85FAn5E='
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Lists the posts of the specific conversation of Microsoft 365 group by groupDisplayName
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 aad o365group conversation post list --groupDisplayName 'MyGroup' --threadId 'AAQkADkwN2Q2NDg1LWQ3ZGYtNDViZi1iNGRiLTVhYjJmN2Q5NDkxZQAQAOnRAfDf71lIvrdK85FAn5E='
|
|
36
|
+
```
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# pp managementapp add
|
|
2
|
+
|
|
3
|
+
Register management application for Power Platform
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 pp managementapp add [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--appId [appId]`
|
|
14
|
+
: Application (client) ID of the Azure AD application registration to register as a management app. Specify either `appId`, `objectId` or `name`
|
|
15
|
+
|
|
16
|
+
`--objectId [objectId]`
|
|
17
|
+
: Object ID of the Azure AD application registration to register as a management app. Specify either `appId`, `objectId` or `name`
|
|
18
|
+
|
|
19
|
+
`--name [name]`
|
|
20
|
+
: Name of the Azure AD application registration to register as a management app. Specify either `appId`, `objectId` or `name`
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
To execute this command the first time you'll need sign in using the Microsoft Azure PowerShell app registration. You can do this by executing `m365 login --appId 1950a258-227b-4e31-a9cf-717495945fc2`. To register the Azure AD app registration that CLI for Microsoft 365 uses by default, execute `m365 pp managementapp add--appId 31359c7f-bd7e-475c-86db-fdb8c937548e`.
|
|
27
|
+
|
|
28
|
+
For best performance use the `appId` option to reference the Azure AD application registration to update. If you use `objectId` or `name`, this command will first need to find the corresponding `appId` for that application.
|
|
29
|
+
|
|
30
|
+
If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
Register CLI for Microsoft 365 as a management application for the Power Platform
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
m365 pp managementapp add --appId 31359c7f-bd7e-475c-86db-fdb8c937548e
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Register Azure AD application with the specified object ID as a management application for the Power Platform
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
m365 pp managementapp add --objectId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Register Azure AD application named _My app_ as a management application for the Power Platform
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
m365 pp managementapp add --name "My app"
|
|
50
|
+
```
|
|
@@ -32,7 +32,7 @@ m365 spfx project upgrade [options]
|
|
|
32
32
|
|
|
33
33
|
## Remarks
|
|
34
34
|
|
|
35
|
-
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.14.0).
|
|
35
|
+
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.14.0). If you specify the `preview` option without a specific version, the command will upgrade your project to the latest preview version v1.15.0-beta.1.
|
|
36
36
|
|
|
37
37
|
This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
|
|
38
38
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# spo site recyclebinitem restore
|
|
2
|
+
|
|
3
|
+
Restores given items from the site recycle bin
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo site recyclebinitem restore [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --siteUrl <siteUrl>`
|
|
14
|
+
: URL of the site for which to restore the recycle bin items
|
|
15
|
+
|
|
16
|
+
`-i, --ids <ids>`
|
|
17
|
+
: List of ids of items which will be restored from the site recycle bin
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
Restore specific items by given ids from recycle bin for site _https://contoso.sharepoint.com/site_
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com/site --ids "ae6f97a7-280e-48d6-b481-0ea986c323da,aadbf916-1f71-42ee-abf2-8ee4802ae291"
|
|
27
|
+
```
|
|
@@ -33,23 +33,23 @@ A new chat conversation will be created if no existing conversation with the par
|
|
|
33
33
|
Send a message to a Microsoft Teams chat conversation by id
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
|
-
m365 teams chat message send --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2
|
|
36
|
+
m365 teams chat message send --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --message "Welcome to Teams"
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Send a message to a single person
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
m365 teams chat message send --userEmails alexw@contoso.com
|
|
42
|
+
m365 teams chat message send --userEmails alexw@contoso.com --message "Welcome to Teams"
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Send a message to a group of people
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
|
-
m365 teams chat message send --userEmails alexw@contoso.com,meganb@contoso.com
|
|
48
|
+
m365 teams chat message send --userEmails alexw@contoso.com,meganb@contoso.com --message "Welcome to Teams"
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
Send a message to a chat conversation finding it by display name
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
m365 teams chat message send --chatName "Just a conversation"
|
|
54
|
+
m365 teams chat message send --chatName "Just a conversation" --message "Welcome to Teams"
|
|
55
55
|
```
|