libra-cli-service
v0.1.25
Published
Command line interface for libra development
Downloads
12
Readme
libra-cli-service
Libra CLI is the Standard Tooling for libra Development.
Install
npm install libra-cli-service -g
Usage
libra create
Usage: create <app-name>
create a new project powered by libra cli in current path
Options:
-f, --force Overwrite target directory if it exists
-h, --help Output usage information
libra serve
Usage: serve [options] [entry]
serve project in development mode with zero config
Options:
-c, --copy Copy local url to clipboard
-p, --port <port> Port used by the server (default: 8080 or next available port)
-r, --route <route>Start project with custom page path and query
-x, --proxy Proxy tt.request API to solve cross-domain issues
-h, --help Output usage information
libra login
Usage: login [options]
login to the developer platform
Options:
-m, --mobile Login by mobile
-e, --email Login by email
-h, --help Output usage information
libra preview
Usage: preview [options] [entry]
preview project by remote
Options:
-c, --copy Copy remote url to clipboard
-f, --force Preview project without local cache
-n, --native Get QR Code for native
-s, --small Use small QR Code, but some environments not working
-r, --route <route>Preview project with custom page path and query
-h, --help Output usage information
libra upload
Usage: upload [options] [entry]
upload project to the developer platform
Options:
-v, --app-version <version> App version (eg: [major].[minor].[patch])
-c, --app-changelog <log> Changelog for this version
-h, --help Output usage information
Debug
cd libra-cli-service
npm link