This README provides details on how to use the CLI commands for creating, running, and building apps in the Microcraft platform.
To create a new app, use the following command:
node bin/index.js app new <app-name> "<app-description>"
-
Create a
hello-world
app with the description "Sample App":node bin/index.js app new hello-world "Sample App"
-
Create a
total-lusd-circulation
app with the description "Total LUSD in Circulation":node bin/index.js app new total-lusd-circulation "Total LUSD in Circulation"
To run or open an app locally, use the following command:
node bin/index.js app open local <app-name>
-
Run or open the
hello-world
app:node bin/index.js app open local hello-world
-
Run or open the
total-lusd-circulation
app:node bin/index.js app open local total-lusd-circulation
To build an app, use the following command:
node bin/index.js app build <app-name>
-
Build the
hello-world
app:node bin/index.js app build hello-world
-
Build the
total-lusd-circulation
app:node bin/index.js app build total-lusd-circulation
For apps located in the apps
folder, use the following commands:
node bin/index.js app new apps/<app-name> "<app-description>"
Create a total-lusd-circulation
app inside the apps
folder with the description "Total LUSD in Circulation":
node bin/index.js app new apps/total-lusd-circulation "Total LUSD in Circulation"
node bin/index.js app open local apps/<app-name>
Run or open the total-lusd-circulation
app inside the apps
folder:
node bin/index.js app open local apps/total-lusd-circulation
node bin/index.js app build apps/<app-name>
Build the total-lusd-circulation
app inside the apps
folder:
node bin/index.js app build apps/total-lusd-circulation