美文网首页鸿蒙
关于鸿蒙常用HDC命令

关于鸿蒙常用HDC命令

作者: 林下人水边兵 | 来源:发表于2023-07-18 14:59 被阅读0次

开发中基本常用的几条命令 。Mark一下

查看 连接设备

hdc list targets

查看 HDC版本

hdc -v

手动安装hap

hdc install [路径]
例:hdc install E:\HosProject\test\entry\build\default\outputs\default\entry-default-signed.hap

卸载应用

hdc app install .\entry-default-signed.hap
// 覆盖安装
hdc app install -r .\entry-default-signed.hap

查看日志

hdc hilog
hdc shell hillogcat

重启HDC

hdc start -r

重启设备

hdc shell reboot

杀掉hdc进程,类似adb kill-server

hdc kill

相关文章

网友评论

    本文标题:关于鸿蒙常用HDC命令

    本文链接:https://www.haomeiwen.com/subject/kzvnudtx.html