@deveco-test/deveco-cli 1.3.0-Test.13 → 1.3.0-Test.14
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 +10 -2
- package/SKILL.md +2 -2
- package/dist/cli.js +96 -95
- package/index.zip +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -712,9 +712,15 @@ devecocli emulator license accept
|
|
|
712
712
|
**命令格式:**
|
|
713
713
|
|
|
714
714
|
```bash
|
|
715
|
-
devecocli device list
|
|
715
|
+
devecocli device list [--format <table|json>]
|
|
716
716
|
```
|
|
717
717
|
|
|
718
|
+
**参数:**
|
|
719
|
+
|
|
720
|
+
| 参数名 | 说明 |
|
|
721
|
+
| --- | --- |
|
|
722
|
+
| --format | 可选,输出格式。可选值:`table`、`json`,默认 `table` |
|
|
723
|
+
|
|
718
724
|
### `device view`
|
|
719
725
|
|
|
720
726
|
查询已连接的设备的详细信息,包括设备序列号、设备名称、设备类型、 `OS` 版本等
|
|
@@ -722,7 +728,7 @@ devecocli device list
|
|
|
722
728
|
**命令格式:**
|
|
723
729
|
|
|
724
730
|
```bash
|
|
725
|
-
devecocli device view --target <serialOrName>
|
|
731
|
+
devecocli device view [--target <serialOrName>] [--format <table|json>]
|
|
726
732
|
```
|
|
727
733
|
|
|
728
734
|
**参数:**
|
|
@@ -730,6 +736,7 @@ devecocli device view --target <serialOrName>
|
|
|
730
736
|
| 参数名 | 说明 |
|
|
731
737
|
| ----------- | ------------------------------------- |
|
|
732
738
|
| -t,--target | 可选,目标设备名称或序列号。多设备缺省时,会列出所有已连接设备序列号和名称 |
|
|
739
|
+
| --format | 可选,输出格式。可选值:`table`、`json`,默认 `table` |
|
|
733
740
|
|
|
734
741
|
**示例:**
|
|
735
742
|
|
|
@@ -737,6 +744,7 @@ devecocli device view --target <serialOrName>
|
|
|
737
744
|
devecocli device view
|
|
738
745
|
devecocli device view --target 127.0.0.1:5555
|
|
739
746
|
devecocli device view -t "My Device Name"
|
|
747
|
+
devecocli device view -t 127.0.0.1:5555 --format json
|
|
740
748
|
```
|
|
741
749
|
|
|
742
750
|
### `ui screenshot`
|
package/SKILL.md
CHANGED
|
@@ -69,8 +69,8 @@ Search/read local HarmonyOS docs.
|
|
|
69
69
|
- `catalog`: List available catalogs.
|
|
70
70
|
|
|
71
71
|
### `devecocli device`
|
|
72
|
-
- `list`: Show active real devices and running emulators.
|
|
73
|
-
- `view`: Detailed info. Req `-t <name|serial>` on multi-device hosts.
|
|
72
|
+
- `list`: Show active real devices and running emulators. Opt: `--format <table|json>` (default: `table`).
|
|
73
|
+
- `view`: Detailed info. Req `-t <name|serial>` on multi-device hosts. Opt: `--format <table|json>` (default: `table`).
|
|
74
74
|
|
|
75
75
|
### `devecocli run` `[Outside sandbox]`
|
|
76
76
|
Build, install, and launch.
|