@pnp/cli-microsoft365 7.10.0-beta.a743796 → 7.10.0-beta.ebb7426

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.
@@ -67,6 +67,7 @@ export default {
67
67
  USER_SET: `${prefix} user set`,
68
68
  USER_APP_ADD: `${prefix} user app add`,
69
69
  USER_APP_LIST: `${prefix} user app list`,
70
- USER_APP_REMOVE: `${prefix} user app remove`
70
+ USER_APP_REMOVE: `${prefix} user app remove`,
71
+ USER_APP_UPGRADE: `${prefix} user app upgrade`
71
72
  };
72
73
  //# sourceMappingURL=commands.js.map
package/dist/utils/md.js CHANGED
@@ -22,7 +22,7 @@ function includeContent(md, rootFolder) {
22
22
  { tag: "<CLISettings />", location: "docs/_clisettings.mdx" }
23
23
  ];
24
24
  mdxImports.forEach(mdxImport => {
25
- md = md.replace(mdxImport.tag, () => fs.readFileSync(path.join(rootFolder, mdxImport.location), 'utf8')).replace(/(```\r\n)\r\n(```md definition-list\r\n)/g, "$1$2");
25
+ md = md.replace(mdxImport.tag, () => fs.readFileSync(path.join(rootFolder, mdxImport.location), 'utf8')).replace(/(```\r?\n)\r?\n(```md definition-list\r?\n)/g, "$1$2");
26
26
  });
27
27
  return md;
28
28
  }
@@ -54,7 +54,7 @@ function convertContentTabs(md) {
54
54
  .trim();
55
55
  }
