@pnp/cli-microsoft365 6.1.0-beta.a927083 → 6.1.0-beta.f03db2d
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 +2 -0
- package/dist/m365/pp/commands/chatbot/chatbot-get.js +111 -0
- package/dist/m365/pp/commands/chatbot/chatbot-remove.js +131 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-row-list.js +95 -0
- package/dist/m365/pp/commands/solution/solution-publisher-add.js +101 -0
- package/dist/m365/pp/commands.js +4 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +38 -0
- package/dist/m365/purview/commands.js +7 -0
- package/dist/m365/spo/commands/listitem/listitem-list.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +121 -0
- package/dist/m365/teams/commands/user/user-app-list.js +1 -1
- package/dist/m365/teams/commands.js +1 -0
- package/docs/docs/cmd/cli/cli-consent.md +20 -0
- package/docs/docs/cmd/cli/cli-doctor.md +50 -0
- package/docs/docs/cmd/cli/cli-issue.md +20 -0
- package/docs/docs/cmd/cli/cli-reconsent.md +20 -0
- package/docs/docs/cmd/cli/completion/completion-clink-update.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-setup.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-update.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-sh-setup.md +21 -1
- package/docs/docs/cmd/cli/completion/completion-sh-update.md +4 -0
- package/docs/docs/cmd/cli/config/config-get.md +22 -0
- package/docs/docs/cmd/cli/config/config-reset.md +4 -0
- package/docs/docs/cmd/cli/config/config-set.md +4 -0
- package/docs/docs/cmd/pp/chatbot/chatbot-get.md +123 -0
- package/docs/docs/cmd/pp/chatbot/chatbot-remove.md +52 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.md +90 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-add.md +49 -0
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.md +81 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-add.md +4 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +38 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +38 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +4 -0
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-list.md +69 -0
- package/docs/docs/cmd/teams/user/user-app-list.md +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _TeamsMeetingAttendancereportListCommand_instances, _TeamsMeetingAttendancereportListCommand_initTelemetry, _TeamsMeetingAttendancereportListCommand_initOptions, _TeamsMeetingAttendancereportListCommand_initValidators;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const Auth_1 = require("../../../../Auth");
|
|
19
|
+
const Cli_1 = require("../../../../cli/Cli");
|
|
20
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
|
+
const commands_1 = require("../../commands");
|
|
22
|
+
const odata_1 = require("../../../../utils/odata");
|
|
23
|
+
const validation_1 = require("../../../../utils/validation");
|
|
24
|
+
const AadUserGetCommand = require("../../../aad/commands/user/user-get");
|
|
25
|
+
const accessToken_1 = require("../../../../utils/accessToken");
|
|
26
|
+
class TeamsMeetingAttendancereportListCommand extends GraphCommand_1.default {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
_TeamsMeetingAttendancereportListCommand_instances.add(this);
|
|
30
|
+
__classPrivateFieldGet(this, _TeamsMeetingAttendancereportListCommand_instances, "m", _TeamsMeetingAttendancereportListCommand_initTelemetry).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _TeamsMeetingAttendancereportListCommand_instances, "m", _TeamsMeetingAttendancereportListCommand_initOptions).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _TeamsMeetingAttendancereportListCommand_instances, "m", _TeamsMeetingAttendancereportListCommand_initValidators).call(this);
|
|
33
|
+
}
|
|
34
|
+
get name() {
|
|
35
|
+
return commands_1.default.MEETING_ATTENDANCEREPORT_LIST;
|
|
36
|
+
}
|
|
37
|
+
get description() {
|
|
38
|
+
return 'Lists all attendance reports for a given meeting';
|
|
39
|
+
}
|
|
40
|
+
defaultProperties() {
|
|
41
|
+
return ['id', 'totalParticipantCount'];
|
|
42
|
+
}
|
|
43
|
+
commandAction(logger, args) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
const isAppOnlyAuth = accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken);
|
|
46
|
+
if (isAppOnlyAuth && !args.options.userId && !args.options.userName && !args.options.email) {
|
|
47
|
+
this.handleError(`The option 'userId', 'userName' or 'email' is required when retrieving meeting attendance report using app only permissions`);
|
|
48
|
+
}
|
|
49
|
+
else if (!isAppOnlyAuth && (args.options.userId || args.options.userName || args.options.email)) {
|
|
50
|
+
this.handleError(`The options 'userId', 'userName' and 'email' cannot be used when retrieving meeting attendance reports using delegated permissions`);
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
if (this.verbose) {
|
|
54
|
+
logger.logToStderr(`Retrieving attendance report for ${isAppOnlyAuth ? 'specific user' : 'currently logged in user'}`);
|
|
55
|
+
}
|
|
56
|
+
let requestUrl = `${this.resource}/v1.0/`;
|
|
57
|
+
if (isAppOnlyAuth) {
|
|
58
|
+
requestUrl += 'users/';
|
|
59
|
+
if (args.options.userId) {
|
|
60
|
+
requestUrl += args.options.userId;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const userId = yield this.getUserId(args.options.userName, args.options.email);
|
|
64
|
+
requestUrl += userId;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
requestUrl += `me`;
|
|
69
|
+
}
|
|
70
|
+
requestUrl += `/onlineMeetings/${args.options.meetingId}/attendanceReports`;
|
|
71
|
+
const res = yield odata_1.odata.getAllItems(requestUrl);
|
|
72
|
+
logger.log(res);
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
this.handleRejectedODataJsonPromise(err);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
getUserId(userName, email) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const options = {
|
|
82
|
+
email: email,
|
|
83
|
+
userName: userName,
|
|
84
|
+
output: 'json',
|
|
85
|
+
debug: this.debug,
|
|
86
|
+
verbose: this.verbose
|
|
87
|
+
};
|
|
88
|
+
const output = yield Cli_1.Cli.executeCommandWithOutput(AadUserGetCommand, { options: Object.assign(Object.assign({}, options), { _: [] }) });
|
|
89
|
+
const getUserOutput = JSON.parse(output.stdout);
|
|
90
|
+
return getUserOutput.id;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
_TeamsMeetingAttendancereportListCommand_instances = new WeakSet(), _TeamsMeetingAttendancereportListCommand_initTelemetry = function _TeamsMeetingAttendancereportListCommand_initTelemetry() {
|
|
95
|
+
this.telemetry.push((args) => {
|
|
96
|
+
Object.assign(this.telemetryProperties, {
|
|
97
|
+
userId: typeof args.options.userId !== 'undefined',
|
|
98
|
+
userName: typeof args.options.userName !== 'undefined',
|
|
99
|
+
email: typeof args.options.email !== 'undefined'
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}, _TeamsMeetingAttendancereportListCommand_initOptions = function _TeamsMeetingAttendancereportListCommand_initOptions() {
|
|
103
|
+
this.options.unshift({
|
|
104
|
+
option: '-u, --userId [userId]'
|
|
105
|
+
}, {
|
|
106
|
+
option: '-n, --userName [userName]'
|
|
107
|
+
}, {
|
|
108
|
+
option: '--email [email]'
|
|
109
|
+
}, {
|
|
110
|
+
option: '-m, --meetingId <meetingId>'
|
|
111
|
+
});
|
|
112
|
+
}, _TeamsMeetingAttendancereportListCommand_initValidators = function _TeamsMeetingAttendancereportListCommand_initValidators() {
|
|
113
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
if (args.options.userId && !validation_1.validation.isValidGuid(args.options.userId)) {
|
|
115
|
+
return `${args.options.userId} is not a valid Guid`;
|
|
116
|
+
}
|
|
117
|
+
return true;
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
module.exports = new TeamsMeetingAttendancereportListCommand();
|
|
121
|
+
//# sourceMappingURL=meeting-attendancereport-list.js.map
|
|
@@ -40,7 +40,7 @@ class TeamsUserAppListCommand extends GraphCommand_1.default {
|
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
try {
|
|
42
42
|
const userId = (yield this.getUserId(args)).value;
|
|
43
|
-
const endpoint = `${this.resource}/v1.0/users/${formatting_1.formatting.encodeQueryParameter(userId)}/teamwork/installedApps?$expand=teamsAppDefinition`;
|
|
43
|
+
const endpoint = `${this.resource}/v1.0/users/${formatting_1.formatting.encodeQueryParameter(userId)}/teamwork/installedApps?$expand=teamsAppDefinition,teamsApp`;
|
|
44
44
|
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
45
45
|
items.forEach(i => {
|
|
46
46
|
const userAppId = Buffer.from(i.id, 'base64').toString('ascii');
|
|
@@ -27,6 +27,7 @@ exports.default = {
|
|
|
27
27
|
FUNSETTINGS_SET: `${prefix} funsettings set`,
|
|
28
28
|
GUESTSETTINGS_LIST: `${prefix} guestsettings list`,
|
|
29
29
|
GUESTSETTINGS_SET: `${prefix} guestsettings set`,
|
|
30
|
+
MEETING_ATTENDANCEREPORT_LIST: `${prefix} meeting attendancereport list`,
|
|
30
31
|
MEETING_GET: `${prefix} meeting get`,
|
|
31
32
|
MEETING_LIST: `${prefix} meeting list`,
|
|
32
33
|
MEMBERSETTINGS_LIST: `${prefix} membersettings list`,
|
|
@@ -30,3 +30,23 @@ Consent permissions to the Yammer API
|
|
|
30
30
|
```sh
|
|
31
31
|
m365 cli consent --service yammer
|
|
32
32
|
```
|
|
33
|
+
|
|
34
|
+
## Response
|
|
35
|
+
|
|
36
|
+
=== "JSON"
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
"To consent permissions for executing yammer commands, navigate in your web browser to https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&scope=https%3A%2F%2Fapi.yammer.com%2Fuser_impersonation"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
=== "Text"
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
To consent permissions for executing yammer commands, navigate in your web browser to https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&scope=https%3A%2F%2Fapi.yammer.com%2Fuser_impersonation
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
=== "CSV"
|
|
49
|
+
|
|
50
|
+
```csv
|
|
51
|
+
To consent permissions for executing yammer commands, navigate in your web browser to https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&scope=https%3A%2F%2Fapi.yammer.com%2Fuser_impersonation
|
|
52
|
+
```
|
|
@@ -23,3 +23,53 @@ Retrieve diagnostic information
|
|
|
23
23
|
```sh
|
|
24
24
|
m365 cli doctor
|
|
25
25
|
```
|
|
26
|
+
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
=== "JSON"
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"os": {
|
|
34
|
+
"platform": "win32",
|
|
35
|
+
"version": "Windows 10 Pro",
|
|
36
|
+
"release": "10.0.19045"
|
|
37
|
+
},
|
|
38
|
+
"cliVersion": "6.1.0",
|
|
39
|
+
"nodeVersion": "v16.13.0",
|
|
40
|
+
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
|
|
41
|
+
"cliAadAppTenant": "common",
|
|
42
|
+
"authMode": "DeviceCode",
|
|
43
|
+
"cliEnvironment": "",
|
|
44
|
+
"cliConfig": {
|
|
45
|
+
"output": "json",
|
|
46
|
+
"showHelpOnFailure": false
|
|
47
|
+
},
|
|
48
|
+
"roles": [],
|
|
49
|
+
"scopes": [
|
|
50
|
+
"AllSites.FullControl"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
=== "Text"
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
authMode : DeviceCode
|
|
59
|
+
cliAadAppId : 31359c7f-bd7e-475c-86db-fdb8c937548e
|
|
60
|
+
cliAadAppTenant: common
|
|
61
|
+
cliConfig : {"output":"json","showHelpOnFailure":false}
|
|
62
|
+
cliEnvironment :
|
|
63
|
+
cliVersion : 6.1.0
|
|
64
|
+
nodeVersion : v16.13.0
|
|
65
|
+
os : {"platform":"win32","version":"Windows 10 Pro","release":"10.0.19045"}
|
|
66
|
+
roles : []
|
|
67
|
+
scopes : ["AllSites.FullControl"]
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
=== "CSV"
|
|
71
|
+
|
|
72
|
+
```csv
|
|
73
|
+
os,cliVersion,nodeVersion,cliAadAppId,cliAadAppTenant,authMode,cliEnvironment,cliConfig,roles,scopes
|
|
74
|
+
"{""platform"":""win32"",""version"":""Windows 10 Pro"",""release"":""10.0.19045""}",6.1.0,v16.13.0,31359c7f-bd7e-475c-86db-fdb8c937548e,common,DeviceCode,,"{""output"":""json"",""showHelpOnFailure"":false}",[],"[""AllSites.FullControl""]"
|
|
75
|
+
```
|
|
@@ -32,3 +32,23 @@ Suggest a new command
|
|
|
32
32
|
```sh
|
|
33
33
|
m365 cli issue --type command
|
|
34
34
|
```
|
|
35
|
+
|
|
36
|
+
## Response
|
|
37
|
+
|
|
38
|
+
=== "JSON"
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
"https://aka.ms/cli-m365/new-command"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
=== "Text"
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
https://aka.ms/cli-m365/new-command
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
=== "CSV"
|
|
51
|
+
|
|
52
|
+
```csv
|
|
53
|
+
https://aka.ms/cli-m365/new-command
|
|
54
|
+
```
|
|
@@ -20,6 +20,26 @@ Get the URL to open in the browser to re-consent CLI for Microsoft 365 permissio
|
|
|
20
20
|
m365 cli reconsent
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
## Response
|
|
24
|
+
|
|
25
|
+
=== "JSON"
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
"To re-consent the PnP Microsoft 365 Management Shell Azure AD application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
=== "Text"
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
To re-consent the PnP Microsoft 365 Management Shell Azure AD application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
=== "CSV"
|
|
38
|
+
|
|
39
|
+
```csv
|
|
40
|
+
To re-consent the PnP Microsoft 365 Management Shell Azure AD application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
|
|
41
|
+
```
|
|
42
|
+
|
|
23
43
|
## More information
|
|
24
44
|
|
|
25
45
|
- Re-consent the PnP Microsoft 365 Management Shell Azure AD application: [https://pnp.github.io/cli-microsoft365/user-guide/connecting-office-365/#re-consent-the-pnp-office-365-management-shell-azure-ad-application](https://pnp.github.io/cli-microsoft365/user-guide/connecting-office-365/#re-consent-the-pnp-office-365-management-shell-azure-ad-application)
|
|
@@ -24,9 +24,13 @@ This commands updates the list of commands and their options used by command com
|
|
|
24
24
|
Write the list of commands for Clink (cmder) command completion to a file named `m365.lua` in the current directory
|
|
25
25
|
|
|
26
26
|
```powershell
|
|
27
|
-
cli completion clink update > m365.lua
|
|
27
|
+
m365 cli completion clink update > m365.lua
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
## Response
|
|
31
|
+
|
|
32
|
+
The command won't return a response on success.
|
|
33
|
+
|
|
30
34
|
## More information
|
|
31
35
|
|
|
32
36
|
- Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
|
|
@@ -26,9 +26,13 @@ If the specified profile path doesn't exist, the CLI will try to create it.
|
|
|
26
26
|
Set up command completion for PowerShell using the profile from the profile variable
|
|
27
27
|
|
|
28
28
|
```powershell
|
|
29
|
-
cli completion pwsh setup --profile $profile
|
|
29
|
+
m365 cli completion pwsh setup --profile $profile
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
## Response
|
|
33
|
+
|
|
34
|
+
The command won't return a response on success.
|
|
35
|
+
|
|
32
36
|
## More information
|
|
33
37
|
|
|
34
38
|
- Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
|
|
@@ -21,9 +21,13 @@ This commands updates the list of commands and their options used by command com
|
|
|
21
21
|
Update list of commands for PowerShell command completion
|
|
22
22
|
|
|
23
23
|
```powershell
|
|
24
|
-
cli completion pwsh update
|
|
24
|
+
m365 cli completion pwsh update
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
The command won't return a response on success.
|
|
30
|
+
|
|
27
31
|
## More information
|
|
28
32
|
|
|
29
33
|
- Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
|
|
@@ -17,9 +17,29 @@ m365 cli completion sh setup [options]
|
|
|
17
17
|
Set up command completion for Zsh, Bash or Fish
|
|
18
18
|
|
|
19
19
|
```powershell
|
|
20
|
-
cli completion sh setup
|
|
20
|
+
m365 cli completion sh setup
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
## Response
|
|
24
|
+
|
|
25
|
+
=== "JSON"
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
"Command completion successfully registered. Restart your shell to load the completion"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
=== "Text"
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
Command completion successfully registered. Restart your shell to load the completion
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
=== "CSV"
|
|
38
|
+
|
|
39
|
+
```csv
|
|
40
|
+
Command completion successfully registered. Restart your shell to load the completion
|
|
41
|
+
```
|
|
42
|
+
|
|
23
43
|
## More information
|
|
24
44
|
|
|
25
45
|
- Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
|
|
@@ -24,6 +24,10 @@ Update list of commands for Zsh, Bash and Fish command completion
|
|
|
24
24
|
m365 cli completion sh update
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
The command won't return a response on success.
|
|
30
|
+
|
|
27
31
|
## More information
|
|
28
32
|
|
|
29
33
|
- Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
|
|
@@ -29,6 +29,28 @@ Get the output configured for CLI for Microsoft 365
|
|
|
29
29
|
m365 cli config get --key output
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
## Response
|
|
33
|
+
|
|
34
|
+
When retrieving the `output` key, responses will look like this:
|
|
35
|
+
|
|
36
|
+
=== "JSON"
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
"json"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
=== "Text"
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
json
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
=== "CSV"
|
|
49
|
+
|
|
50
|
+
```csv
|
|
51
|
+
json
|
|
52
|
+
```
|
|
53
|
+
|
|
32
54
|
## More information
|
|
33
55
|
|
|
34
56
|
- [Configuring the CLI for Microsoft 365](../../../user-guide/configuring-cli.md)
|
|
@@ -31,6 +31,10 @@ Reset all configuration settings to default
|
|
|
31
31
|
m365 cli config reset
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
## Response
|
|
35
|
+
|
|
36
|
+
The command won't return a response on success.
|
|
37
|
+
|
|
34
38
|
## More information
|
|
35
39
|
|
|
36
40
|
- [Configuring the CLI for Microsoft 365](../../../user-guide/configuring-cli.md)
|
|
@@ -34,6 +34,10 @@ Configure the default CLI output to JSON
|
|
|
34
34
|
m365 cli config set --key output --value json
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
## Response
|
|
38
|
+
|
|
39
|
+
The command won't return a response on success.
|
|
40
|
+
|
|
37
41
|
## More information
|
|
38
42
|
|
|
39
43
|
- [Configuring the CLI for Microsoft 365](../../../user-guide/configuring-cli.md)
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# pp chatbot get
|
|
2
|
+
|
|
3
|
+
Get information about the specified chatbot
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pp chatbot get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-e, --environment <environment>`
|
|
14
|
+
: The name of the environment.
|
|
15
|
+
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The id of the chatbot. Specify either `id` or `name` but not both.
|
|
18
|
+
|
|
19
|
+
`-n, --name [name]`
|
|
20
|
+
: The name of the chatbot. Specify either `id` or `name` but not both.
|
|
21
|
+
|
|
22
|
+
`--asAdmin`
|
|
23
|
+
: Run the command as admin for environments you do not have explicitly assigned permissions to.
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Get a specific chatbot in a specific environment based on name
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 pp chatbot get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Chatbot"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Get a specific chatbot in a specific environment based on name as admin
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 pp chatbot get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Chatbot" --asAdmin
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Get a specific chatbot in a specific environment based on id
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 pp chatbot get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "3a081d91-5ea8-40a7-8ac9-abbaa3fcb893"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Get a specific chatbot in a specific environment based on id as admin
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 pp chatbot get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "3a081d91-5ea8-40a7-8ac9-abbaa3fcb893" --asAdmin
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
=== "JSON"
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"authenticationtrigger": 0,
|
|
60
|
+
"_owningbusinessunit_value": "6da087c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
61
|
+
"statuscode": 1,
|
|
62
|
+
"createdon": "2022-11-19T10:42:22Z",
|
|
63
|
+
"statecode": 0,
|
|
64
|
+
"schemaname": "new_bot_23f5f58697fd43d595eb451c9797a53d",
|
|
65
|
+
"_ownerid_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
66
|
+
"overwritetime": "1900-01-01T00:00:00Z",
|
|
67
|
+
"name": "CLI 365 Chatbot",
|
|
68
|
+
"solutionid": "fd140aae-4df4-11dd-bd17-0019b9312238",
|
|
69
|
+
"ismanaged": false,
|
|
70
|
+
"versionnumber": 1421457,
|
|
71
|
+
"language": 1033,
|
|
72
|
+
"_modifiedby_value": "5f91d7a7-5f46-494a-80fa-5c18b0221351",
|
|
73
|
+
"_modifiedonbehalfby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
74
|
+
"modifiedon": "2022-11-19T10:42:24Z",
|
|
75
|
+
"componentstate": 0,
|
|
76
|
+
"botid": "3a081d91-5ea8-40a7-8ac9-abbaa3fcb893",
|
|
77
|
+
"_createdby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
78
|
+
"componentidunique": "cdcd6496-e25d-4ad1-91cf-3f4d547fdd23",
|
|
79
|
+
"authenticationmode": 1,
|
|
80
|
+
"_owninguser_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
81
|
+
"accesscontrolpolicy": 0,
|
|
82
|
+
"runtimeprovider": 0,
|
|
83
|
+
"_publishedby_value": "John Doe",
|
|
84
|
+
"authenticationconfiguration": null,
|
|
85
|
+
"authorizedsecuritygroupids": null,
|
|
86
|
+
"overriddencreatedon": null,
|
|
87
|
+
"applicationmanifestinformation": null,
|
|
88
|
+
"importsequencenumber": null,
|
|
89
|
+
"synchronizationstatus": null,
|
|
90
|
+
"template": null,
|
|
91
|
+
"_providerconnectionreferenceid_value": null,
|
|
92
|
+
"configuration": null,
|
|
93
|
+
"utcconversiontimezonecode": null,
|
|
94
|
+
"publishedon": "2022-11-19T10:43:24Z",
|
|
95
|
+
"_createdonbehalfby_value": null,
|
|
96
|
+
"iconbase64": null,
|
|
97
|
+
"supportedlanguages": null,
|
|
98
|
+
"_owningteam_value": null,
|
|
99
|
+
"timezoneruleversionnumber": null,
|
|
100
|
+
"iscustomizable": {
|
|
101
|
+
"Value": true,
|
|
102
|
+
"CanBeChanged": true,
|
|
103
|
+
"ManagedPropertyLogicalName": "iscustomizableanddeletable"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
=== "Text"
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
botid : 3a081d91-5ea8-40a7-8ac9-abbaa3fcb893
|
|
112
|
+
createdon : 2022-11-19T10:42:22Z
|
|
113
|
+
modifiedon : 2022-11-19T10:42:24Z
|
|
114
|
+
name : CLI 365 Chatbot
|
|
115
|
+
publishedon: 2022-11-19T10:43:24Z
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
=== "CSV"
|
|
119
|
+
|
|
120
|
+
```csv
|
|
121
|
+
name,botid,publishedon,createdon,modifiedon
|
|
122
|
+
CLI 365 Chatbot,3a081d91-5ea8-40a7-8ac9-abbaa3fcb893,2022-11-19T10:43:24Z,2022-11-19T10:42:22Z,2022-11-19T10:42:24Z
|
|
123
|
+
```
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# pp chatbot remove
|
|
2
|
+
|
|
3
|
+
Removes the specified chatbot
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 pp chatbot remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-e, --environment <environment>`
|
|
14
|
+
: The name of the environment.
|
|
15
|
+
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The id of the chatbot. Specify either `id` or `name` but not both.
|
|
18
|
+
|
|
19
|
+
`-n, --name [name]`
|
|
20
|
+
: The name of the chatbot. Specify either `id` or `name` but not both.
|
|
21
|
+
|
|
22
|
+
`--asAdmin`
|
|
23
|
+
: Run the command as admin for environments you do not have explicitly assigned permissions to.
|
|
24
|
+
|
|
25
|
+
`--confirm`
|
|
26
|
+
: Don't prompt for confirmation.
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
Removes the specified Microsoft Power Platform chatbot owned by the currently signed-in user based on name
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 pp chatbot remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "Chatbot Name"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Removes the specified Microsoft Power Platform chatbot owned by the currently signed-in user based on id without confirmation
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 pp chatbot remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 9d9a13d0-6255-ed11-bba2-000d3adf774e --confirm
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Removes the specified Microsoft Power Platform chatbot owned by another user based on name
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 pp chatbot remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "Chatbot Name" --asAdmin
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
The command won't return a response on success.
|