UNPKG

1.05 kBPlain TextView Raw
1Synopsis
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
11Shortcut for `cordova prepare` + `cordova compile` for
12all/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
23To provide platform specific options, you must include them after `--`.
24
25Example
26 cordova-cli build android windows --debug --device
27 cordova-cli build android --release --buildConfig=..\myBuildConfig.json
28 cordova-cli build android --release -- --keystore="..\android.keystore" --storePassword=android --alias=mykey