56
56
  function convertCodeFences(md) {
57
- const regex = new RegExp('^```.*?(?:\r\n|\n)(.*?)```(?:\r\n|\n)', 'gms');
57
+ const regex = new RegExp('^```.*?(?:\r?\n)(.*?)```(?:\r?\n)', 'gms');
58
58
  return md.replace(regex, (match, code) => {
59
59
  return `${code.replace(/^(.+)$/gm, ' $1')}${EOL}`;
60
60
  });
@@ -0,0 +1,60 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # entra app permission remove
4
+
5
+ Removes the specified application and/or delegated permissions from a specified Entra app.
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 entra app permission remove [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-i, --appId [appId]`
17
+ : Client ID of the Microsoft Entra app to add the API permissions to. Specify either `appId`, `appName` or `appObjectId`.
18
+
19
+ `--appObjectId [appObjectId]`
20
+ : Object ID of the Microsoft Entra app to add the API permissions to. Specify either `appId`, `appName` or `appObjectId`.
21
+
22
+ `-n, --appName [appName]`
23
+ : Display name of the Entra app to remove the API permissions from. Specify either `appId`, `appName` or `appObjectId`.
24
+
25
+ `-a, --applicationPermissions [applicationPermissions]`
26
+ : Space-separated list of application permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
27
+
28
+ `-d, --delegatedPermissions [delegatedPermissions]`
29
+ : Space-separated list of delegated permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
30
+
31
+ `--revokeAdminConsent`
32
+ : When specified, revokes the admin consent for the specified permissions as well.
33
+
34
+ `-f, --force`
35
+ : Don't prompt for confirmation to remove the permissions.
36
+ ```
37
+
38
+ <Global />
39
+
40
+ ## Remarks
41
+
42
+ Removing permissions on App Registrations does not immediately remove consent given by an administrator. Explicitly instruct the CLI to revoke consent by using the `--revokeAdminConsent` flag.
43
+
44
+ ## Examples
45
+
46
+ Remove multiple delegated API permissions from an Entra app registration
47
+
48
+ ```sh
49
+ m365 entra app permission remove --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --delegatedPermissions 'https://management.azure.com/user_impersonation https://service.flow.microsoft.com/Flows.Read.All https://graph.microsoft.com/Agreement.Read.All'
50
+ ```
51
+
52
+ Remove multiple app-only permissions from an Entra app registration and revoke admin consent
53
+
54
+ ```sh
55
+ m365 entra app permission remove --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --applicationPermissions 'https://graph.microsoft.com/Sites.FullControl.All https://microsoft.sharepoint-df.com/Sites.FullControl.All' --revokeAdminConsent
56
+ ```
57
+
58
+ ## Response
59
+
60
+ The command won't return a response on success.
@@ -0,0 +1,63 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo tenant site archive
6
+
7
+ Archives a site collection
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo tenant site archive [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --url <url>`
19
+ : URL of the site collection.
20
+
21
+ `-f, --force`
22
+ : Don't prompt for confirmation.
23
+ ```
24
+
25
+ <Global />
26
+
27
+ ## Remarks
28
+
29
+ :::info
30
+
31
+ To use this command, you must be a Global or SharePoint administrator.
32
+
33
+ :::
34
+
35
+ :::note
36
+
37
+ After running this command, it may take a few minutes for the site to be fully archived.
38
+
39
+ :::
40
+
41
+
42
+ ## Examples
43
+
44
+ Archive a specific SharePoint site collection
45
+
46
+ ```sh
47
+ m365 spo tenant site archive --url "https://contoso.sharepoint.com/sites/Marketing"
48
+ ```
49
+
50
+ Archive a specific SharePoint site collection without confirmation prompt
51
+
52
+ ```sh
53
+ m365 spo tenant site archive --url "https://contoso.sharepoint.com/sites/Marketing" --force
54
+ ```
55
+
56
+ ## Response
57
+
58
+ The command won't return a response on success.
59
+
60
+ ## More information
61
+
62
+ - Pricing model for Microsoft 365 Archive: [https://learn.microsoft.com/microsoft-365/archive/archive-pricing](https://learn.microsoft.com/microsoft-365/archive/archive-pricing)
63
+ - Set up Microsoft 365 Archive: [https://learn.microsoft.com/microsoft-365/archive/archive-setup](https://learn.microsoft.com/microsoft-365/archive/archive-setup)
@@ -0,0 +1,67 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo tenant site unarchive
6
+
7
+ Unarchives a site collection
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo tenant site unarchive [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --url <url>`
19
+ : URL of the site collection.
20
+
21
+ `-f, --force`
22
+ : Don't prompt for confirmation.
23
+ ```
24
+
25
+ <Global />
26
+
27
+ ## Remarks
28
+
29
+ :::info
30
+
31
+ To use this command, you must be a Global or SharePoint administrator.
32
+
33
+ :::
34
+
35
+ :::warning
36
+
37
+ If a site remains archived for more than **seven days**, the reactivation fee will be calculated based on the entire storage capacity of the site.
38
+
39
+ :::
40
+
41
+ :::note
42
+
43
+ After running this command, it may take a few minutes for the site to be fully restored.
44
+
45
+ :::
46
+
47
+ ## Examples
48
+
49
+ Unarchive a specific site collection.
50
+
51
+ ```sh
52
+ m365 spo tenant site unarchive --url "https://contoso.sharepoint.com/sites/Marketing"
53
+ ```
54
+
55
+ Unarchive a specific site collection without confirmation prompt.
56
+
57
+ ```sh
58
+ m365 spo tenant site unarchive --url "https://contoso.sharepoint.com/sites/Marketing" --force
59
+ ```
60
+
61
+ ## Response
62
+
63
+ The command won't return a response on success.
64
+
65
+ ## More information
66
+
67
+ - Pricing model for Microsoft 365 Archive: [https://learn.microsoft.com/microsoft-365/archive/archive-pricing](https://learn.microsoft.com/microsoft-365/archive/archive-pricing)
@@ -35,6 +35,7 @@ m365 status
35
35
 
36
36
  ```json
37
37
  {
38
+ "connectionName": "dd8b99a7-77c6-4238-a609-396d27844921",
38
39
  "connectedAs": "john.doe@contoso.onmicrosoft.com",
39
40
  "authType": "DeviceCode",
40
41
  "appId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
@@ -47,19 +48,20 @@ m365 status
47
48
  <TabItem value="Text">
48
49
 
49
50
  ```text
50
- appId : 31359c7f-bd7e-475c-86db-fdb8c937548e
51
- appTenant : common
52
- authType : DeviceCode
53
- connectedAs: john.doe@contoso.onmicrosoft.com
54
- cloudType : Public
51
+ appId : 31359c7f-bd7e-475c-86db-fdb8c937548e
52
+ appTenant : common
53
+ authType : DeviceCode
54
+ cloudType : Public
55
+ connectedAs : john.doe@contoso.onmicrosoft.com
56
+ connectionName: dd8b99a7-77c6-4238-a609-396d27844921
55
57
  ```
56
58
 
57
59
  </TabItem>
58
60
  <TabItem value="CSV">
59
61
 
60
62
  ```csv
61
- connectedAs,authType,appId,appTenant,cloudType
62
- john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common,Public
63
+ connectionName,connectedAs,authType,appId,appTenant,cloudType
64
+ dd8b99a7-77c6-4238-a609-396d27844921,john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common,Public
63
65
  ```
64
66
 
65
67
  </TabItem>
@@ -70,10 +72,9 @@ m365 status
70
72
 
71
73
  Date: 7/2/2023
72
74
 
73
-
74
-
75
75
  Property | Value
76
76
  ---------|-------
77
+ connectionName | dd8b99a7-77c6-4238-a609-396d27844921
77
78
  connectedAs | john.doe@contoso.onmicrosoft.com
78
79
  authType | DeviceCode
79
80
  appId | 31359c7f-bd7e-475c-86db-fdb8c937548e
@@ -0,0 +1,59 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # teams user app upgrade
4
+
5
+ Upgrade an app in the personal scope of the specified user
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 teams user app upgrade [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `--id [id]`
17
+ : The unique id of the app instance installed for the user. Specify either `id` or `name`.
18
+
19
+ `--name [name]`
20
+ : Name of the app instance installed for the user. Specify either `id` or `name`.
21
+
22
+ `--userId [userId]`
23
+ : The ID of the user to upgrade the app for. Specify either `userId` or `userName` but not both.
24
+
25
+ `--userName [userName]`
26
+ : The UPN of the user to upgrade the app for. Specify either `userId` or `userName` but not both.
27
+ ```
28
+
29
+ <Global />
30
+
31
+ ## Examples
32
+
33
+ Upgrade an app by name for the specified user using its UPN.
34
+
35
+ ```sh
36
+ m365 teams user app upgrade --name HelloWorld --userName admin@contoso.com
37
+ ```
38
+
39
+ Upgrade an app by name for the specified user using its id.
40
+
41
+ ```sh
42
+ m365 teams user app upgrade --name HelloWorld --userId 2609af39-7775-4f94-a3dc-0dd67657e900
43
+ ```
44
+
45
+ Upgrade an app by id for the specified user using its UPN.
46
+
47
+ ```sh
48
+ m365 teams user app upgrade --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userName admin@contoso.com
49
+ ```
50
+
51
+ Upgrade an app by id for the specified user using its id.
52
+
53
+ ```sh
54
+ m365 teams user app upgrade --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userId 2609af39-7775-4f94-a3dc-0dd67657e900
55
+ ```
56
+
57
+ ## Response
58
+
59
+ The command won't return a response on success.