# How do I create a Cordova app for HarmonyOS? > Bring HTML, CSS and JavaScript apps and Cordova plugins to HarmonyOS with CPF-Cordova: the hcordova CLI, the cordova-openharmony framework, requirements and integration steps. Source: https://ohosify.com/en/blog/cordova-harmonyos-app Published: 2026-10-02 Verified: 2026-10-02 (OpenHarmony 6.1.1 Release, API 24) Author: Ohosify **Short answer:** The **CPF-Cordova** project brings Apache Cordova to HarmonyOS. You can create a project with the `hcordova` command-line tool, or integrate the `cordova-openharmony` framework manually into a DevEco Studio project and copy your web assets (`www`) into it. ## What is CPF-Cordova? [CPF-Cordova](https://gitcode.com/CPF-Cordova) is the Cordova Special Interest Group under the Cross-Platform Framework PMC. Its goal is to let web developers use existing HTML, CSS and JavaScript skills, and to adapt existing Android and iOS Cordova projects with minimal effort. It contains: - **cordova-openharmony**: the framework for HarmonyOS. - **hcordova**: a CLI for project creation. - **About 82 plugin repositories**: camera, geolocation, media, Alipay and WeChat payments, Bluetooth, NFC, databases and more. Everything is licensed under Apache License 2.0. ## How do I use the hcordova CLI? hcordova is based on Cordova and targets `cordova@13.0.0` compatibility. It needs Node.js 16 or later (18 LTS recommended) and Git. For the `ohos` platform you also need DevEco Studio or the command-line tools. ```bash npm install -g hcordova hcordova -v hcordova create hcordova platform add ohos hcordova plugin add ``` Other commands: `hcordova platform ls`, `hcordova platform remove `, `hcordova plugin ls` and `hcordova plugin remove `. You can also add the `browser` platform and run `hcordova run browser` to test in a browser. The README targets Android 7.0+, iOS 12.0+ and HarmonyOS 5.0+. I could not find a documented build command for the ohos platform in the README, so check the repository for the current build and run steps. ## How do I integrate the framework manually? Requirements for cordova-openharmony: SDK API 12 or later (tested on 5.0.0), DevEco Studio 5.0 or later (tested on 6.0.13.200), ROM 5.1 or later, OpenHarmony 6.0 or later for the emulator, and OpenSSL integrated before compilation. See [How to install DevEco Studio](/en/blog/install-deveco-studio). 1. In DevEco Studio, create a project with the **Empty Ability** template. See [Your first ArkTS app](/en/blog/first-arkts-app). 2. Download the Cordova HAR package and extract it as a `cordova` directory in the main project. 3. From the `entry` directory, run: ```bash ohpm install ../cordova ``` 4. Add the cordova module to `entry/build-profile.json5`. 5. Copy your Android `assets/www` folder to `entry/src/main/resources/rawfile/`. 6. Call `webview.WebviewController.initializeWebEngine()` in `EntryAbility.onCreate()`. 7. Edit `Index.ets` to import and use the `MainPage` component. Then build and run from DevEco Studio. The README describes this flow through the IDE and gives no separate CLI build commands. ## How do plugins work? Plugins follow Cordova standards. To write your own, extend the `CordovaPlugin` class in ArkTS and register it in `Index.ets` through the `cordovaPlugs` array parameter. The native layer is C++ in `src/main/cpp/` (networking, SSL, cookies, plugin management), with the ArkTS UI layer in `ets/`. The framework also supports multiple webviews, native embedding, custom scheme registration, and loading online and offline content at the same time. ## Next steps - [What is ArkTS?](/en/blog/what-is-arkts) - [Flutter apps for HarmonyOS](/en/blog/flutter-harmonyos-app) - [React Native apps for HarmonyOS](/en/blog/react-native-harmonyos-app) - [Electron apps for HarmonyOS](/en/blog/electron-harmonyos-app)