DevEco CLI: Open HarmonyOS Development to AI Agents via Command Line

DevEco CLI launches as an AI-agent-friendly command-line toolkit for HarmonyOS app development, offering one-command integration with tools like OpenCode, a full-lifecycle CLI command set, a local optimized knowledge base, 70+ curated Skills for multi-device adaptation, and a community Skills plaza for sharing reusable AI capabilities.

HarmonyOS Developer Technology
HarmonyOS Developer Technology
HarmonyOS Developer Technology
DevEco CLI: Open HarmonyOS Development to AI Agents via Command Line

DevEco CLI is a new command-line interface designed to make HarmonyOS application development capabilities accessible to AI agents and existing AI-assisted workflows. It addresses the challenge that AI coding tools often lack understanding of HarmonyOS-specific conventions, toolchains, and authoritative knowledge.

One-Command Agent Integration

Developers can install the bundled deveco-cli Skill into multiple local AI agents (e.g., OpenCode) with a single init command. This teaches the agent how to drive DevEco CLI, enabling it to execute the full HarmonyOS development loop — from project creation through compilation, deployment, and debugging — without manual IDE interaction.

Full-Lifecycle Command Coverage

DevEco CLI exposes a stable, agent-friendly command set that spans the entire development journey: devecocli create — initialize a project devecocli check — syntax and static analysis devecocli device / emulator — manage physical devices and simulators devecocli build — compile and package devecocli run — deploy to target device devecocli log — collect debug logs

These commands replace multi-step manual IDE operations with scriptable, automatable calls, improving consistency and efficiency.

Local, Agent-Optimized Knowledge Base

DevEco CLI ships a curated HarmonyOS knowledge base deployed locally (no cloud dependency). It covers best practices (innovative features, multi-device, security, AI enablement), development guides (app framework, ArkUI, media, security, tooling), API references (app framework, system security, audio/video, graphics), and version notes (positioning, compatibility, upgrade strategy, device support matrix, API version distribution).

Retrieval is optimized for agents: progressive loading returns titles and summaries first; a built-in HarmonyOS terminology dictionary handles SDK-specific vocabulary; API queries prioritize official references (e.g., UIAbility); results are structured for easy parsing.

70+ Curated Skills Encoding Expert Experience

Skills are not mere prompt collections but distilled engineering knowledge: historical bug patterns, platform norms, typical scenarios, and methodological practices. They help agents generate platform-conformant code and reduce trial-and-error.

A highlighted example is the multi-device adaptation suite — seven Skills prefixed hmos-multidevice covering screen orientation/rotation, hardware capability differentiation, responsive layout, safe-area avoidance, cross-device interaction, and fold-state adaptation (dual-fold, tri-fold). Agents leveraging these Skills can produce layouts that respect complex form factors instead of naive stretching, significantly cutting manual adaptation effort.

GeWu Skills Plaza: Discovery, Quality, and Community

The OpenHarmony community's GeWu platform serves as a centralized Skills marketplace. It solves three problems:

Discoverability — aggregates first- and third-party Skills across the full development lifecycle, searchable by tag, category, organization, or business scenario.

Quality assurance — a rating system evaluates compatibility, performance, security, and community scores, backed by onboarding review, automated testing, security scanning, and human audit.

Reuse and co-creation — encourages publishing reusable Skills to avoid duplicated effort, fostering a virtuous cycle of experience accumulation and ecosystem growth.

Getting Started

Install globally via npm (official or Taobao mirror recommended for China): npm install -g @deveco/deveco-cli Documentation and source are hosted at https://gitcode.com/openharmony-sig/deveco-cli.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

AI-assisted developmentHarmonyOSopenharmonycommand-line toolsmulti-device adaptationagent integrationDevEco CLISkills marketplace
HarmonyOS Developer Technology
Written by

HarmonyOS Developer Technology

HarmonyOS developers provide key technology analysis, version updates, Codelabs practice, and event information for HarmonyOS. Welcome developers to join the HarmonyOS ecosystem and create infinite possibilities together!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.