@svylabs/microcraft
v1.3.1
Published
CLI to develop and test decentralized frontends
Downloads
6
Readme
Microcraft CLI Commands
This README provides details on how to use the CLI commands for creating, running, and building apps in the Microcraft platform.
Table of Contents
Create a New App
To create a new app, use the following command:
node bin/index.js app new <app-name> "<app-description>"Examples
Create a
hello-worldapp with the description "Sample App":node bin/index.js app new hello-world "Sample App"Create a
total-lusd-circulationapp with the description "Total LUSD in Circulation":node bin/index.js app new total-lusd-circulation "Total LUSD in Circulation"
Run or Open an App
To run or open an app locally, use the following command:
node bin/index.js app open local <app-name>Examples
Run or open the
hello-worldapp:node bin/index.js app open local hello-worldRun or open the
total-lusd-circulationapp:node bin/index.js app open local total-lusd-circulation
Build an App
To build an app, use the following command:
node bin/index.js app build <app-name>Examples
Build the
hello-worldapp:node bin/index.js app build hello-worldBuild the
total-lusd-circulationapp:node bin/index.js app build total-lusd-circulation
Working with Apps Folder
For apps located in the apps folder, use the following commands:
Create a New App in apps
node bin/index.js app new apps/<app-name> "<app-description>"Example:
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"Run or Open an App from apps
node bin/index.js app open local apps/<app-name>Example:
Run or open the total-lusd-circulation app inside the apps folder:
node bin/index.js app open local apps/total-lusd-circulationBuild an App from apps
node bin/index.js app build apps/<app-name>Example:
Build the total-lusd-circulation app inside the apps folder:
node bin/index.js app build apps/total-lusd-circulation