@microsoft/apps-cli 0.0.1 → 0.4.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/README.md +281 -1
- package/dist/ArgumentProvider.d.ts +102 -0
- package/dist/ArgumentProvider.d.ts.map +1 -0
- package/dist/ArgumentProvider.js +376 -0
- package/dist/ArgumentProvider.js.map +1 -0
- package/dist/Authentication/NodeMsalAuthenticationProvider.d.ts +18 -0
- package/dist/Authentication/NodeMsalAuthenticationProvider.d.ts.map +1 -0
- package/dist/Authentication/NodeMsalAuthenticationProvider.js +99 -0
- package/dist/Authentication/NodeMsalAuthenticationProvider.js.map +1 -0
- package/dist/Authentication/OrchardAuthenticationProvider.d.ts +13 -0
- package/dist/Authentication/OrchardAuthenticationProvider.d.ts.map +1 -0
- package/dist/Authentication/OrchardAuthenticationProvider.js +30 -0
- package/dist/Authentication/OrchardAuthenticationProvider.js.map +1 -0
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.d.ts +23 -0
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.d.ts.map +1 -0
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.js +60 -0
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.js.map +1 -0
- package/dist/Bin.d.ts +6 -0
- package/dist/Bin.d.ts.map +1 -0
- package/dist/Bin.js +7 -0
- package/dist/Bin.js.map +1 -0
- package/dist/Cli.d.ts +2 -0
- package/dist/Cli.d.ts.map +1 -0
- package/dist/Cli.js +95 -0
- package/dist/Cli.js.map +1 -0
- package/dist/CliSettings.d.ts +14 -0
- package/dist/CliSettings.d.ts.map +1 -0
- package/dist/CliSettings.js +76 -0
- package/dist/CliSettings.js.map +1 -0
- package/dist/CliUtils.d.ts +92 -0
- package/dist/CliUtils.d.ts.map +1 -0
- package/dist/CliUtils.js +218 -0
- package/dist/CliUtils.js.map +1 -0
- package/dist/Constants/CliConstants.d.ts +6 -0
- package/dist/Constants/CliConstants.d.ts.map +1 -0
- package/dist/Constants/CliConstants.js +6 -0
- package/dist/Constants/CliConstants.js.map +1 -0
- package/dist/Constants/CommandRegistry.d.ts +23 -0
- package/dist/Constants/CommandRegistry.d.ts.map +1 -0
- package/dist/Constants/CommandRegistry.js +197 -0
- package/dist/Constants/CommandRegistry.js.map +1 -0
- package/dist/Constants/HelpStrings.d.ts +329 -0
- package/dist/Constants/HelpStrings.d.ts.map +1 -0
- package/dist/Constants/HelpStrings.js +451 -0
- package/dist/Constants/HelpStrings.js.map +1 -0
- package/dist/Constants.d.ts +10 -0
- package/dist/Constants.d.ts.map +1 -0
- package/dist/Constants.js +18 -0
- package/dist/Constants.js.map +1 -0
- package/dist/Errors/CliError.d.ts +5 -0
- package/dist/Errors/CliError.d.ts.map +1 -0
- package/dist/Errors/CliError.js +7 -0
- package/dist/Errors/CliError.js.map +1 -0
- package/dist/FS/CliFs.d.ts +41 -0
- package/dist/FS/CliFs.d.ts.map +1 -0
- package/dist/FS/CliFs.js +136 -0
- package/dist/FS/CliFs.js.map +1 -0
- package/dist/HttpClient/CliHttpClient.d.ts +24 -0
- package/dist/HttpClient/CliHttpClient.d.ts.map +1 -0
- package/dist/HttpClient/CliHttpClient.js +122 -0
- package/dist/HttpClient/CliHttpClient.js.map +1 -0
- package/dist/HttpClient/OrchardProxy.d.ts +11 -0
- package/dist/HttpClient/OrchardProxy.d.ts.map +1 -0
- package/dist/HttpClient/OrchardProxy.js +25 -0
- package/dist/HttpClient/OrchardProxy.js.map +1 -0
- package/dist/HttpClient/Proxy.d.ts +7 -0
- package/dist/HttpClient/Proxy.d.ts.map +1 -0
- package/dist/HttpClient/Proxy.js +5 -0
- package/dist/HttpClient/Proxy.js.map +1 -0
- package/dist/Logger/CliLogger.d.ts +35 -0
- package/dist/Logger/CliLogger.d.ts.map +1 -0
- package/dist/Logger/CliLogger.js +237 -0
- package/dist/Logger/CliLogger.js.map +1 -0
- package/dist/Logger/ConsoleWriter.d.ts +15 -0
- package/dist/Logger/ConsoleWriter.d.ts.map +1 -0
- package/dist/Logger/ConsoleWriter.js +45 -0
- package/dist/Logger/ConsoleWriter.js.map +1 -0
- package/dist/Logger/Constants.d.ts +6 -0
- package/dist/Logger/Constants.d.ts.map +1 -0
- package/dist/Logger/Constants.js +15 -0
- package/dist/Logger/Constants.js.map +1 -0
- package/dist/Logger/LoggerSettings.d.ts +19 -0
- package/dist/Logger/LoggerSettings.d.ts.map +1 -0
- package/dist/Logger/LoggerSettings.js +114 -0
- package/dist/Logger/LoggerSettings.js.map +1 -0
- package/dist/Logger/OneDSWriter.d.ts +22 -0
- package/dist/Logger/OneDSWriter.d.ts.map +1 -0
- package/dist/Logger/OneDSWriter.js +129 -0
- package/dist/Logger/OneDSWriter.js.map +1 -0
- package/dist/Logger/Scrubber/ScrubCustomDimensions.d.ts +5 -0
- package/dist/Logger/Scrubber/ScrubCustomDimensions.d.ts.map +1 -0
- package/dist/Logger/Scrubber/ScrubCustomDimensions.js +46 -0
- package/dist/Logger/Scrubber/ScrubCustomDimensions.js.map +1 -0
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.d.ts +27 -0
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.d.ts.map +1 -0
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.js +168 -0
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.js.map +1 -0
- package/dist/Logger/Scrubber/ScrubUtils.d.ts +8 -0
- package/dist/Logger/Scrubber/ScrubUtils.d.ts.map +1 -0
- package/dist/Logger/Scrubber/ScrubUtils.js +34 -0
- package/dist/Logger/Scrubber/ScrubUtils.js.map +1 -0
- package/dist/Types/Argument.types.d.ts +27 -0
- package/dist/Types/Argument.types.d.ts.map +1 -0
- package/dist/Types/Argument.types.js +5 -0
- package/dist/Types/Argument.types.js.map +1 -0
- package/dist/Types/Cli.types.d.ts +32 -0
- package/dist/Types/Cli.types.d.ts.map +1 -0
- package/dist/Types/Cli.types.js +5 -0
- package/dist/Types/Cli.types.js.map +1 -0
- package/dist/Types/Command.types.d.ts +52 -0
- package/dist/Types/Command.types.d.ts.map +1 -0
- package/dist/Types/Command.types.js +8 -0
- package/dist/Types/Command.types.js.map +1 -0
- package/dist/Types/Datasource.types.d.ts +43 -0
- package/dist/Types/Datasource.types.d.ts.map +1 -0
- package/dist/Types/Datasource.types.js +5 -0
- package/dist/Types/Datasource.types.js.map +1 -0
- package/dist/Types/LoggerTypes.types.d.ts +17 -0
- package/dist/Types/LoggerTypes.types.d.ts.map +1 -0
- package/dist/Types/LoggerTypes.types.js +5 -0
- package/dist/Types/LoggerTypes.types.js.map +1 -0
- package/dist/Utils/BuildVerbDescriptionTable.d.ts +19 -0
- package/dist/Utils/BuildVerbDescriptionTable.d.ts.map +1 -0
- package/dist/Utils/BuildVerbDescriptionTable.js +87 -0
- package/dist/Utils/BuildVerbDescriptionTable.js.map +1 -0
- package/dist/Utils/ConsoleOutput.d.ts +80 -0
- package/dist/Utils/ConsoleOutput.d.ts.map +1 -0
- package/dist/Utils/ConsoleOutput.js +151 -0
- package/dist/Utils/ConsoleOutput.js.map +1 -0
- package/dist/Utils/DetectPackageManager.d.ts +9 -0
- package/dist/Utils/DetectPackageManager.d.ts.map +1 -0
- package/dist/Utils/DetectPackageManager.js +24 -0
- package/dist/Utils/DetectPackageManager.js.map +1 -0
- package/dist/Utils/EnhanceNetworkError.d.ts +14 -0
- package/dist/Utils/EnhanceNetworkError.d.ts.map +1 -0
- package/dist/Utils/EnhanceNetworkError.js +59 -0
- package/dist/Utils/EnhanceNetworkError.js.map +1 -0
- package/dist/Utils/EnvVars.d.ts +17 -0
- package/dist/Utils/EnvVars.d.ts.map +1 -0
- package/dist/Utils/EnvVars.js +38 -0
- package/dist/Utils/EnvVars.js.map +1 -0
- package/dist/Utils/GitCredentialConfig.d.ts +12 -0
- package/dist/Utils/GitCredentialConfig.d.ts.map +1 -0
- package/dist/Utils/GitCredentialConfig.js +32 -0
- package/dist/Utils/GitCredentialConfig.js.map +1 -0
- package/dist/Utils/GitUtils.d.ts +22 -0
- package/dist/Utils/GitUtils.d.ts.map +1 -0
- package/dist/Utils/GitUtils.js +35 -0
- package/dist/Utils/GitUtils.js.map +1 -0
- package/dist/Utils/Paging.d.ts +23 -0
- package/dist/Utils/Paging.d.ts.map +1 -0
- package/dist/Utils/Paging.js +67 -0
- package/dist/Utils/Paging.js.map +1 -0
- package/dist/Utils/ReadPackageJson.d.ts +9 -0
- package/dist/Utils/ReadPackageJson.d.ts.map +1 -0
- package/dist/Utils/ReadPackageJson.js +13 -0
- package/dist/Utils/ReadPackageJson.js.map +1 -0
- package/dist/Utils/ResolveCommand.d.ts +26 -0
- package/dist/Utils/ResolveCommand.d.ts.map +1 -0
- package/dist/Utils/ResolveCommand.js +62 -0
- package/dist/Utils/ResolveCommand.js.map +1 -0
- package/dist/Utils/RunCommand.d.ts +13 -0
- package/dist/Utils/RunCommand.d.ts.map +1 -0
- package/dist/Utils/RunCommand.js +35 -0
- package/dist/Utils/RunCommand.js.map +1 -0
- package/dist/Utils/Spinner.d.ts +15 -0
- package/dist/Utils/Spinner.d.ts.map +1 -0
- package/dist/Utils/Spinner.js +71 -0
- package/dist/Utils/Spinner.js.map +1 -0
- package/dist/Utils/zipBuildArtifact.d.ts +35 -0
- package/dist/Utils/zipBuildArtifact.d.ts.map +1 -0
- package/dist/Utils/zipBuildArtifact.js +100 -0
- package/dist/Utils/zipBuildArtifact.js.map +1 -0
- package/dist/Verbs/AddAction.d.ts +6 -0
- package/dist/Verbs/AddAction.d.ts.map +1 -0
- package/dist/Verbs/AddAction.js +87 -0
- package/dist/Verbs/AddAction.js.map +1 -0
- package/dist/Verbs/AddDataSource.d.ts +19 -0
- package/dist/Verbs/AddDataSource.d.ts.map +1 -0
- package/dist/Verbs/AddDataSource.js +174 -0
- package/dist/Verbs/AddDataSource.js.map +1 -0
- package/dist/Verbs/AddFlow.d.ts +12 -0
- package/dist/Verbs/AddFlow.d.ts.map +1 -0
- package/dist/Verbs/AddFlow.js +67 -0
- package/dist/Verbs/AddFlow.js.map +1 -0
- package/dist/Verbs/AddTable.d.ts +6 -0
- package/dist/Verbs/AddTable.d.ts.map +1 -0
- package/dist/Verbs/AddTable.js +163 -0
- package/dist/Verbs/AddTable.js.map +1 -0
- package/dist/Verbs/AuthStatus.d.ts +6 -0
- package/dist/Verbs/AuthStatus.d.ts.map +1 -0
- package/dist/Verbs/AuthStatus.js +18 -0
- package/dist/Verbs/AuthStatus.js.map +1 -0
- package/dist/Verbs/BuildMaafApp.d.ts +6 -0
- package/dist/Verbs/BuildMaafApp.d.ts.map +1 -0
- package/dist/Verbs/BuildMaafApp.js +97 -0
- package/dist/Verbs/BuildMaafApp.js.map +1 -0
- package/dist/Verbs/ConnectorHelpers.d.ts +37 -0
- package/dist/Verbs/ConnectorHelpers.d.ts.map +1 -0
- package/dist/Verbs/ConnectorHelpers.js +116 -0
- package/dist/Verbs/ConnectorHelpers.js.map +1 -0
- package/dist/Verbs/CreateMaafApp.d.ts +25 -0
- package/dist/Verbs/CreateMaafApp.d.ts.map +1 -0
- package/dist/Verbs/CreateMaafApp.js +565 -0
- package/dist/Verbs/CreateMaafApp.js.map +1 -0
- package/dist/Verbs/DeleteDataSource.d.ts +6 -0
- package/dist/Verbs/DeleteDataSource.d.ts.map +1 -0
- package/dist/Verbs/DeleteDataSource.js +106 -0
- package/dist/Verbs/DeleteDataSource.js.map +1 -0
- package/dist/Verbs/DeleteMaafApp.d.ts +23 -0
- package/dist/Verbs/DeleteMaafApp.d.ts.map +1 -0
- package/dist/Verbs/DeleteMaafApp.js +99 -0
- package/dist/Verbs/DeleteMaafApp.js.map +1 -0
- package/dist/Verbs/DeployMaafApp.d.ts +6 -0
- package/dist/Verbs/DeployMaafApp.d.ts.map +1 -0
- package/dist/Verbs/DeployMaafApp.js +96 -0
- package/dist/Verbs/DeployMaafApp.js.map +1 -0
- package/dist/Verbs/Dev.d.ts +6 -0
- package/dist/Verbs/Dev.d.ts.map +1 -0
- package/dist/Verbs/Dev.js +214 -0
- package/dist/Verbs/Dev.js.map +1 -0
- package/dist/Verbs/FindDataverseApi.d.ts +12 -0
- package/dist/Verbs/FindDataverseApi.d.ts.map +1 -0
- package/dist/Verbs/FindDataverseApi.js +101 -0
- package/dist/Verbs/FindDataverseApi.js.map +1 -0
- package/dist/Verbs/GetMaafApp.d.ts +6 -0
- package/dist/Verbs/GetMaafApp.d.ts.map +1 -0
- package/dist/Verbs/GetMaafApp.js +60 -0
- package/dist/Verbs/GetMaafApp.js.map +1 -0
- package/dist/Verbs/GetMaafBuildStatus.d.ts +6 -0
- package/dist/Verbs/GetMaafBuildStatus.d.ts.map +1 -0
- package/dist/Verbs/GetMaafBuildStatus.js +68 -0
- package/dist/Verbs/GetMaafBuildStatus.js.map +1 -0
- package/dist/Verbs/GetSettings.d.ts +12 -0
- package/dist/Verbs/GetSettings.d.ts.map +1 -0
- package/dist/Verbs/GetSettings.js +48 -0
- package/dist/Verbs/GetSettings.js.map +1 -0
- package/dist/Verbs/Init.d.ts +6 -0
- package/dist/Verbs/Init.d.ts.map +1 -0
- package/dist/Verbs/Init.js +172 -0
- package/dist/Verbs/Init.js.map +1 -0
- package/dist/Verbs/ListConnectionReferences.d.ts +6 -0
- package/dist/Verbs/ListConnectionReferences.d.ts.map +1 -0
- package/dist/Verbs/ListConnectionReferences.js +70 -0
- package/dist/Verbs/ListConnectionReferences.js.map +1 -0
- package/dist/Verbs/ListConnectorActions.d.ts +6 -0
- package/dist/Verbs/ListConnectorActions.d.ts.map +1 -0
- package/dist/Verbs/ListConnectorActions.js +79 -0
- package/dist/Verbs/ListConnectorActions.js.map +1 -0
- package/dist/Verbs/ListConnectors.d.ts +6 -0
- package/dist/Verbs/ListConnectors.d.ts.map +1 -0
- package/dist/Verbs/ListConnectors.js +66 -0
- package/dist/Verbs/ListConnectors.js.map +1 -0
- package/dist/Verbs/ListDatasets.d.ts +6 -0
- package/dist/Verbs/ListDatasets.d.ts.map +1 -0
- package/dist/Verbs/ListDatasets.js +83 -0
- package/dist/Verbs/ListDatasets.js.map +1 -0
- package/dist/Verbs/ListEnvironmentVariables.d.ts +14 -0
- package/dist/Verbs/ListEnvironmentVariables.d.ts.map +1 -0
- package/dist/Verbs/ListEnvironmentVariables.js +66 -0
- package/dist/Verbs/ListEnvironmentVariables.js.map +1 -0
- package/dist/Verbs/ListFlows.d.ts +13 -0
- package/dist/Verbs/ListFlows.d.ts.map +1 -0
- package/dist/Verbs/ListFlows.js +88 -0
- package/dist/Verbs/ListFlows.js.map +1 -0
- package/dist/Verbs/ListMaafApps.d.ts +71 -0
- package/dist/Verbs/ListMaafApps.d.ts.map +1 -0
- package/dist/Verbs/ListMaafApps.js +168 -0
- package/dist/Verbs/ListMaafApps.js.map +1 -0
- package/dist/Verbs/ListSqlStoredProcedures.d.ts +6 -0
- package/dist/Verbs/ListSqlStoredProcedures.d.ts.map +1 -0
- package/dist/Verbs/ListSqlStoredProcedures.js +84 -0
- package/dist/Verbs/ListSqlStoredProcedures.js.map +1 -0
- package/dist/Verbs/ListTables.d.ts +6 -0
- package/dist/Verbs/ListTables.d.ts.map +1 -0
- package/dist/Verbs/ListTables.js +95 -0
- package/dist/Verbs/ListTables.js.map +1 -0
- package/dist/Verbs/Login.d.ts +6 -0
- package/dist/Verbs/Login.d.ts.map +1 -0
- package/dist/Verbs/Login.js +28 -0
- package/dist/Verbs/Login.js.map +1 -0
- package/dist/Verbs/Logout.d.ts +6 -0
- package/dist/Verbs/Logout.d.ts.map +1 -0
- package/dist/Verbs/Logout.js +28 -0
- package/dist/Verbs/Logout.js.map +1 -0
- package/dist/Verbs/MaafAppPermissions.d.ts +23 -0
- package/dist/Verbs/MaafAppPermissions.d.ts.map +1 -0
- package/dist/Verbs/MaafAppPermissions.js +278 -0
- package/dist/Verbs/MaafAppPermissions.js.map +1 -0
- package/dist/Verbs/Pack.d.ts +38 -0
- package/dist/Verbs/Pack.d.ts.map +1 -0
- package/dist/Verbs/Pack.js +106 -0
- package/dist/Verbs/Pack.js.map +1 -0
- package/dist/Verbs/PushMaafApp.d.ts +6 -0
- package/dist/Verbs/PushMaafApp.d.ts.map +1 -0
- package/dist/Verbs/PushMaafApp.js +145 -0
- package/dist/Verbs/PushMaafApp.js.map +1 -0
- package/dist/Verbs/RefreshDataSource.d.ts +6 -0
- package/dist/Verbs/RefreshDataSource.d.ts.map +1 -0
- package/dist/Verbs/RefreshDataSource.js +72 -0
- package/dist/Verbs/RefreshDataSource.js.map +1 -0
- package/dist/Verbs/RemoveFlow.d.ts +12 -0
- package/dist/Verbs/RemoveFlow.d.ts.map +1 -0
- package/dist/Verbs/RemoveFlow.js +99 -0
- package/dist/Verbs/RemoveFlow.js.map +1 -0
- package/dist/Verbs/SetSetting.d.ts +12 -0
- package/dist/Verbs/SetSetting.d.ts.map +1 -0
- package/dist/Verbs/SetSetting.js +142 -0
- package/dist/Verbs/SetSetting.js.map +1 -0
- package/dist/Verbs/ShareMaafApp.d.ts +12 -0
- package/dist/Verbs/ShareMaafApp.d.ts.map +1 -0
- package/dist/Verbs/ShareMaafApp.js +14 -0
- package/dist/Verbs/ShareMaafApp.js.map +1 -0
- package/dist/Verbs/ShowMaafApp.d.ts +94 -0
- package/dist/Verbs/ShowMaafApp.d.ts.map +1 -0
- package/dist/Verbs/ShowMaafApp.js +216 -0
- package/dist/Verbs/ShowMaafApp.js.map +1 -0
- package/dist/Verbs/TelemetrySettings.d.ts +8 -0
- package/dist/Verbs/TelemetrySettings.d.ts.map +1 -0
- package/dist/Verbs/TelemetrySettings.js +104 -0
- package/dist/Verbs/TelemetrySettings.js.map +1 -0
- package/dist/Verbs/UnshareMaafApp.d.ts +12 -0
- package/dist/Verbs/UnshareMaafApp.d.ts.map +1 -0
- package/dist/Verbs/UnshareMaafApp.js +14 -0
- package/dist/Verbs/UnshareMaafApp.js.map +1 -0
- package/dist/Verbs/VerbConstants.d.ts +433 -0
- package/dist/Verbs/VerbConstants.d.ts.map +1 -0
- package/dist/Verbs/VerbConstants.js +403 -0
- package/dist/Verbs/VerbConstants.js.map +1 -0
- package/dist/Verbs/index.d.ts +40 -0
- package/dist/Verbs/index.d.ts.map +1 -0
- package/dist/Verbs/index.js +40 -0
- package/dist/Verbs/index.js.map +1 -0
- package/package.json +43 -3
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { AppConfigFileName } from '@microsoft/apps-common/config';
|
|
5
|
+
import { CLI_BINARY_NAME } from './CliConstants.js';
|
|
6
|
+
export const HelpStrings = {
|
|
7
|
+
global: {
|
|
8
|
+
programDescription: `CLI for Microsoft apps.`,
|
|
9
|
+
cloud: 'Cloud environment to target. Valid values: test, preprod, public, usgov, usgovhigh, usgovdod, china. Defaults to public.',
|
|
10
|
+
},
|
|
11
|
+
auth: {
|
|
12
|
+
login: {
|
|
13
|
+
description: 'Sign in to Microsoft Entra ID.',
|
|
14
|
+
examples: [
|
|
15
|
+
`${CLI_BINARY_NAME} auth login`,
|
|
16
|
+
`${CLI_BINARY_NAME} auth login --hint user@contoso.com`,
|
|
17
|
+
],
|
|
18
|
+
options: {
|
|
19
|
+
hint: 'Pre-fill the username/email address for sign-in.',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
logout: {
|
|
23
|
+
description: 'Log out the current user.',
|
|
24
|
+
examples: [`${CLI_BINARY_NAME} auth logout`],
|
|
25
|
+
},
|
|
26
|
+
status: {
|
|
27
|
+
description: 'Show the currently authenticated account.',
|
|
28
|
+
examples: [`${CLI_BINARY_NAME} auth status`],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
app: {
|
|
32
|
+
create: {
|
|
33
|
+
description: `Create a new app in the environment. Initializes the local git repo and scaffolds the app template into [directory] (or the current directory). The directory must be empty unless --force is passed.`,
|
|
34
|
+
options: {
|
|
35
|
+
displayName: 'Display name for the app.',
|
|
36
|
+
description: 'Optional description for the app.',
|
|
37
|
+
repositoryId: 'Repository ID to associate with the app for source control.',
|
|
38
|
+
template: 'GitHub repository or subpath to scaffold the app from (e.g. github:owner/repo/subdir). Defaults to github:microsoft/PowerAppsCodeApps/templates/vite.',
|
|
39
|
+
buildPath: 'Path to the build output directory. Defaults to ./dist.',
|
|
40
|
+
buildCommand: 'Full shell command used to build the app. Defaults to "npm run build".',
|
|
41
|
+
force: 'Scaffold into [directory] even if it is not empty. Existing files may be overwritten.',
|
|
42
|
+
repo: 'GitHub Enterprise Cloud repo URL (*.ghe.com) to bind the app to (e.g. https://myorg.ghe.com/contoso/expense-tracker). The app metadata is stored with the binding; the local clone-and-scaffold flow lands in a follow-up release.',
|
|
43
|
+
},
|
|
44
|
+
examples: [
|
|
45
|
+
`${CLI_BINARY_NAME} app create --display-name "My App" --repository-id <id>`,
|
|
46
|
+
`${CLI_BINARY_NAME} app create ./my-app --display-name "My App" --repository-id <id>`,
|
|
47
|
+
`${CLI_BINARY_NAME} app create ./my-app --display-name "My App" --repository-id <id> --description "A description"`,
|
|
48
|
+
`${CLI_BINARY_NAME} app create . --display-name "My App" --repository-id <id> --force`,
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
init: {
|
|
52
|
+
description: `Initialize a new app.`,
|
|
53
|
+
options: {
|
|
54
|
+
environmentId: 'Environment ID to connect to.',
|
|
55
|
+
cloud: 'Cloud environment to target. Valid values: test, preprod, public, usgov, usgovhigh, usgovdod, china. Defaults to public.',
|
|
56
|
+
displayName: 'Display name for the app.',
|
|
57
|
+
description: 'Optional description for the app.',
|
|
58
|
+
buildPath: 'Path to the build output directory. Defaults to ./dist.',
|
|
59
|
+
buildCommand: 'Full shell command used to build the app. Defaults to npm run build.',
|
|
60
|
+
fileEntryPoint: 'Entry point HTML file for the app. Defaults to index.html.',
|
|
61
|
+
appUrl: 'Local development URL for the app. Defaults to http://localhost:3000.',
|
|
62
|
+
logoPath: 'Path to the app logo. Defaults to Default.',
|
|
63
|
+
},
|
|
64
|
+
examples: [
|
|
65
|
+
`${CLI_BINARY_NAME} app init --display-name "My App" --environment-id <id>`,
|
|
66
|
+
`${CLI_BINARY_NAME} app init --display-name "My App" --environment-id <id> --description "A description"`,
|
|
67
|
+
`${CLI_BINARY_NAME} app init --display-name "My App" --environment-id <id> --build-path ./out`,
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
list: {
|
|
71
|
+
description: 'List apps the current user can access. By default lists all apps in the tenant; pass --environment-id to filter to a single environment.',
|
|
72
|
+
options: {
|
|
73
|
+
environmentId: 'Optional environment ID to scope the listing to. When omitted, all apps the user can access across the tenant are returned.',
|
|
74
|
+
permission: 'Permission filter. Either `write` (apps the user can contribute to; default) or `read` (apps the user can play/view). Case-insensitive.',
|
|
75
|
+
},
|
|
76
|
+
examples: [
|
|
77
|
+
`${CLI_BINARY_NAME} app list`,
|
|
78
|
+
`${CLI_BINARY_NAME} app list --json`,
|
|
79
|
+
`${CLI_BINARY_NAME} app list --environment-id <id>`,
|
|
80
|
+
`${CLI_BINARY_NAME} app list --permission read`,
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
info: {
|
|
84
|
+
description: `Get information about an app.`,
|
|
85
|
+
options: {
|
|
86
|
+
app: 'The app name (logical name) to retrieve.',
|
|
87
|
+
},
|
|
88
|
+
examples: [
|
|
89
|
+
`${CLI_BINARY_NAME} app info --app my-app`,
|
|
90
|
+
`${CLI_BINARY_NAME} app info --app my-app --json`,
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
show: {
|
|
94
|
+
description: `Show the current app's configuration and all bound resources.`,
|
|
95
|
+
examples: [`${CLI_BINARY_NAME} app show`, `${CLI_BINARY_NAME} app show --json`],
|
|
96
|
+
},
|
|
97
|
+
delete: {
|
|
98
|
+
description: 'Delete a Microsoft App. Soft-deletes the app and cleans up related metadata.',
|
|
99
|
+
options: {
|
|
100
|
+
app: `The app name to delete. Defaults to appId in ${AppConfigFileName}.`,
|
|
101
|
+
environmentId: `Override the environment ID. Defaults to environmentId in ${AppConfigFileName}. Useful for deleting an app from outside its scaffolded directory.`,
|
|
102
|
+
force: 'Skip the confirmation prompt.',
|
|
103
|
+
},
|
|
104
|
+
examples: [
|
|
105
|
+
`${CLI_BINARY_NAME} app delete`,
|
|
106
|
+
`${CLI_BINARY_NAME} app delete --app my-app`,
|
|
107
|
+
`${CLI_BINARY_NAME} app delete --app my-app --environment-id <id> --force`,
|
|
108
|
+
`${CLI_BINARY_NAME} app delete --json --force`,
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
share: {
|
|
112
|
+
description: 'Share a Microsoft App with users or groups. Grants the "Microsoft App Reader" role at the app scope.',
|
|
113
|
+
options: {
|
|
114
|
+
app: `The app name to share. Defaults to appId in ${AppConfigFileName}.`,
|
|
115
|
+
},
|
|
116
|
+
examples: [
|
|
117
|
+
`${CLI_BINARY_NAME} app share alice@contoso.com,bob@contoso.com`,
|
|
118
|
+
`${CLI_BINARY_NAME} app share --app my-app <aad-id>`,
|
|
119
|
+
`${CLI_BINARY_NAME} app share alice@contoso.com --json`,
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
unshare: {
|
|
123
|
+
description: 'Unshare a Microsoft App from users or groups. Revokes all role assignments at the app scope.',
|
|
124
|
+
options: {
|
|
125
|
+
app: `The app name to unshare. Defaults to appId in ${AppConfigFileName}.`,
|
|
126
|
+
},
|
|
127
|
+
examples: [
|
|
128
|
+
`${CLI_BINARY_NAME} app unshare alice@contoso.com,bob@contoso.com`,
|
|
129
|
+
`${CLI_BINARY_NAME} app unshare --app my-app <aad-id>`,
|
|
130
|
+
`${CLI_BINARY_NAME} app unshare alice@contoso.com --json`,
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
build: {
|
|
134
|
+
description: 'Initiate a build for a Microsoft App.',
|
|
135
|
+
options: {
|
|
136
|
+
appName: 'The app name to build.',
|
|
137
|
+
commitSha: 'The commit SHA to build from.',
|
|
138
|
+
},
|
|
139
|
+
examples: [
|
|
140
|
+
`${CLI_BINARY_NAME} app build --app my-app --commit abc1234`,
|
|
141
|
+
`${CLI_BINARY_NAME} app build --app my-app --commit abc1234 --json`,
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
buildStatus: {
|
|
145
|
+
description: 'Get the status of a Microsoft App build operation.',
|
|
146
|
+
options: {
|
|
147
|
+
appName: 'The app name.',
|
|
148
|
+
operationId: 'The build operation ID returned by app build.',
|
|
149
|
+
},
|
|
150
|
+
examples: [
|
|
151
|
+
`${CLI_BINARY_NAME} app build-status --app my-app --operation-id <id>`,
|
|
152
|
+
`${CLI_BINARY_NAME} app build-status --app my-app --operation-id <id> --json`,
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
deploy: {
|
|
156
|
+
description: `Deploy a version of the app that's already in the remote git repo.`,
|
|
157
|
+
options: {
|
|
158
|
+
app: `The app name to deploy. Defaults to appId in ${AppConfigFileName}.`,
|
|
159
|
+
commit: 'The commit SHA to deploy. Defaults to the commit at HEAD.',
|
|
160
|
+
},
|
|
161
|
+
examples: [
|
|
162
|
+
`${CLI_BINARY_NAME} app deploy`,
|
|
163
|
+
`${CLI_BINARY_NAME} app deploy --app my-app --commit abc1234`,
|
|
164
|
+
`${CLI_BINARY_NAME} app deploy --app my-app --commit abc1234 --json`,
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
pack: {
|
|
168
|
+
description: `Build the app and copy the output to .ms/packed/apps/<appId>/client/ for local inspection.`,
|
|
169
|
+
examples: [`${CLI_BINARY_NAME} app pack`],
|
|
170
|
+
},
|
|
171
|
+
push: {
|
|
172
|
+
description: `Build the app and upload the artifact directly to the dev environment.`,
|
|
173
|
+
options: {
|
|
174
|
+
environmentId: 'The ID of the environment to which the app should be pushed.',
|
|
175
|
+
},
|
|
176
|
+
examples: [
|
|
177
|
+
`${CLI_BINARY_NAME} app push`,
|
|
178
|
+
`${CLI_BINARY_NAME} app push --environment-id <id>`,
|
|
179
|
+
`${CLI_BINARY_NAME} app push --json`,
|
|
180
|
+
],
|
|
181
|
+
},
|
|
182
|
+
dev: {
|
|
183
|
+
description: `Run the app locally.`,
|
|
184
|
+
options: {
|
|
185
|
+
port: 'Port number for the local config server.',
|
|
186
|
+
localAppUrl: 'Local URL where the app is running.',
|
|
187
|
+
configOnly: 'Start only the config server without running the dev script. Use this if you want to manage your dev server separately.',
|
|
188
|
+
},
|
|
189
|
+
examples: [
|
|
190
|
+
`${CLI_BINARY_NAME} app dev`,
|
|
191
|
+
`${CLI_BINARY_NAME} app dev --port 8080 --local-app-url http://localhost:3000`,
|
|
192
|
+
`${CLI_BINARY_NAME} app dev --local-app-url http://localhost:3000 --config-only`,
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
refresh: {
|
|
196
|
+
description: `Refresh one or all data sources in the current app.`,
|
|
197
|
+
options: {
|
|
198
|
+
dataSourceName: 'Name of the specific data source to refresh. Omit to refresh all.',
|
|
199
|
+
},
|
|
200
|
+
examples: [
|
|
201
|
+
`${CLI_BINARY_NAME} app refresh`,
|
|
202
|
+
`${CLI_BINARY_NAME} app refresh --data-source-name contact`,
|
|
203
|
+
`${CLI_BINARY_NAME} app refresh -n contact`,
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
add: {
|
|
207
|
+
description: `Add a data source to the current app.`,
|
|
208
|
+
options: {
|
|
209
|
+
apiId: 'API identifier.',
|
|
210
|
+
connectionId: 'Connection identifier.',
|
|
211
|
+
connectionRef: 'Connection reference name.',
|
|
212
|
+
resourceName: 'Table or resource name.',
|
|
213
|
+
dataset: 'Dataset identifier.',
|
|
214
|
+
orgUrl: 'Organization URL.',
|
|
215
|
+
sqlStoredProcedure: 'SQL stored procedure name.',
|
|
216
|
+
solutionId: 'Solution identifier.',
|
|
217
|
+
skipCodegen: 'Skip TypeScript code generation after adding the data source.',
|
|
218
|
+
},
|
|
219
|
+
examples: [
|
|
220
|
+
`${CLI_BINARY_NAME} app add action --api-id shared_office365`,
|
|
221
|
+
`${CLI_BINARY_NAME} app add table --api-id shared_sql --connection-id <id> --dataset <db> --table <tbl>`,
|
|
222
|
+
`${CLI_BINARY_NAME} app add procedure --api-id shared_sql --connection-id <id> --dataset <db>`,
|
|
223
|
+
],
|
|
224
|
+
action: {
|
|
225
|
+
description: 'Add a connector to the app as an action data source.',
|
|
226
|
+
options: {
|
|
227
|
+
apiId: 'Connector API identifier (e.g. shared_office365).',
|
|
228
|
+
connectionId: 'Connection identifier. Required for connectors with multi-auth or allowSharing; prompted interactively when omitted.',
|
|
229
|
+
skipCodegen: 'Skip TypeScript code generation after adding the connector.',
|
|
230
|
+
},
|
|
231
|
+
examples: [
|
|
232
|
+
`${CLI_BINARY_NAME} app add action --api-id shared_office365`,
|
|
233
|
+
`${CLI_BINARY_NAME} app add action --api-id shared_sql --connection-id <id>`,
|
|
234
|
+
`${CLI_BINARY_NAME} app add action --api-id shared_office365 --skip-codegen`,
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
table: {
|
|
238
|
+
description: 'Add a connector table to the app as a tabular data source.',
|
|
239
|
+
options: {
|
|
240
|
+
apiId: 'Connector API identifier (e.g. shared_sql, shared_sharepointonline).',
|
|
241
|
+
connectionId: 'Connection ID to use. If omitted, you will be prompted to select one.',
|
|
242
|
+
dataset: 'Dataset name (e.g. a SQL server/database or SharePoint site URL). If omitted, you will be prompted.',
|
|
243
|
+
table: 'Table name. If omitted, you will be prompted to select one.',
|
|
244
|
+
skipCodegen: 'Skip TypeScript model service generation after adding the table.',
|
|
245
|
+
},
|
|
246
|
+
examples: [
|
|
247
|
+
`${CLI_BINARY_NAME} app add table --api-id shared_sql`,
|
|
248
|
+
`${CLI_BINARY_NAME} app add table --api-id shared_sql --connection-id <id> --dataset <db> --table <tbl>`,
|
|
249
|
+
`${CLI_BINARY_NAME} app add table --api-id shared_sharepointonline --skip-codegen`,
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
remove: {
|
|
254
|
+
description: `Remove an action, table or procedure from the app.`,
|
|
255
|
+
options: {
|
|
256
|
+
apiId: 'API identifier associated with the data source.',
|
|
257
|
+
dataSourceName: 'Data source or table name to remove.',
|
|
258
|
+
sqlStoredProcedure: 'SQL stored procedure name to remove.',
|
|
259
|
+
force: 'Skip confirmation prompt.',
|
|
260
|
+
},
|
|
261
|
+
examples: [
|
|
262
|
+
`${CLI_BINARY_NAME} app remove table --api-id dataverse --data-source-name contact`,
|
|
263
|
+
`${CLI_BINARY_NAME} app remove table --api-id shared_sql --data-source-name <table>`,
|
|
264
|
+
`${CLI_BINARY_NAME} app remove table --api-id dataverse --data-source-name contact --force`,
|
|
265
|
+
],
|
|
266
|
+
},
|
|
267
|
+
'get-settings': {
|
|
268
|
+
description: 'Display all app settings and their current values.',
|
|
269
|
+
examples: [
|
|
270
|
+
`${CLI_BINARY_NAME} app get-settings`,
|
|
271
|
+
`${CLI_BINARY_NAME} app get-settings --json`,
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
'set-setting': {
|
|
275
|
+
description: `Update one or more app settings. Changes are written to ${AppConfigFileName} and take effect on the next run or publish.`,
|
|
276
|
+
options: {
|
|
277
|
+
'show-header': 'Show or hide the app header bar (true or false).',
|
|
278
|
+
'enable-catalyst': 'Enable or disable the Catalyst design system (true or false).',
|
|
279
|
+
},
|
|
280
|
+
examples: [
|
|
281
|
+
`${CLI_BINARY_NAME} app set-setting --show-header false`,
|
|
282
|
+
`${CLI_BINARY_NAME} app set-setting --show-header false --enable-catalyst true`,
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
connector: {
|
|
287
|
+
list: {
|
|
288
|
+
description: 'List connectors available in the environment.',
|
|
289
|
+
options: {
|
|
290
|
+
search: 'Filter connectors by display name or connector ID (case-insensitive).',
|
|
291
|
+
},
|
|
292
|
+
examples: [
|
|
293
|
+
`${CLI_BINARY_NAME} connector list`,
|
|
294
|
+
`${CLI_BINARY_NAME} connector list --search "sql"`,
|
|
295
|
+
`${CLI_BINARY_NAME} connector list --json`,
|
|
296
|
+
],
|
|
297
|
+
},
|
|
298
|
+
'list-actions': {
|
|
299
|
+
description: 'List actions available on a connector with their DLP policy behavior.',
|
|
300
|
+
options: {
|
|
301
|
+
connector: 'Connector ID (e.g. shared_office365).',
|
|
302
|
+
search: 'Filter actions by name or ID (case-insensitive).',
|
|
303
|
+
},
|
|
304
|
+
examples: [
|
|
305
|
+
`${CLI_BINARY_NAME} connector list-actions --connector shared_office365`,
|
|
306
|
+
`${CLI_BINARY_NAME} connector list-actions --connector shared_sql --search "execute"`,
|
|
307
|
+
`${CLI_BINARY_NAME} connector list-actions --connector shared_office365 --json`,
|
|
308
|
+
],
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
telemetry: {
|
|
312
|
+
enable: {
|
|
313
|
+
description: 'Enable telemetry collection. Defaults to --remote if no target is specified.',
|
|
314
|
+
options: {
|
|
315
|
+
remote: 'Enable sending telemetry to the cloud service (default).',
|
|
316
|
+
console: 'Enable outputting telemetry to the local console.',
|
|
317
|
+
},
|
|
318
|
+
examples: [
|
|
319
|
+
`${CLI_BINARY_NAME} telemetry enable`,
|
|
320
|
+
`${CLI_BINARY_NAME} telemetry enable --console`,
|
|
321
|
+
`${CLI_BINARY_NAME} telemetry enable --remote --console`,
|
|
322
|
+
],
|
|
323
|
+
},
|
|
324
|
+
disable: {
|
|
325
|
+
description: 'Disable telemetry collection. Defaults to --remote if no target is specified.',
|
|
326
|
+
options: {
|
|
327
|
+
remote: 'Disable sending telemetry to the cloud service (default).',
|
|
328
|
+
console: 'Disable outputting telemetry to the local console.',
|
|
329
|
+
},
|
|
330
|
+
examples: [
|
|
331
|
+
`${CLI_BINARY_NAME} telemetry disable`,
|
|
332
|
+
`${CLI_BINARY_NAME} telemetry disable --console`,
|
|
333
|
+
`${CLI_BINARY_NAME} telemetry disable --remote --console`,
|
|
334
|
+
],
|
|
335
|
+
},
|
|
336
|
+
status: {
|
|
337
|
+
description: 'Show the current telemetry settings.',
|
|
338
|
+
examples: [
|
|
339
|
+
`${CLI_BINARY_NAME} telemetry status`,
|
|
340
|
+
`${CLI_BINARY_NAME} telemetry status --json`,
|
|
341
|
+
],
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
* @deprecated Strings referenced only by verb files that are no longer wired to the
|
|
346
|
+
* command tree (AddFlow, BuildMaafApp, GetMaafBuildStatus, ListConnectionReferences,
|
|
347
|
+
* ListDatasets, ListEnvironmentVariables, ListFlows, ListSqlStoredProcedures, ListTables,
|
|
348
|
+
* RemoveFlow). Delete this entire block when those files are removed.
|
|
349
|
+
*/
|
|
350
|
+
deprecated: {
|
|
351
|
+
Verbs: {
|
|
352
|
+
'Add-flow': {
|
|
353
|
+
Description: `Add a cloud flow to the current app by flow ID.`,
|
|
354
|
+
Options: {
|
|
355
|
+
FlowId: 'The unique identifier (GUID) of the flow to add.',
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
'Build-app': {
|
|
359
|
+
Description: 'Initiate a build for the app.',
|
|
360
|
+
Options: {
|
|
361
|
+
AppName: 'The app name to build.',
|
|
362
|
+
CommitSha: 'The commit SHA to build. Defaults to the commit at HEAD.',
|
|
363
|
+
},
|
|
364
|
+
Examples: [
|
|
365
|
+
`${CLI_BINARY_NAME} app build --app my-app --commit abc1234`,
|
|
366
|
+
`${CLI_BINARY_NAME} app build --app my-app --commit abc1234 --json`,
|
|
367
|
+
],
|
|
368
|
+
},
|
|
369
|
+
'Get-build-status': {
|
|
370
|
+
Description: 'Get the status of an app build operation.',
|
|
371
|
+
Options: {
|
|
372
|
+
AppName: 'The app name.',
|
|
373
|
+
OperationId: 'The build operation ID returned by app build.',
|
|
374
|
+
},
|
|
375
|
+
Examples: [
|
|
376
|
+
`${CLI_BINARY_NAME} app build-status --app my-app --operation-id <id>`,
|
|
377
|
+
`${CLI_BINARY_NAME} app build-status --app my-app --operation-id <id> --json`,
|
|
378
|
+
],
|
|
379
|
+
},
|
|
380
|
+
'List-connection-references': {
|
|
381
|
+
Description: 'List all connection references in the environment.',
|
|
382
|
+
Options: {
|
|
383
|
+
SolutionId: 'Solution identifier to filter by.',
|
|
384
|
+
},
|
|
385
|
+
Examples: [
|
|
386
|
+
`${CLI_BINARY_NAME} connection list-references`,
|
|
387
|
+
`${CLI_BINARY_NAME} connection list-references --json`,
|
|
388
|
+
],
|
|
389
|
+
},
|
|
390
|
+
'List-datasets': {
|
|
391
|
+
Description: 'List all datasets for a connection.',
|
|
392
|
+
Options: {
|
|
393
|
+
Connector: 'Connector identifier.',
|
|
394
|
+
Connection: 'Connection identifier.',
|
|
395
|
+
},
|
|
396
|
+
Examples: [
|
|
397
|
+
`${CLI_BINARY_NAME} connection list-datasets --connector shared_sql --connection <id>`,
|
|
398
|
+
`${CLI_BINARY_NAME} connection list-datasets --connector shared_sql --connection <id> --json`,
|
|
399
|
+
],
|
|
400
|
+
},
|
|
401
|
+
'List-environment-variables': {
|
|
402
|
+
Description: 'List all environment variables in the environment.',
|
|
403
|
+
Examples: [
|
|
404
|
+
`${CLI_BINARY_NAME} environment list-variables`,
|
|
405
|
+
`${CLI_BINARY_NAME} environment list-variables --json`,
|
|
406
|
+
],
|
|
407
|
+
},
|
|
408
|
+
'List-flows': {
|
|
409
|
+
Description: 'List all solution cloud flows that are invokable from the app.',
|
|
410
|
+
Options: {
|
|
411
|
+
Search: 'Filter flows by name (case-insensitive substring match)',
|
|
412
|
+
},
|
|
413
|
+
Examples: [
|
|
414
|
+
`${CLI_BINARY_NAME} app list-flows`,
|
|
415
|
+
`${CLI_BINARY_NAME} app list-flows --search "approval" --json`,
|
|
416
|
+
],
|
|
417
|
+
},
|
|
418
|
+
'List-sqlStoredProcedures': {
|
|
419
|
+
Description: 'List all SQL stored procedures for a dataset.',
|
|
420
|
+
Options: {
|
|
421
|
+
Connection: 'Connection identifier.',
|
|
422
|
+
Dataset: 'Dataset name.',
|
|
423
|
+
},
|
|
424
|
+
Examples: [
|
|
425
|
+
`${CLI_BINARY_NAME} connection list-procedures --connection <id> --dataset <db>`,
|
|
426
|
+
`${CLI_BINARY_NAME} connection list-procedures --connection <id> --dataset <db> --json`,
|
|
427
|
+
],
|
|
428
|
+
},
|
|
429
|
+
'List-tables': {
|
|
430
|
+
Description: 'List all tables for a dataset.',
|
|
431
|
+
Options: {
|
|
432
|
+
Connector: 'Connector identifier.',
|
|
433
|
+
Connection: 'Connection identifier.',
|
|
434
|
+
Dataset: 'Dataset name.',
|
|
435
|
+
},
|
|
436
|
+
Examples: [
|
|
437
|
+
`${CLI_BINARY_NAME} connection list-tables --connector shared_sql --connection <id> --dataset <db>`,
|
|
438
|
+
`${CLI_BINARY_NAME} connection list-tables --connector shared_sql --connection <id> --dataset <db> --json`,
|
|
439
|
+
],
|
|
440
|
+
},
|
|
441
|
+
'Remove-flow': {
|
|
442
|
+
Description: `Remove a cloud flow from the current app.`,
|
|
443
|
+
Options: {
|
|
444
|
+
FlowDataSourceName: 'The flow data source name to remove (as it appears in ms.config). Provide either this or --flow-id.',
|
|
445
|
+
FlowId: 'The flow resource ID (GUID) to remove — same ID used with app add flow. Provide either this or --flow-name.',
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
};
|
|
451
|
+
//# sourceMappingURL=HelpStrings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpStrings.js","sourceRoot":"","sources":["../../src/Constants/HelpStrings.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE;QACN,kBAAkB,EAAE,yBAAyB;QAC7C,KAAK,EACH,0HAA0H;KAC7H;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACR,GAAG,eAAe,aAAa;gBAC/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soft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
export declare const WORKING_DIRECTORY: string;
|
|
5
|
+
export declare const CLI_CONFIG_DIRECTORY: string;
|
|
6
|
+
export declare const AUTH_CACHE_DIRECTORY: string;
|
|
7
|
+
export declare const MS_CLIENT_REQUESTID = "x-ms-client-request-id";
|
|
8
|
+
export declare const USER_SETTINGS_FILE = "userSettings.json";
|
|
9
|
+
export declare const CLI_CLIENT_ID = "9cee029c-6210-4654-90bb-17e6e9d36617";
|
|
10
|
+
//# sourceMappingURL=Constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,eAAO,MAAM,iBAAiB,QAAqD,CAAC;AACpF,eAAO,MAAM,oBAAoB,QACiC,CAAC;AACnE,eAAO,MAAM,oBAAoB,QAAmD,CAAC;AACrF,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAOtD,eAAO,MAAM,aAAa,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import * as os from 'os';
|
|
5
|
+
import * as path from 'path';
|
|
6
|
+
import { getCliEnvVar } from './Utils/EnvVars.js';
|
|
7
|
+
export const WORKING_DIRECTORY = getCliEnvVar('WORKING_DIRECTORY') ?? process.cwd();
|
|
8
|
+
export const CLI_CONFIG_DIRECTORY = getCliEnvVar('CONFIG_DIR') ?? path.join(os.homedir(), '.ms-cli');
|
|
9
|
+
export const AUTH_CACHE_DIRECTORY = path.join(CLI_CONFIG_DIRECTORY, 'cache', 'auth');
|
|
10
|
+
export const MS_CLIENT_REQUESTID = 'x-ms-client-request-id';
|
|
11
|
+
export const USER_SETTINGS_FILE = 'userSettings.json';
|
|
12
|
+
// MSAL client ID for `@microsoft/apps-cli` (this package). Used by NodeMsalAuthenticationProvider
|
|
13
|
+
// (token acquisition), GitCredentialConfig (GCM OAuth), and CreateMaafApp (routing API). The
|
|
14
|
+
// legacy `@microsoft/power-apps-cli` package hardcodes the same value in its own
|
|
15
|
+
// NodeMsalAuthenticationProvider rather than importing this constant — keep them in sync if the
|
|
16
|
+
// app registration ever changes.
|
|
17
|
+
export const CLI_CLIENT_ID = '9cee029c-6210-4654-90bb-17e6e9d36617';
|
|
18
|
+
//# sourceMappingURL=Constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC,mBAAmB,CAAC,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;AACpF,MAAM,CAAC,MAAM,oBAAoB,GAC/B,YAAY,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACrF,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAC5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAEtD,kGAAkG;AAClG,6FAA6F;AAC7F,iFAAiF;AACjF,gGAAgG;AAChG,iCAAiC;AACjC,MAAM,CAAC,MAAM,aAAa,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CliError.d.ts","sourceRoot":"","sources":["../../src/Errors/CliError.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
// Error classes and codes are defined in @microsoft/apps-common so they can be
|
|
5
|
+
// shared with the actions layer without creating a circular dependency.
|
|
6
|
+
export { AppError, AppErrorCode, AuthenticationError, ConfigurationError, NetworkError, NotFoundError, UsageError, } from '@microsoft/apps-common/errors';
|
|
7
|
+
//# sourceMappingURL=CliError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CliError.js","sourceRoot":"","sources":["../../src/Errors/CliError.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,+EAA+E;AAC/E,wEAAwE;AACxE,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import type { Vfs, VfsConfig, VfsFileStats, WriteFileOptions } from '@microsoft/apps-common/vfs';
|
|
5
|
+
export declare class CliFS implements Vfs {
|
|
6
|
+
private readonly cwd;
|
|
7
|
+
constructor(config: VfsConfig);
|
|
8
|
+
rmdir(dirPath: string): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Normalize and resolve a path within the VFS context
|
|
11
|
+
*/
|
|
12
|
+
private normalizePath;
|
|
13
|
+
/**
|
|
14
|
+
* Validate path for read access
|
|
15
|
+
*/
|
|
16
|
+
private validateReadPath;
|
|
17
|
+
/**
|
|
18
|
+
* Validate path for write access
|
|
19
|
+
*/
|
|
20
|
+
private validateWritePath;
|
|
21
|
+
getCwd(): string;
|
|
22
|
+
getAbsolutePath(relativePath: string): string;
|
|
23
|
+
readFile(inputPath: string, encoding?: BufferEncoding): Promise<string>;
|
|
24
|
+
writeFile(inputPath: string, content: string, options?: WriteFileOptions): Promise<void>;
|
|
25
|
+
appendFile(inputPath: string, content: string): Promise<void>;
|
|
26
|
+
readdir(inputPath: string): Promise<string[]>;
|
|
27
|
+
mkdir(inputPath: string, options?: {
|
|
28
|
+
recursive?: boolean;
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
exists(inputPath: string): Promise<boolean>;
|
|
31
|
+
stat(inputPath: string): Promise<VfsFileStats>;
|
|
32
|
+
isFile(inputPath: string): Promise<boolean>;
|
|
33
|
+
isDirectory(inputPath: string): Promise<boolean>;
|
|
34
|
+
resolve(...paths: string[]): string;
|
|
35
|
+
join(...paths: string[]): string;
|
|
36
|
+
relative(from: string, to: string): string;
|
|
37
|
+
basename(inputPath: string): string;
|
|
38
|
+
dirname(inputPath: string): string;
|
|
39
|
+
unlink(inputPath: string): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=CliFs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CliFs.d.ts","sourceRoot":"","sources":["../../src/FS/CliFs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAIjG,qBAAa,KAAM,YAAW,GAAG;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;gBAEjB,MAAM,EAAE,SAAS;IAQhB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKlD;;OAEG;IACH,OAAO,CAAC,aAAa;IAOrB;;OAEG;I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