This document is a comprehensive guide on how to utilize the bmp Command Line Interface (CLI).
CLI Download
Let's start by installing the CLI.
Code
CLI Usage
Breeze through the following commands to get used to the bmp CLI:
Creating a New Project
Code
Running the above command will conjure an initialized mini-program project brimming with potential!
For instance:
Code
Adding Support to an Existing React Project
Code
The above commands spin off a .bmp directory and add essential configurations to the existing
tsconfig.json file. This ensures support for importing @binance/*, thereby enabling TypeScript
syntax support.
Kicking Off with devServer
Code
Introducing the command that compiles your project and spins up devServer, listening on
locahost:3000 by default. As you hop into the project and select the dist project, you will be
greeted by your running mini-program. With liveReload enabled on devServer, any changes to your
code will trigger an automatic rebuild and refreshes the page.
Build and Compile
Code
Compiling the project code has never been easier! The above command renders mini-program files in the project directory. With Binance Devtools, developers can smoothly upload these files to the management portal for release or swift online testing.