@deveco-test/hmos-deveco-cli 0.3.0-TD.2.3 → 0.3.0-TD.2.4
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/SKILL.md +9 -10
- package/dist/cli.js +92 -91
- package/docs.zip +0 -0
- package/index.zip +0 -0
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -69,10 +69,13 @@ Build, install, and launch.
|
|
|
69
69
|
- **Prereq**: run `devecocli run` once first (full build + deploy + generates the `buildConfig.json` cache that `--apply` reuses).
|
|
70
70
|
- **If changes don't take effect**: check `<module>/build/config/buildConfig.json` has content — empty/missing means `devecocli run` wasn't run; on any apply failure, fall back to a full `devecocli run`.
|
|
71
71
|
*Ex*: `devecocli run` → edit code → write `.hvigor/changes.txt` → `devecocli run --apply changes.txt`
|
|
72
|
-
- **Previewer mode
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
72
|
+
- **Previewer mode**: Pass a product name to `--device` to launch the DevEco Studio previewer. If `--device` matches a connected real device (name or serial), it takes priority over previewer mode — check device names with `devecocli device list`.
|
|
73
|
+
- Single Previewer: `devecocli run --device "Pura 90 Pro"`
|
|
74
|
+
- Multi Previewer: `devecocli run --device "Pura 90 Pro,MatePad 11.5'S"`
|
|
75
|
+
- Prerequisites:
|
|
76
|
+
1. Device connected: enable wireless debugging (Settings → System → Developer options → Wireless debugging) and run `hdc tconn 127.0.0.1:<port>` (or set `DEVECO_HDC_PORT=<port>` env var).
|
|
77
|
+
2. DevEco Studio running (CLI throws if not — does NOT auto-start).
|
|
78
|
+
- Supported products: `Pura 90 Pro`, `MatePad 11.5'S`, `Mate X7`, `Pura X`, `Mate XT`. Aliases: `phone`, `pad`/`tablet`, `fold`/`foldable`.
|
|
76
79
|
|
|
77
80
|
### `devecocli signature generate` `[Outside sandbox]`
|
|
78
81
|
Auto-generate HarmonyOS signing materials (local p12/csr + cloud cert + test profile) and write signing config to `build-profile.json5`.
|
|
@@ -161,11 +164,7 @@ Manage HarmonyOS skills in AI agents/projects.
|
|
|
161
164
|
|
|
162
165
|
- **Fresh checkout to real device**:
|
|
163
166
|
`devecocli build` -> `devecocli device list` -> `devecocli run --device <serial>`
|
|
164
|
-
- **Launch previewer
|
|
165
|
-
- Single previewer (specific device type): `devecocli run --module entry --device "Pura 90 Pro"`
|
|
166
|
-
- Multi-preview by device types: `devecocli run --module entry --device "Pura 90 Pro,Mate XT"`
|
|
167
|
-
- On HarmonyOS native PC: set `DEVECO_HDC_PORT=<port>` env var before running (previewer mode uses `--device` for product name, not hdc target)
|
|
168
|
-
- Previewer mode is auto-detected: `--device` value matching product names → previewer; serial/IP:port → normal run
|
|
167
|
+
- **Launch previewer**: `devecocli run --device "Pura 90 Pro"` (single) or `devecocli run --device "Pura 90 Pro,Mate XT"` (multi).
|
|
169
168
|
- **Diagnose crash**:
|
|
170
169
|
`devecocli log --crash --bundle-name <bundle>`
|
|
171
170
|
- **Release build**:
|
|
@@ -184,4 +183,4 @@ Manage HarmonyOS skills in AI agents/projects.
|
|
|
184
183
|
- **`Invalid AccessToken. Sign in and try again`**: Token expired. Run `devecocli auth login` again.
|
|
185
184
|
- **`skills add` agent not found**: Valid: `codebuddy`, `cursor`, `opencode`, `qoder`, `trae-cn`.
|
|
186
185
|
- **HarmonyOS native (2in1 PC) — `hdc list targets` shows `[Empty]`**: hdc on HarmonyOS does NOT auto-discover the local device. Open "Settings → System → Developer options → Wireless debugging", note the port, then `hdc tconn 127.0.0.1:<port>`. For normal run: pass `--device 127.0.0.1:<port>`. For previewer mode: set `DEVECO_HDC_PORT=<port>` env var (previewer mode uses `--device` for product name, not hdc target).
|
|
187
|
-
- **Previewer
|
|
186
|
+
- **Previewer — "DevEco Studio is not running"**: Tell the user to start DevEco Studio manually first, then retry. Do NOT retry automatically.
|