Lines Matching refs:hpm
6 … and publish them in the form of an HPM Part. To develop HPM Parts, install the hpm-cli tool first.
13 ## Installing hpm-cli
15 The hpm-cli tool is developed based on Node.js. Therefore, you must install Node.js and then use np…
18 ### Installing Node.js and hpm-cli
25 2. Install the hpm-cli tool using **npm** delivered with **Node.js**. Run the following command:
28 npm install -g @ohos/hpm-cli
31 3. Run the following command to check whether the installation is successful. If a hpm version is d…
34 hpm -V or hpm --version
37 4. (Optional) Run the following command to update the hpm version if needed:
40 npm update -g @ohos/hpm-cli
44 ### (Optional) Configuring hpm-cli
46 After hpm-cli is installed, run the following command to view the hpm configuration:
50 hpm config
53 …hpm configuration is displayed upon successful command execution. You can modify the default confi…
56 registry = https://hpm.harmonyos.com
63 # globalRepo = C:\Users\username\.hpm\global
88 hpm init -t default mybundle
112 hpm init -t {templatename} -d {dir} {name}
122 … hpm-cli tool provides a few default templates. More templates are available on [DevEco Marketplac…
133 hpm init
143 $ hpm init
222 …hpm-cli tool supports command integration so that you can select any build tool (such as make, gcc…
275 hpm build
289 hpm dist
292 The hpm-cli tool automatically starts the build. After the build is complete, an image file will be…
310 hpm config set loginUser {your-invitation-code}
311 hpm gen-keys
314 The generated file will be stored in **~\Users\yourname\.hpm\key**. Copy the content in the public …
322 hpm publish
343 1. Run the **hpm init** command to create a bundle description file named **bundle.json**, which co…
345 2. Run the **hpm install <name>** command to install the dependency. The dependency will be written…
349 4. Run the **hpm build** command to perform build and output the build result.
354 $ hpm install @scope/the_bundle
397 Run the **hpm install** command again to download and install all HPM Parts that have not been inst…
407 $ hpm install -g @scope/the_tool
410 …installed in the directory specified by the **globalRepo** parameter of the **hpm config** command.
413 ~\.hpm\global\ohos_bundles
420 …nce it using the environment variable **DEP_SCOPE_bundle_name** when running the hpm build command.
421 > For example, after you run **hpm i \@opensource/gn** to install an HPM Part, edit the build scri…
429 > Then, you can run the **hpm build** command to call gn functions.
431 …r reference the HPM Part using the **${key}/tool_name** parameter in the **hpm config set key valu…
434 > hpm i -g @ohos/opensource/gn
435 > hpm config BUILD_SYS_GN ~/.hpm/global/ohos_bundles/opensource/gn
446 > Then, you can run the **hpm build** command to call gn functions.