UNPKG

2.31 kBPlain TextView Raw
1Synopsis
2
3 cordova-cli command [options]
4
5Global Commands
6 create ............................. Create a project
7 help ............................... Get help for a command
8 telemetry .......................... Turn telemetry collection on or off
9 config ............................. Set, get, delete, edit, and list global cordova options
10
11Project Commands
12 info ............................... Generate project information
13 requirements ....................... Checks and print out all the requirements
14 for platforms specified
15
16 platform ........................... Manage project platforms
17 plugin ............................. Manage project plugins
18
19 prepare ............................ Copy files into platform(s) for building
20 compile ............................ Build platform(s)
21 clean .............................. Cleanup project from build artifacts
22
23 run ................................ Run project
24 (including prepare && compile)
25 serve .............................. Run project with a local webserver
26 (including prepare)
27
28Learn more about command options using 'cordova-cli help <command>'
29
30Aliases
31 build -> cordova-cli prepare && cordova-cli compile
32 emulate -> cordova-cli run --emulator
33
34Options
35 -v, --version ...................... prints out this utility's version
36 -d, --verbose ...................... debug mode produces verbose log output for all activity,
37 --no-update-notifier ............... disables check for CLI updates
38 --nohooks .......................... suppress executing hooks
39 (taking RegExp hook patterns as parameters)
40
41Examples
42 cordova-cli create myApp org.apache.cordova.myApp myApp
43 cordova-cli plugin add cordova-plugin-camera
44 cordova-cli platform add android
45 cordova-cli plugin add cordova-plugin-camera --nosave
46 cordova-cli platform add android --nosave
47 cordova-cli requirements android
48 cordova-cli build android --verbose
49 cordova-cli run android
50 cordova-cli build android --release -- --keystore="..\android.keystore" --storePassword=android --alias=mykey
51 cordova-cli config ls