DevEco CLI Quick Start: Making AI Agents Smarter for HarmonyOS App Development
Huawei
Huawei's DevEco CLI integrates HarmonyOS development capabilities into existing AI Agent workflows, providing a command-line tool that wraps the DevEco Studio toolchain. It includes tools like ohpm, hvigor, hdc, emulator, and hilog, plus HarmonyOS skills installation, project scaffolding, local documentation search, and MCP services. The CLI can be initialized with a single command to let AI agents drive end-to-end development processes.
Huawei has launched DevEco CLI, a command-line tool designed to integrate HarmonyOS app development capabilities into existing AI Agent workflows. It wraps the DevEco Studio toolchain, including ohpm, hvigor, hdc, emulator, and hilog, and provides HarmonyOS skills installation, project scaffolding, local documentation search, and MCP services. Prerequisites include macOS or Windows, Node.js >= 18 (recommended 22+), and DevEco Studio >= 6.1.0. Installation is via npm: `npm install -g @deveco/deveco-cli@stable` for stable version. To integrate with an AI Agent like OpenCode, run `devecocli init` for deep integration. The agent can then execute commands for project initialization, building with hvigor, device and emulator management, and real-time syntax checking via Check MCP, which supports ArkTS and C++ and can improve fix efficiency by over 5 times. The CLI also includes the latest official documentation with fast retrieval, allowing agents to query up-to-date APIs, and comes with 70+ premium Skills covering multi-device adaptation, knowledge retrieval, ArkTS syntax, and app quality. Version 1.2.0 is now available, and the project is open source on GitCode.
- Abbreviations
- CLI = Command Line Interface — интерфейс командной строки
- MCP = Model Context Protocol — протокол контекста модели
- CI/CD = Continuous Integration/Continuous Delivery — непрерывная интеграция/непрерывная доставка
- JSON = JavaScript Object Notation — нотация объектов JavaScript
Source: InfoQ 中国 —
original
