1 | Synopsis
|
2 |
|
3 | cordova-cli build [PROD] [TARGET] [PLATS] [BUILDCONFIG] [-- POPTS]
|
4 |
|
5 | PROD: --debug|--release
|
6 | TARGET: --device|--emulator
|
7 | PLATS: PLATFORM [...]
|
8 | BUILDCONFIG: --buildConfig=CONFIGFILE
|
9 | POPTS: platformopts
|
10 |
|
11 | Shortcut for `cordova prepare` + `cordova compile` for
|
12 | all/the specified platforms.
|
13 |
|
14 | --debug ............................ debug build
|
15 | --release .......................... release build
|
16 |
|
17 | --device ........................... Build it for a device
|
18 | --emulator ......................... Build it for an emulator
|
19 |
|
20 | --buildConfig....................... Use the specified build configuration
|
21 | instead of default build.json
|
22 |
|
23 | --browserify ....................... Compile plugin JS at build time using
|
24 | browserify instead of runtime.
|
25 |
|
26 | To provide platform specific options, you must include them after `--`.
|
27 |
|
28 | Example
|
29 | cordova-cli build android windows --debug --device
|
30 | cordova-cli build android --release --buildConfig=..\myBuildConfig.json
|
31 | cordova-cli build android --release -- --keystore="..\android.keystore" --storePassword=android --alias=mykey |
\ | No newline at end of file |