如何通过hdc命令拉起指定的UIAbility
=======================

使用命令拉起指定UIAbility：

hdc shell aa start -a <UIAbility Name> -b <Bundle Name>

启动成功时，返回"start ability successfully."，启动失败时，返回"error: failed to start ability"，同时会包含相应的失败信息。

示例如下：

hdc shell aa start -a EntryAbility -b com.example.myapplication

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/54/v3/SF-PzMj5QTSOARBnnHyljA/zh-cn_image_0000002229758597.png?HW-CC-KV=V1&HW-CC-Date=20260612T074634Z&HW-CC-Expire=86400&HW-CC-Sign=FF981BA627547CED3F582BBFE8F69DDB90950A8F8FB8DF75F37E7B71DFE77B79 "点击放大")

**参考链接**

[aa工具](https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/aa-tool)