• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Development Example<a name="EN-US_TOPIC_0000001072143838"></a>
2
3The following uses the Hi3861 platform as an example to describe how to install and build bundles by using the hpm.
4
51.  Run the following commands to create a directory \(its name can be customized\) and create a default project based on the dist template:
6
7    ```
8    mkdir test3861
9    cd test3861
10    hpm init -t dist myproduct
11    ```
12
13    If the following information is displayed, the project is created:
14
15    ```
16    Initialization finished.
17    ```
18
192.  Run the following command to install the  **hispark\_pegasus**  distribution:
20
21    ```
22    hpm install @ohos/hispark_pegasus
23    ```
24
25    If the following information is displayed, the installation is successful:
26
27    ```
28    Installed.
29    ```
30
31    >![](../public_sys-resources/icon-note.gif) **NOTE:**
32    >If you are using the Hi3516 platform, run the following command:
33    >```
34    >hpm install @ohos/hispark_taurus
35    >```
36    >If you are using the Hi3518 platform, run the following command:
37    >```
38    >hpm install @ohos/hispark_aries
39    >```
40
413.  Run the following command to build and package bundles:
42
43    ```
44    hpm dist
45    ```
46
47    If the building is successful, the following information is displayed:
48
49    ```
50    {{name}}: distribution building completed.
51    ```
52
534.  Check the result in the  **./out**  directory. You can burn the distribution into the corresponding development board for testing.
54
55