@deveco-test/deveco-cli-openharmony-arm64 1.3.10-Test.1 → 1.3.11-Test.1

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 CHANGED
@@ -758,7 +758,7 @@ devecocli skills remove --skill skillname --agent agentname # skillname需替
758
758
  **命令格式:**
759
759
 
760
760
  ```bash
761
- devecocli signature generate --product <product> --team-id <team-id> --force --help
761
+ devecocli signature generate --product <product> --team-id <team-id> --udid <udid> --force --help
762
762
  ```
763
763
 
764
764
  **参数:**
@@ -767,6 +767,7 @@ devecocli signature generate --product <product> --team-id <team-id> --force --
767
767
  |-----------------------|-----------------------------------------|
768
768
  | --product \<product\> | 可选,指定product生成签名,默认为 `default` |
769
769
  | --team-id \<team-id\> | 可选,指定生效的team-id,默认使用自身作为团队信息 |
770
+ | --udid \<udid...\> | 可选,为未连接的设备签名。可重复传入或用逗号分隔多台;追加 `:<type>` 声明设备类型(`phone`\|`wearable`\|`liteWearable`\|`tv`,默认 `phone`)。与 `hdc` 自动探测到的设备合并,同一 UDID 以探测到的类型为准 |
770
771
  | --force | 可选,强制覆盖已存在的证书文件 |
771
772
  | --help,--h | 可选,查看帮助信息 |
772
773
 
@@ -782,6 +783,12 @@ devecocli signature generate --product default
782
783
  # 指定team-id
783
784
  devecocli signature generate --team-id 1222
784
785
 
786
+ # 为未连接的设备签名(UDID 为 64 位十六进制,可通过已连接设备的 `hdc shell bm get -u` 获取)
787
+ devecocli signature generate --udid 1A2B3C4D...
788
+
789
+ # 为未连接的穿戴设备签名,并同时传入多台
790
+ devecocli signature generate --udid 1A2B3C4D...:wearable --udid 5E6F7A8B...
791
+
785
792
  # 强制覆盖已存在的证书文件
786
793
  devecocli signature generate --force
787
794
 
package/SKILL.md CHANGED
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  name: deveco-cli
3
3
  description: >-
4
4
  **MUST** use 'devecocli' for HarmonyOS apps (scaffold, build, run, debug, devices, logs, docs, 鸿蒙开发文档, skills, multi-preview). **REQUIRED** and **MANDATORY** if workspace has build-profile.json5 or oh-package.json5, or user mentions HarmonyOS, 鸿蒙, DevEco, ArkTS, ArkUI, docs, 鸿蒙文档, 知识, 搜索, skills, or preview/预览/预览器/多预览器/多设备预览器.
@@ -79,15 +79,17 @@ Build, install, and launch.
79
79
 
80
80
  ### `devecocli signature generate` `[Outside sandbox]`
81
81
  Auto-generate HarmonyOS signing materials (local p12/csr + cloud cert + test profile) and write signing config to `build-profile.json5`.
82
- - **Prereq**: `devecocli auth login` first; run from a project directory (with `build-profile.json5`); a connected device is required for device registration.
82
+ - **Prereq**: `devecocli auth login` first; run from a project directory (with `build-profile.json5`). Devices are auto-detected via `hdc`; use `--udid` for devices that are not connected.
83
83
  - `--product <name>`: Product name for local p12/csr file naming (default: `default`).
84
84
  - `--team-id <id>`: Specify the team-id (default: current user's id).
85
85
  - `--force`: Force regenerate even if existing materials are valid.
86
+ - `--udid <udid...>`: Register device UDID(s) that are not connected. Repeatable or comma-separated; append `:<type>` (`phone|wearable|liteWearable|tv`, default `phone`). Merged with auto-detected devices (a detected device's type wins), and skips the "no device" preflight failure. Any registration failure aborts before a profile is produced.
86
87
  - Generates under `~/.ohos/config/`: `.p12` keystore, `.csr`, downloaded `.cer` certificate, `.p7b` profile.
87
88
  - Writes `signingConfigs` + `products` entries to `build-profile.json5` with encrypted key/store passwords (AES-128-GCM).
88
89
  - Cloud cert name: `auto_debug_<teamId>.cer`. Local files: `<product>_<project>_<hash>=.{p12,csr,cer,p7b}`.
90
+ - Prints the device list the profile covers, with each device's type and origin (`detected` / `manual`).
89
91
  - Error handling: 401→re-login, 403→no AGC permission, `205389872`→cert limit, `205389904`→not Harmony user, `205389938`→provision limit, invalid `.cer`→retry.
90
- *Ex*: `devecocli signature generate --product default`
92
+ *Ex*: `devecocli signature generate --product default`, `devecocli signature generate --udid <64-hex-udid>:wearable`
91
93
 
92
94
  ### `devecocli log`
93
95
  Fetch hilog or crash logs. Req `--device <name|serial>` on multi-device hosts.
@@ -181,6 +183,7 @@ Manage HarmonyOS skills in AI agents/projects.
181
183
  - **`error:install sign info inconsistent`**: Signing key changed. Run `devecocli run --uninstall` or `devecocli signature generate --force`.
182
184
  - **`Not logged in. Run devecocli auth login first`**: Run `devecocli auth login` to authenticate.
183
185
  - **`Provision number exceeds limit`**: Test provision quota is full. Delete old test provisions in DevEco Studio (Signing Configs) or AGC console, then retry `devecocli signature generate`.
186
+ - **`Unable to create the profile file due to missing devices`**: No device is connected and the AGC cloud device list is empty. Connect a device, or sign for a device you don't have on hand via `devecocli signature generate --udid <64-hex-udid>`.
184
187
  - **`Invalid AccessToken. Sign in and try again`**: Token expired. Run `devecocli auth login` again.
185
188
  - **`skills add` agent not found**: Valid: `codebuddy`, `cursor`, `opencode`, `qoder`, `trae-cn`.
186
189
  - **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).