CLI Usage
This document will introduce how to use bmp CLI.
#
CLI Download#
CLI Usage#
Create a new projectThis command creates an initialized mini program project
Example
#
Support existing React projectThis command creates the .bmp directory and writes the relevant configuration to the existing project's tsconfig.json file, allowing development support to import @binance/* for Typescript syntax support.
#
Run with devServerThis command will compile the project code and turn on devServer, which listens on locahost:3000 by default. When you enter the project and click on the dist project, you can see the running mini program. With liveReload enabled on devServer, the project code will be automatically rebuilt when it changes and the page will be refreshed.
#
BuildThis command compiles the project code and generates mini-program files in the project directory. The developer uploads these files with Binance Devtools to the management portal for release or online testing.