官方手册:http://ionicframework.com/docs/cli/cordova/run/
Input | Description |
---|---|
platform |
The platform to run: ios , android |
Option | Description |
---|---|
--list |
List all available Cordova targets |
--livereload , -l |
Spin up server to live-reload www files |
--consolelogs , -c |
Print out console logs to terminal |
--serverlogs , -s |
Print out dev server logs to terminal |
--address |
Use specific address for dev/live-reload server |
--port , -p |
Use specific port for the dev server |
--livereload-port , -r |
Use specific port for live-reload server |
--prod |
Mark as a production build |
--aot |
Perform ahead-of-time compilation for this build |
--minifyjs |
Minify JS for this build |
--minifycss |
Minify CSS for this build |
--optimizejs |
Perform JS optimizations for this build |
--debug |
Mark as a debug build |
--release |
Mark as a release build |
--device |
Deploy Cordova build to a device |
--emulator |
Deploy Cordova build to an emulator |
--target |
Deploy Cordova build to a device (use --list to see all) |
--buildConfig |
Use the specified Cordova build configuration |
cordova run 官方CLI命令文档翻译:
console:控制台;
reload:重载;
CLI:命令工具行;
emulator:模拟器;
script:脚本;
prod:针,刺,棒子;
来源:http://blog.csdn.net/river_continent/article/details/72983597