create-harmonyos-template
v1.0.0
Published
Scaffold HarmonyOS projects from templates (atomic service, application, module)
Downloads
134
Maintainers
Readme
create-harmonyos-template
Scaffold HarmonyOS projects from templates.
Usage
npx create-harmonyos-template <template-type> [project-name]Omit project-name to extract to the current directory.
Available Templates
| Type | Description | Command |
|------|-------------|---------|
| atomic | Atomic Service (元服务) | npx create-harmonyos-template atomic my-project |
| application | Standard Application | npx create-harmonyos-template application my-project |
| module | HAR Library Module | npx create-harmonyos-template module my-project |
Requirements
- Node.js >= 18.0.0
- DevEco Studio (for opening and building the project)
After Creation
- Open the generated project in DevEco Studio
- Configure your
bundleNameinAppScope/app.json5(atomic/application) - Run
ohpm installto install dependencies - Build and deploy to device/emulator
License
MIT
