cordova help

Synopsis

cordova command [options]

Global Commands
create ……………………….. Create a project
help …………………………. Get help for a command
telemetry …………………….. Turn telemetry collection on or off
config ……………………….. Set, get, delete, edit, and list global cordova options

Project Commands
info …………………………. Generate project information
requirements ………………….. Checks and print out all the requirements
for platforms specified

platform ........................... Manage project platforms
plugin ............................. Manage project plugins

prepare ............................ Copy files into platform(s) for building
compile ............................ Build platform(s)
clean .............................. Cleanup project from build artifacts

run ................................ Run project
                                        (including prepare && compile)
serve .............................. Run project with a local webserver
                                        (including prepare)

Learn more about command options using ‘cordova help ’

Aliases
build -> cordova prepare && cordova compile
emulate -> cordova run –emulator

Options
-v, –version …………………. prints out this utility’s version
-d, –verbose …………………. debug mode produces verbose log output for all activity,
–no-update-notifier …………… disables check for CLI updates
–nohooks …………………….. suppress executing hooks
(taking RegExp hook patterns as parameters)

Examples
cordova create myApp org.apache.cordova.myApp myApp
cordova plugin add cordova-plugin-camera
cordova platform add android
cordova plugin add cordova-plugin-camera –nosave
cordova platform add android –nosave
cordova requirements android
cordova build android –verbose
cordova run android
cordova build android –release – –keystore=”..\android.keystore” –storePassword=android –alias=mykey
cordova config ls

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章