@microsoft/cmr-cli 0.0.0-stage → 0.32.3
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/LICENSE +21 -0
- package/README.md +172 -2
- package/THIRD-PARTY-NOTICES.txt +9751 -0
- package/dist/Add-FU57YE5G.js +11 -0
- package/dist/AddConfig-CI7KNLIG.js +12 -0
- package/dist/AddConnector-WH4IU3ND.js +16 -0
- package/dist/AddDeployment-GWFCPAL5.js +11 -0
- package/dist/AddDeploymentBinding-RFLI6DKH.js +18 -0
- package/dist/AddRayfin-VRCFEOIL.js +38 -0
- package/dist/Alter-JFFT5JOA.js +11 -0
- package/dist/AuthStatus-WCZYGI5G.js +11 -0
- package/dist/AuthSwitch-XJMG7IUR.js +13 -0
- package/dist/Bin.js +12 -0
- package/dist/BuildMaafApp-7AUZHYOQ.js +11 -0
- package/dist/Clear-7B7CDIPV.js +11 -0
- package/dist/Cli-XZ4SJKBZ.js +47 -0
- package/dist/CloneMaafApp-7W246RZA.js +12 -0
- package/dist/CreateMaafApp-6MSPHUU4.js +22 -0
- package/dist/CreateMaafProject-JKMF5TH3.js +11 -0
- package/dist/DeleteMaafApp-TFGWGJO3.js +11 -0
- package/dist/DeployMaafApp-K2APWFOD.js +8 -0
- package/dist/DeployMaafProject-6WRKGIIW.js +11 -0
- package/dist/DeploymentApprovals-WTXBXCKE.js +11 -0
- package/dist/Dev-CIEWFRXR.js +15 -0
- package/dist/EnvironmentVariableAuthenticationProvider-EBRBQ5I2.js +11 -0
- package/dist/FeatureSettings-77LZQSKD.js +11 -0
- package/dist/GenerateCode-UQCHTRGP.js +13 -0
- package/dist/GetMaafBuildStatus-6ZSLIZCH.js +11 -0
- package/dist/GetMaafProjectDeployStatus-NZEMVQGJ.js +12 -0
- package/dist/GetSettings-MVVEXMJC.js +11 -0
- package/dist/InfoMaafApp-7Z6OJCHD.js +13 -0
- package/dist/InfoMaafProject-SQYB736C.js +11 -0
- package/dist/Init-PBH2IXVK.js +11 -0
- package/dist/ListConnectorActions-UERYZ2C7.js +11 -0
- package/dist/ListConnectors-2FUTJMHY.js +11 -0
- package/dist/ListDeployments-4YWCHVKF.js +11 -0
- package/dist/ListMaafApps-ZATO77G3.js +11 -0
- package/dist/ListMaafProjects-GNUXZSYL.js +11 -0
- package/dist/ListSchema-QKVHVPHB.js +8 -0
- package/dist/ListSettings-IIA5OGMP.js +12 -0
- package/dist/Login-BT6UTPCZ.js +11 -0
- package/dist/Logout-FBJE35Q5.js +11 -0
- package/dist/MockFetch-LQLQGTNT.js +13 -0
- package/dist/NoOpAuthenticationProvider-ZZK2OB27.js +11 -0
- package/dist/NodeMsalAuthenticationProvider-5TJFMHR4.js +17 -0
- package/dist/Pack-TSFHSTB5.js +8 -0
- package/dist/PackProject-T575KJQ4.js +14 -0
- package/dist/PlayMaafApp-74TQEAO5.js +8 -0
- package/dist/ProjectApprovals-5KLYEM7V.js +13 -0
- package/dist/ProjectRoleAssignments-AI2FQ2VX.js +11 -0
- package/dist/RefreshDataSource-VARFN3IV.js +11 -0
- package/dist/RefreshGitAuth-DC5NAZBJ.js +11 -0
- package/dist/Remove-MCQZVI3K.js +11 -0
- package/dist/RemoveDataSource-RRND46QZ.js +14 -0
- package/dist/RemoveDeployment-STNFNNZF.js +11 -0
- package/dist/ServicePrincipalAuthenticationProvider-7RBHTYYY.js +11 -0
- package/dist/SetSetting-CEH44OT3.js +11 -0
- package/dist/SetSetting-Q7EQNOTI.js +11 -0
- package/dist/ShareLinkCreate-ZUVHUQLH.js +11 -0
- package/dist/ShareLinkList-IEYU6NZW.js +11 -0
- package/dist/ShareLinkRevoke-22RFGOFJ.js +11 -0
- package/dist/ShareList-6UWIHPBM.js +11 -0
- package/dist/ShareMaafApp-SFNOOMOD.js +11 -0
- package/dist/TelemetrySettings-XCT73DEI.js +11 -0
- package/dist/UnshareMaafApp-TU7U3LQ3.js +11 -0
- package/dist/acorn-CYBWGE5M.js +23 -0
- package/dist/angular-Q62TJP23.js +11 -0
- package/dist/babel-AOXBHIIS.js +22 -0
- package/dist/chunk-2LDU3F6O.js +11 -0
- package/dist/chunk-2LKCCYRF.js +11 -0
- package/dist/chunk-2VJIWD7V.js +11 -0
- package/dist/chunk-3E7QQ2BR.js +11 -0
- package/dist/chunk-3YRE4IQ3.js +132 -0
- package/dist/chunk-4U53RYJJ.js +11 -0
- package/dist/chunk-4XKA5APP.js +42915 -0
- package/dist/chunk-5MHBEEMZ.js +11 -0
- package/dist/chunk-6EF722GY.js +94 -0
- package/dist/chunk-A4PVXTJS.js +13 -0
- package/dist/chunk-ADRQC63G.js +14 -0
- package/dist/chunk-ATUGCFVC.js +11 -0
- package/dist/chunk-BA52TY55.js +12 -0
- package/dist/chunk-BRRT2E75.js +38 -0
- package/dist/chunk-DGUO74I3.js +15 -0
- package/dist/chunk-DKSLWH4O.js +18 -0
- package/dist/chunk-EFY2BSWB.js +12 -0
- package/dist/chunk-FHE3OXIP.js +11 -0
- package/dist/chunk-GE3UFHZ5.js +54 -0
- package/dist/chunk-HBLO3WDD.js +13 -0
- package/dist/chunk-HOIFXUTG.js +11 -0
- package/dist/chunk-HSNRWBA6.js +11 -0
- package/dist/chunk-KKC5ZK4D.js +77 -0
- package/dist/chunk-KT2SUHGM.js +11 -0
- package/dist/chunk-NYPHWF7Q.js +32 -0
- package/dist/chunk-OL6CTXQR.js +11 -0
- package/dist/chunk-OUKOEUZA.js +12 -0
- package/dist/chunk-PEZMQ2A3.js +11 -0
- package/dist/chunk-PLFDUGBA.js +12 -0
- package/dist/chunk-PZIEJEF5.js +11 -0
- package/dist/chunk-Q3ONTUZ7.js +11 -0
- package/dist/chunk-QLK3ZVWP.js +11 -0
- package/dist/chunk-RDXQ3ZPT.js +11 -0
- package/dist/chunk-RFLXPXBN.js +11 -0
- package/dist/chunk-SIEI2EB5.js +12 -0
- package/dist/chunk-SQI4XLR7.js +11 -0
- package/dist/chunk-TMYOZDLM.js +11 -0
- package/dist/chunk-TXMTKOEJ.js +12 -0
- package/dist/chunk-TYRVM4PP.js +8 -0
- package/dist/chunk-UEZV46GZ.js +44 -0
- package/dist/chunk-UT667QSU.js +8 -0
- package/dist/chunk-UXKJNXTZ.js +11 -0
- package/dist/chunk-WTTK2GTG.js +11 -0
- package/dist/chunk-WV7D7PTW.js +12 -0
- package/dist/chunk-WWVAS3DS.js +11 -0
- package/dist/chunk-XIX2O22O.js +11 -0
- package/dist/chunk-Y5AMO72S.js +10 -0
- package/dist/chunk-YRPTITKD.js +12 -0
- package/dist/chunk-ZB6MB7GZ.js +17 -0
- package/dist/dist-7N5TXK2L.js +45 -0
- package/dist/estree-HPTPQIMZ.js +51 -0
- package/dist/flow-B6JUMONE.js +27 -0
- package/dist/glimmer-36KZ3DJ5.js +44 -0
- package/dist/graphql-E6CIFZFV.js +35 -0
- package/dist/html-BUTTPQE6.js +32 -0
- package/dist/markdown-K2C5OZHT.js +69 -0
- package/dist/meriyah-27UE2OSX.js +12 -0
- package/dist/native/arm64/dpapi.node +0 -0
- package/dist/native/ia32/dpapi.node +0 -0
- package/dist/native/x64/dpapi.node +0 -0
- package/dist/postcss-QUHZLBB7.js +68 -0
- package/dist/rayfin-pack-HOUOLOHQ.js +164 -0
- package/dist/typescript-G2G6TDZF.js +28 -0
- package/dist/yaml-W5P5CGFK.js +166 -0
- package/package.json +62 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,173 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @microsoft/cmr-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Command-line interface for Copilot Managed Runtime. Create, build, deploy, share, and manage apps and their data sources from your terminal.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @microsoft/cmr-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Run commands with `ms <command>`.
|
|
12
|
+
|
|
13
|
+
## Commands
|
|
14
|
+
|
|
15
|
+
- **`ms app …`** — app lifecycle and configuration: create, clone platform-managed repositories, init, list, info (`show` is a deprecated alias), build, build-status, pack, deploy, play (including branch or commit previews), dev, delete, share/unshare, share list, share link (create, list, revoke), add config (preview, requires the `alm` feature; registers a project deployment and creates its local overlay), add data-source (including repeated `--table` flags for adding multiple tables with per-table partial-success reporting), remove data-source, refresh data-source (`--offline`), and settings (get-settings, set-setting).
|
|
16
|
+
- **`ms project …`** — project-related command groups. Managed project commands (`create`, `info`, `list`, `add deployment-target`, `build`, `build-status`, `deploy`, `deployment-status`, `pack`, `add approval`, `list approval`, `remove approval`) are preview and require the `projects` feature; project creation supports a platform-managed repository or `--repo <github-url>`. State commands are experimental and require the `state` feature.
|
|
17
|
+
- **`ms project add|remove|list approval`** — manage who can approve deployments to a project's `Prod` target (preview, requires the `projects` feature). Approvers are Microsoft Entra object IDs or user/group email addresses; `remove --all` clears the list. Use `--project` and `--environment-id` outside a managed project directory.
|
|
18
|
+
- **`ms deployment list|status`** — list project-scoped or environment-wide deployment history, or show the latest or selected deployment (preview, requires the `projects` feature). Use `--project <project-id>` to select project history explicitly; otherwise a local project config or the current app's live project association is used when available. Use `--environment-id` alone for environment-wide history and `--target` to select `prod` or a named target. Use `--continuation-token` to resume when the output reports more history. Latest-deployment detail includes created time, source links, requester and approval metadata, and build status when available.
|
|
19
|
+
- **`ms deployment approve|reject|cancel --target <name>`** — act on a deployment that is awaiting approval (preview, requires the `projects` feature). `approve` and `reject` accept an optional `--comment`. They run only where the service's approvals feature is enabled.
|
|
20
|
+
- **`ms connector …`** — list connectors and discover connector actions and functions in the environment.
|
|
21
|
+
- **`ms project state …`** — clear Preview state or define and inspect the app's configured state schema (`add`, `alter`, `remove`, `list-schema`, `list-settings`, `set-setting`), or generate standalone TypeScript with `generate-code`. Experimental and off by default; turn it on with `ms feature enable --name state` or `MS_CLI_FEATURE_STATE=1`. It is also on for an app whose `ms.config.json` sets `state.enabled: true`.
|
|
22
|
+
- **`ms auth …`** — sign in/out and manage cached accounts (login, logout, status, switch).
|
|
23
|
+
- **`ms git auth …`** — refresh or establish the Entra↔GitHub identity mapping for external repos.
|
|
24
|
+
- **`ms telemetry …`** — enable, disable, or check CLI telemetry.
|
|
25
|
+
- **`ms feature …`** — list, inspect, enable, disable, or reset experimental and preview CLI features.
|
|
26
|
+
|
|
27
|
+
Run `ms <command> --help` for the options on any command.
|
|
28
|
+
|
|
29
|
+
## TLS certificate errors
|
|
30
|
+
|
|
31
|
+
If the CLI reports `TlsCertificateTrustFailure`, configure your operating system and Node.js to
|
|
32
|
+
trust your organization's certificate authority, or contact your network administrator. Do not
|
|
33
|
+
disable TLS certificate validation. `TlsCertificateValidationFailure` indicates that the service
|
|
34
|
+
certificate could not be validated; try again later, then contact Microsoft support with the
|
|
35
|
+
reported session ID if the problem continues.
|
|
36
|
+
|
|
37
|
+
Use `ms --version` or `ms -v` to print the CLI version. The version option is
|
|
38
|
+
available only on the root command, not on commands such as `ms app list`.
|
|
39
|
+
|
|
40
|
+
Managed project and deployment commands require the `projects` feature. Enable it with
|
|
41
|
+
`ms feature enable --name projects`; it is also enabled automatically inside
|
|
42
|
+
a managed project or an app associated with one. Project state commands additionally require the
|
|
43
|
+
`state` feature.
|
|
44
|
+
|
|
45
|
+
`ms app deploy` guards git-backed deployments when the working tree has uncommitted changes or local `main` is ahead of `origin/main`. Interactive runs can confirm and continue; non-interactive runs must pass `--force` to bypass the guard.
|
|
46
|
+
|
|
47
|
+
On the default `/appframework` route, a deployment that needs app data migration is accepted as an operation. `ms app deploy` waits for that operation (up to 20 minutes) and reports success only after the service confirms the deployment. With the Managed DevOps route enabled, the service instead returns a durable deployment ID and the CLI polls until the deployment succeeds or reaches `AwaitingApproval`. Approval is a handoff point: the CLI returns the deployment ID instead of waiting for a human decision.
|
|
48
|
+
|
|
49
|
+
`ms app deploy --no-wait` is available when the `projects` feature is enabled. It skips deployment polling, but still waits for a queued prerequisite build on git-backed apps and still packs/uploads external artifacts before submitting the deployment. After the service accepts the deployment, the command returns its stable deployment ID for later tracking.
|
|
50
|
+
|
|
51
|
+
`ms app deploy --target <name>` requires the `alm` feature; without the feature the option is not
|
|
52
|
+
registered and is rejected as unknown. Enable it with `ms feature enable --name alm` or
|
|
53
|
+
`MS_CLI_FEATURE_ALM=1`. The target name is validated locally before any build or deploy call.
|
|
54
|
+
After a successful targeted deploy, human output and the JSON `appPlayUri` field report the
|
|
55
|
+
target-specific `/target/<name>` play URL rather than the base production URL.
|
|
56
|
+
|
|
57
|
+
`ms project deploy` requires the `projects` feature and is a temporary single-app alias for the app
|
|
58
|
+
deployment pipeline. Unless
|
|
59
|
+
`--project` is supplied, it prefers the current app and its server-side project association
|
|
60
|
+
before falling back to `ms.project.config.json`. The fallback project route requires the project to
|
|
61
|
+
contain exactly one app. `--environment-id` takes precedence over app config, project config, and
|
|
62
|
+
developer-environment routing. The final deploy uses Managed DevOps, matching `ms app deploy`
|
|
63
|
+
when the `projects` feature is enabled, so `--no-wait` is available for the command. The command does
|
|
64
|
+
not expose
|
|
65
|
+
`--app` or `--artifact`. Without `--no-wait`, it waits until deployment succeeds or reaches
|
|
66
|
+
`AwaitingApproval`, then returns the deployment ID instead of waiting for a human approval decision.
|
|
67
|
+
When `--target` is supplied, successful output reports that target's `/target/<name>` play URL
|
|
68
|
+
instead of the production URL. Multi-app project deployment will move to a dedicated service API.
|
|
69
|
+
|
|
70
|
+
`ms project deployment-status` shows the latest deployment for the resolved project, or a specific
|
|
71
|
+
deployment when `--deployment-id` is supplied. It prefers the current app's server-side project
|
|
72
|
+
association, then falls back to local app/project configuration; use `--project` to select a
|
|
73
|
+
project explicitly. Use `--environment-id` to route that project lookup to a specific environment;
|
|
74
|
+
when an explicit project ID has no environment flag, the default environment is used.
|
|
75
|
+
`ms deployment status` is an alias with the same flags and behavior.
|
|
76
|
+
|
|
77
|
+
The complete `ms project state` command group is experimental and requires
|
|
78
|
+
`MS_CLI_FEATURE_STATE=1`; without it the group is hidden from help and rejected as an
|
|
79
|
+
unknown command.
|
|
80
|
+
|
|
81
|
+
`ms project state clear [--app <app-id>] [--environment-id <id>]` discards the app's
|
|
82
|
+
Preview state for **all users and all item types**. Live data, source code, and
|
|
83
|
+
the app itself are unchanged. The app ID defaults from `ms.config.json`; an explicit
|
|
84
|
+
real, non-zero app GUID (without `-dev`) works outside a checkout. The environment is resolved
|
|
85
|
+
before confirmation, without inheriting an unrelated config environment.
|
|
86
|
+
|
|
87
|
+
JSON/non-interactive runs require explicit `--force` acknowledgement, for example
|
|
88
|
+
`ms project state clear --app <app-id> --force --json --non-interactive`. This skips
|
|
89
|
+
local confirmation only, never Update authorization or server locks. A valid 200
|
|
90
|
+
returns exit 0 with the exact `wasAlreadyEmpty`, `observedEmpty`, and `isComplete`
|
|
91
|
+
Booleans; **request success does not mean purge completion**. The current service
|
|
92
|
+
normally returns `isComplete: false`, which produces a stderr warning. Missing or
|
|
93
|
+
invalid completion fields are errors. The client waits up to 120 seconds, never
|
|
94
|
+
automatically retries or polls, and reports unknown outcome on interruption or
|
|
95
|
+
connection loss. Do not chain Preview, writes, reindex, or deploy while completion
|
|
96
|
+
is unconfirmed; there is no public reset-status endpoint.
|
|
97
|
+
|
|
98
|
+
To include a schema in `ms app pack`, set `state.schemaPath` in the base app config to a
|
|
99
|
+
project-relative JSON file. `data.schemaPath` and the legacy `db.schemaPath` alias remain supported;
|
|
100
|
+
when multiple aliases are present, they must either all omit `schemaPath` or set path strings that
|
|
101
|
+
match exactly (no normalization). Invalid aliases fail even if another alias is valid. These
|
|
102
|
+
settings are base-only and cannot be overridden by a deployment overlay. Pack writes
|
|
103
|
+
`dataSchema.json` and points the unchanged `manifest.dataSchemaPath` field to it, regardless of
|
|
104
|
+
which alias was configured.
|
|
105
|
+
`schemaPath` is optional: without it, pack writes no schema file and no `dataSchemaPath`.
|
|
106
|
+
|
|
107
|
+
Optionally set `state.enabled`, `data.enabled`, or legacy `db.enabled` to a boolean to copy it to
|
|
108
|
+
`manifest.dataEnabled`. Both `true` and `false` are preserved; if unset, the manifest field is
|
|
109
|
+
omitted. When both aliases specify `enabled`, their values must agree; if only one specifies it,
|
|
110
|
+
that value is used. This flag is also base-only and does not skip schema validation or packaging:
|
|
111
|
+
a configured `schemaPath` is still validated and packaged when `enabled` is `false`, and
|
|
112
|
+
`{ "data": { "enabled": true } }` enables data without a schema.
|
|
113
|
+
|
|
114
|
+
For `ms project state` commands, `state.schemaPath` is the preferred state schema location.
|
|
115
|
+
`state.enabled` is also accepted and copied to `manifest.dataEnabled` during pack.
|
|
116
|
+
|
|
117
|
+
`ms app pack` also includes `package-inventory.json` beside the manifest (not under
|
|
118
|
+
`client/`). The CLI selects the app's direct production dependencies and records their
|
|
119
|
+
installed names and versions, following npm, pnpm, and Bun `node_modules` layouts and
|
|
120
|
+
package symlinks without reading lockfiles. Dev and transitive-only dependencies are excluded.
|
|
121
|
+
The versioned artifact distinguishes an explicit zero-package inventory from unavailable
|
|
122
|
+
data and reports unresolved required dependencies and truncation.
|
|
123
|
+
It does not include registry URLs, attest to bundled code, or select the build's package manager.
|
|
124
|
+
Collection failures warn on stderr without failing the build or changing JSON stdout.
|
|
125
|
+
See the [pack artifact contract](../../docs/specs/managed-apps-cli/commands.md#deploy)
|
|
126
|
+
for the schema, limits, and consumer requirements.
|
|
127
|
+
|
|
128
|
+
With the `alm` feature enabled, `ms project pack` uses the directory containing
|
|
129
|
+
`ms.project.config.json` as the project root. When `components.apps` is present, only those listed
|
|
130
|
+
directories are searched for app configs; each path must be the project root or a descendant, and
|
|
131
|
+
symlinks that resolve outside that boundary are rejected. This supports apps nested anywhere within
|
|
132
|
+
the project.
|
|
133
|
+
When the list is absent, pack falls back to discovering app configs at the root and in immediate
|
|
134
|
+
child directories. When no project config is present, it treats the directory containing the
|
|
135
|
+
current app config as a single-app project. An empty app set fails before staging begins.
|
|
136
|
+
`ms.config.json` takes precedence when both supported app config names exist in a directory. Packing
|
|
137
|
+
logs which discovery mode it selected, remains local, and does not retrieve live app information.
|
|
138
|
+
Apps without `package.json` and apps with `buildType: "none"` skip dependency installation. Output
|
|
139
|
+
is written to `.ms/packed/apps/<appId>/` alongside `.ms/packed/project.manifest.json`, preserving
|
|
140
|
+
the existing artifact if validation, an app build, or artifact promotion fails.
|
|
141
|
+
|
|
142
|
+
`ms project pack --json` returns a discriminated project result. Successful responses include the
|
|
143
|
+
promoted project paths, app pack results under `components.apps`, and install/pack/finalization
|
|
144
|
+
timings. Success and failure responses include `logFile` when available, pointing to captured stdout
|
|
145
|
+
and stderr from dependency-install and app-build commands, plus app-pack failure
|
|
146
|
+
diagnostics, up to a 50 MB limit. Log creation and capture are best-effort and never change the
|
|
147
|
+
command result. The five newest logs are retained, and staging directories older than 24 hours are
|
|
148
|
+
removed. Failed responses include partial app results and timings, including elapsed app-pack phases
|
|
149
|
+
measured before failure, but omit project artifact paths; dependency-install or app-pack failures do
|
|
150
|
+
not prevent remaining project apps from being attempted.
|
|
151
|
+
|
|
152
|
+
`ms project state generate-code` reads that schema locally and writes models, validators, and
|
|
153
|
+
typed data services to `generated-typescript/` beside it. It needs no login or network connection,
|
|
154
|
+
including in CI; there are no command-specific flags. Use `--json` for relative paths, item types,
|
|
155
|
+
file count, and any cleanup warnings. Keep handwritten code outside the output directory:
|
|
156
|
+
replacement requires a valid ownership manifest and refuses untracked files.
|
|
157
|
+
|
|
158
|
+
Generated `update` methods send a complete writable document using PUT. Use `edit` for a fresh
|
|
159
|
+
read/merge/conditional PUT with bounded conflict retries. Per-user services preserve private/shared
|
|
160
|
+
scope. The generated services require Preview or a deployed app, not `ms app dev`; code generation
|
|
161
|
+
does not deploy or provide a local state store. Attachment upload/clear and undocumented query
|
|
162
|
+
operators are not generated. See the [command reference](../../docs/specs/managed-apps-cli/commands.md#generate-typescript)
|
|
163
|
+
for output ownership, rollback, validation, and paging behavior.
|
|
164
|
+
|
|
165
|
+
## Global options
|
|
166
|
+
|
|
167
|
+
| Option | Description |
|
|
168
|
+
| ------------------- | -------------------------------------------------- |
|
|
169
|
+
| `--non-interactive` | Run without prompts (all values must be supplied). |
|
|
170
|
+
| `--json` | Format output as JSON. |
|
|
171
|
+
| `--no-color` | Disable coloured output. |
|
|
172
|
+
|
|
173
|
+
Full documentation is available in the [Copilot Managed Runtime documentation](https://go.microsoft.com/fwlink/?LinkId=2369054).
|